[Date Prev][Date Next] [Chronological] [Thread] [Top]

Installation Problem with BDB 4.8




All,

I am trying to install Open LDAP 2.4.23 with Berkley DB v4.8. I am getting errors with the BDB version etc

My Server is a:
CentOS release 5.6 (Final)
2.6.18-238.19.1.el5
x86_64 GNU/Linux


The system already has older versions od BDB installed already on it.
[root@myserver]# rpm -qa|grep db4
db4-4.3.29-10.el5_5.2
db4-4.3.29-10.el5_5.2
db4-devel-4.3.29-10.el5_5.2
db4-devel-4.3.29-10.el5_5.2

To use the newly installed/supported BDB 4.8 version I use the environment flags with my consfigure and make commands

Step 1:
$env CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include/"LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" ./configure
Step 2: $make depend
Step 3: $make

Step 1-3 goes thru fine
At Step 4: when I run make install
$make install

I get the fol erros towards the end.

make[3]: Entering directory `/u001/projects/cyrusIMAP/openldap-2.4.23/servers/slapd/back-bdb'
/bin/sh ../../../libtool --tag=disable-shared --mode=compile cc -g -O2 -I../../../include        -I../../../include -I.. -I./..  -I/usr/local/BerkeleyDB.4.8/include/LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib    -c init.c
 cc -g -O2 -I../../../include -I../../../include -I.. -I./.. -I/usr/local/BerkeleyDB.4.8/include/LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib -c init.c -o init.o
init.c: In function 'bdb_db_open':
init.c:532: error: 'DB_READ_COMMITTED' undeclared (first use in this function)
init.c:532: error: (Each undeclared identifier is reported only once
init.c:532: error: for each function it appears in.)
make[3]: *** [init.lo] Error 1
make[3]: Leaving directory `/u001/projects/cyrusIMAP/openldap-2.4.23/servers/slapd/back-bdb'
make[2]: *** [.backend] Error 1
make[2]: Leaving directory `/u001/projects/cyrusIMAP/openldap-2.4.23/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/u001/projects/cyrusIMAP/openldap-2.4.23/servers'
make: *** [all-common] Error 1

Can anyone please let me know why the init.c program is unable to open the bdb.

Any help would be appreciated.

--
Rajeshwar BM
Bangalore INDIA