Bug 18292

Summary: bad #include in /usr/include/db1/ndbm.h
Product: [Retired] Red Hat Linux Reporter: Ion Badulescu <ionut>
Component: db1Assignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: dr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-04 06:57:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.