Hi All,

It's that problem again, this time with apache_1.3.23 on linux (rh7.2).

I am building it with php4 and most of other modules. Here's my config:

#! /bin/sh
EAPI_MM=SYSTEM
export EAPI_MM

INCLUDES="-I/usr/include/db1 -I/usr/local/BerkeleyDB.4.0/include -I/usr/local/include" 
\
LDFLAGS="-L/usr/local/BerkeleyDB.4.0/lib -L/usr/local/lib 
-L/usr/local/src/openldap/lib" \
EAPI_MM=SYSTEM \
CC=gcc LIBS="-lldap -llber -ldb" OPTIM="-O2" \
./configure \
    --prefix=/usr/local/apache_1.3.23+mod_ssl+php \
    --activate-module=src/modules/php4/libphp4.a \
    --enable-module=ssl \
    --enable-module=php4 \
    --enable-module=most

Error:

gcc -c  -I../../os/unix -I../../include  -O2 -DLINUX=22 -DMOD_SSL=208106 
-I/usr/local/src/php
-I/usr/local/src/php/main -I/usr/local/src/php/main -I/usr/local/src/php/Zend 
-I/usr/local/src/php/Zend
-I/usr/local/src/php/TSRM -I/usr/local/src/php/TSRM -I/usr/local/src/php -DEAPI 
-DEAPI_MM -DNO_DL_NEEDED
`../../apaci` mod_rewrite.c
In file included from mod_rewrite.c:93:
mod_rewrite.h:133:18: ndbm.h: No such file or directory
make[4]: *** [mod_rewrite.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.23+mod_ssl+php/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.23+mod_ssl+php'
make: *** [build] Error 2

Without LIBS=, apache will add -I/usr/include/db1 and there would be no
problem with mod_rewrite; otherwise, apache won't be able to find the
ldap library files. I added INCLUDES=, but it gets ignored.

Thanks,



Jie

Reply via email to