>Number: 4431 >Category: general >Synopsis: nbdm.h not found compiling on Redhat 6.0 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon May 17 10:50:00 PDT 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.6 >Environment: Redhat 6.0 ecgs-2.91.66 >Description: When I attempted to compile Apache on a RedHat 6.0 system, the compiler complained that it could not find 'ndbm.h' included in src/modules/standard/mod_auth_dbm.c
When I looked for the file I found it is a glibc header and it was in /usr/include/db1/ which is not in the include search path. So I changed #include <ndbm.h> to #include <db1/ndbm.h> and it compiled. I assume this is because RH uses glibc2.1 which might have had a bit of a layout change, and that no-one has reported this because RH comes with an Apache rpm (which coincidentally does not have DSO support). I have not tested the auth_dbm module after this fix (I have no idea how to). >How-To-Repeat: I assume this will happen when compiling apache with DSO and the auth_dbm module on a Redhat 6.0 system. This should do it: ./configure --enable-module=most --enable-shared=max && make >Fix: Change line 77 in src/modules/standard/mod_auth_dbm.c from #include include <ndbm.h> to #include <db1/ndbm.h> and recompile >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]