Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 7423 - The file /usr/include/rpm/rpmlib.h is not correct
The file /usr/include/rpm/rpmlib.h is not correct
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-11-29 17:31 EST by bpinaud
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-11-30 08:26:54 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 bpinaud 1999-11-29 17:31:11 EST
On my frech install of the RH6.1, the file beginning of the file
/usr/include/rpm/rpmlib.h is :

#include <rpmio.h>
#include <dbindex.h>
#include <header.h>
#include <popt.h>

and it should be

#include <rpm/rpmio.h>
#include <rpm/dbindex.h>
#include <rpm/header.h>
#include <popt.h>

because gcc said said that it could not find rpmio.h, dbindex.h and
Comment 1 Jeff Johnson 1999-11-30 08:26:59 EST
Add -I/usr/include/rpm to your CFLAGS.
Comment 2 Kuszmaul, Bradley 2001-06-19 14:56:13 EDT
I believe that this is still a bug.  The maximum rpm book says to write
 #include <rpm/rpmlib.h>
but then the header files don't work unless I write -I/usr/include/rpm in which
case I could have written
 #include <rpmlib.h>

And what if I am writing something that wants to use another package that has a
header.h file in its include path somewhere.  (E.g. /usr/include/pci/header.h)
In that case I could end up with a collision.

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