Bug 9611 - rpm-devel header files possibly need fixing
Summary: rpm-devel header files possibly need fixing
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 6.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-02-20 21:16 UTC by lars
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-02-21 11:03:35 UTC
Embargoed:


Attachments (Terms of Use)

Description lars 2000-02-20 21:16:09 UTC
There is a problem with rpmlib.h, part of the rpm-devel rpm (exists in
rpm-devel-3.0.3-2).

rpmlib.h includes several other rpm header files like this:

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

Unfortunately, a program (such as rpmfind. which is where I ran into this
problem) that includes rpmlib.h like this:

  #include <rpm/rpmlib.h>

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
this:

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

So that it no longer depends on client code to pass the
-I/usr/include/rpm flag to the preprocessor.

Comment 1 Jeff Johnson 2000-02-21 11:03:59 UTC
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...


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