At least with my RedHat 7.0 system, it appears impossible to compile a
program using the netpbm-devel headers. Those headers usually include
pbmplus.h, which in turn includes <shhopt.h>, which doesn't appear to
exist. (It may be in the default distribution, and not on my system due to
some package I did not install, but if so then there is a missing
dependency for netpbm-devel.) The only version of a shhopt.h that I could
find was in util-linux-2.10m-12.src.rpm, and although that appears related
to the desired file it does not contain everything pbmplus.h is looking
So, how did you compile the pnm utilities? How should a user compile his
own? Where is shhopt.h?
> cat bug21.c
> gcc -c bug21.c
In file included from bug21.c:1:
/usr/include/pbmplus.h:305: shhopt.h: No such file or directory
> locate shhopt.h
> rpm -qf /usr/include/pbmplus.h
Works in the current release. /usr/include/netpbm.h does now
in line 323, which is also part of netpbm-devel.
I'm assuming by "current release" you are referring to the rawhide distribution,
so I downloaded netpbm-*9.8-2.i386.rpm, and indeed that version does fix the
problem. However, shouldn't this be an erratum on the updates page for RH7.0?
It effectively prevents the use of netpbm-devel altogether, and users won't know
that they need to get the RPMs from rawhide instead...