Bug 6428 - rpmlib.h: include files wrong?
rpmlib.h: include files wrong?
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-10-27 12:19 EDT by stewart
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-10-27 12:39:37 EDT
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 stewart 1999-10-27 12:19:29 EDT
I may be wrong here, but...

file /usr/include/rpm/rpmlib.h includes the following header

	/* This is the *only* module users of rpmlib should need to
include */

	/* and it shouldn't need these :-( */

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

Should the above files (excluding popt.h) not have a prefix
of rpm/ as the header files are in the /usr/include/rpm

I know what the comment says, but something still seem to
need them.  And there is that whole completeness thing. :)
I noticed this when building ucd-snmp (from RH 6.0) with
Comment 1 Jeff Johnson 1999-10-27 12:39:59 EDT
Add -I/usr/include/rpm to CFLAGS.

I can't change to
	#include <rpm/header.h>
because that prevents rpm itself from building.

The include used to be
	#include "header.h"
but that prevented some (perl?) automated (and broken!) binding
generator from working.

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