Bug 24015 - Apache 1.3.9 doesn't build under Redhat 7
Apache 1.3.9 doesn't build under Redhat 7
Product: Red Hat Linux
Classification: Retired
Component: apache (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-01-15 00:05 EST by Sonam Chauhan
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-01-15 00:05:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Sonam Chauhan 2001-01-15 00:05:04 EST
I've built Apache 1.3.9 before many times with the following flags. 
   ./configure     --enable-shared=max    --enable-module=most 

However it fails under Redhat 7

Failure message
Comment: ndbm.h and db.h both exist in /usr/include/db1/

gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DNO_DBM_REWRITEMAP
REGEX -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic
_auth_anon.c && mv mod_auth_anon.o mod_auth_anon.lo
gcc -shared -o mod_auth_anon.so mod_auth_anon.lo
gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DNO_DBM_REWRITEMAP
REGEX -DUSE_EXPAT -I../../lib/expat-lite `../../apaci` -fpic
_auth_dbm.c && mv mod_auth_dbm.o mod_auth_dbm.lo
In file included from mod_auth_dbm.c:79:
/usr/include/db1/ndbm.h:42:16: db.h: No such file or directory
make[4]: *** [mod_auth_dbm.so] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1

Redhat 7 (Linux 2.2.16-22 )
Comment 1 Nalin Dahyabhai 2001-01-18 16:39:14 EST
Per email, user has solved the problem.
Comment 2 Sonam Chauhan 2001-01-18 17:10:20 EST
Apache 1.3.9 does not build because it can't find <db.h>. 
RedHat ha moved db.h to under /usr/include/db1 in RH 7 
The gcc version reported by Redhat 7: Wonder if it's related to 

Put an extra include in the build process to get it working.... 
(set "EXTRA_INCLUDES=-I/usr/include/db1" in apache_1.3.9/src/Configuration.tmpl) 

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