Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 6428 - rpmlib.h: include files wrong?
Summary: rpmlib.h: include files wrong?
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-10-27 16:19 UTC by stewart
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-10-27 16:39:37 UTC


Attachments (Terms of Use)

Description stewart 1999-10-27 16:19:29 UTC
I may be wrong here, but...

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

	/* 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
direcotry?

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
rpm-3.0.3-6x.src.rpm

Comment 1 Jeff Johnson 1999-10-27 16:39:59 UTC
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.