OpenLDAP configuration fails
I am trying to configure OpenLDAP and cannot get past the following error:
checking for localtime_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking db.h usability... yes
checking db.h presence... no
configure: WARNING: db.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: db.h: proceeding with the compiler's result
checking for db.h... yes
checking for Berkeley DB major version in db.h... conftest.c:2:16: error: db.h: No such file or directory
1
checking for Berkeley DB minor version in db.h... conftest.c:2:16: error: db.h: No such file or directory
0
checking if Berkeley DB version supported by BDB/HDB backends... no
configure: error: BerkeleyDB version incompatible with BDB/HDB backends
[root@sccnhrh532d openldap-2.4.23]#
The error seems to indicate that db.h cannot be found.
I ran the following script to configure the LDAP server:
CFLAGS="-I/skibba/LDAP/DB/dbxml-2.3.11/install/include"
export CFLAGS
LDFLAGS="-L/usr/local/lib -L/skibba/LDAP/DB/dbxml-2.3.11/install/lib -R/skibba/LDAP/DB/dbxml-2.3.11/install/lib"
export LDFLAGS
LD_LIBRARY_PATH="/skibba/LDAP/DB/dbxml-2.3.11/install/lib"
export LD_LIBRARY_PATH
./configure -n --enable-bdb --prefix=/skibba/LDAP --exec-prefix=/skibba/LDAP
db.h exists in the directory referenced in the script. The Berkeley version is 5.5.20 which should be compatible with OpenLDAP 2.4.
|