Red Hat Bugzilla – Bug 9611
rpm-devel header files possibly need fixing
Last modified: 2008-05-01 11:37:54 EDT
There is a problem with rpmlib.h, part of the rpm-devel rpm (exists in
rpmlib.h includes several other rpm header files like this:
Unfortunately, a program (such as rpmfind. which is where I ran into this
problem) that includes rpmlib.h like this:
Will fail to compile, because the preprocessor will search for
/usr/include/rpmio.h, etc., and will not find them.
The best solution is probably to modify rpmlib.h so that it looks like
So that it no longer depends on client code to pass the
-I/usr/include/rpm flag to the preprocessor.
Changing to <rpm/rpmio.h> would preven building rpm itself.
A slightly better change is to use "rpmio.h", as that permits
both building rpm and other applications without -I... flags.
However, that breaks certain binding autogenerators (perl? I fergit).
So the supported method of building is to use -I...