Bug 18292 - bad #include in /usr/include/db1/ndbm.h
Summary: bad #include in /usr/include/db1/ndbm.h
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: db1
Version: 7.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-04 04:43 UTC by Ion Badulescu
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2000-10-04 06:57:38 UTC


Attachments (Terms of Use)

Description Ion Badulescu 2000-10-04 04:43:26 UTC
If db1-devel is installed and db3-devel is not installed, including
<db1/ndbm.h> causes a compile error because <db.h> is not found.

If both db1-devel and db3-devel are installed, then there is no
compile error, but there is potential for bizarre run-time errors,
because both packages provide db.h, but the two files are very different.
This is how your shipped am-utils package is compiled, by the way.

The fix is simple: make ndbm.h include <db1/db.h>, not just <db.h>.

RH62 suffers from the same problem, except it never causes compile
errors because <db.h> and <db1/db.h> are part of the same package
(glibc-devel).

Comment 1 Jeff Johnson 2000-10-06 19:29:08 UTC
Fixed in db1-1.85-5. Thanks for reporting.


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