Bug 22720 - Cannot compile pnm utilities; pbmplus.h includes nonexistent shhopt.h
Cannot compile pnm utilities; pbmplus.h includes nonexistent shhopt.h
Product: Red Hat Linux
Classification: Retired
Component: netpbm (Show other bugs)
i386 Linux
low Severity low
: ---
: ---
Assigned To: Phil Knirsch
Wil Harris
Depends On:
  Show dependency treegraph
Reported: 2000-12-22 02:23 EST by jbednar
Modified: 2015-03-04 20:08 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-12-22 02:23:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description jbednar 2000-12-22 02:23:46 EST
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
#include <pbmplus.h>
> 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
Comment 1 Phil Knirsch 2000-12-22 04:37:32 EST
Works in the current release. /usr/include/netpbm.h does now

#include <pbmshhopt.h>

in line 323, which is also part of netpbm-devel.
Comment 2 jbednar 2000-12-22 14:42:14 EST
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...



Note You need to log in before you can comment on or make changes to this bug.