[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
backend BDB undefined symbol ldap_pvt_thread_rdwr_init
Hello
I am trying to run openldap 2.1.8 with back-bdb, on a redhat 8.0 with
bdb 4.0.14
I compiled with the following option with success:
[jehan@corbeau /usr/local/src/openldap-2.1.8]
$ ./configure --enable-debug --enable-crypt --enable-modules
--enable-bdb --with-bdb-module=dynamic --enable-ldbm
--with-ldbm-api=berkeley --with-ldbm-module=dynamic --enable-monitor
--with-monitor-module=dynamic --enable-local --enable-cldap
--disable-rlookups --with-tls --with-cyrus-sasl --enable-wrappers
--enable-passwd --enable-shell --enable-cleartext --enable-spasswd
then did a make install --prefix=/usr/local/src/jehan/openldap-2.1.8/
Now I want to insert my ldif dump (from a slapcat on my 2.0.25 ldbm-bdb
database) to that freshly compiled openldap, and I finally get :
[jehan@corbeau /usr/local/src/jehan/openldap-2.1.8]
$ ./sbin/slapadd -l /tmp/simple.ldif -f ./etc/openldap/slapd.conf -d 99
...
line 139 (schemacheck on)
line 145 (loglevel 256)
line 150 (allow bind_v2)
line 157 (database bdb)
bdb_db_init: Initializing BDB database
./sbin/slapadd: relocation error:
/usr/local/src/jehan/openldap-2.1.8/libexec/openldap/back_bdb.so.2:
undefined symbol: ldap_pvt_thread_rdwr_init
what is wrong ??
I supersticiously added to /etc/ld.so.conf those to lines:
/usr/local/src/jehan/openldap-2.1.8/libexec/openldap
/usr/local/src/jehan/openldap-2.1.8/lib
Important modifs to slapd.conf:
[jehan@corbeau /usr/local/src/jehan/openldap-2.1.8]
$ more etc/openldap/slapd.conf
...
# Here I got, before inserting that line, the error "error loading
ucddata (error -127)
ucdata-path /usr/local/src/jehan/openldap-2.1.8/share/openldap/ucdata
include
/usr/local/src/jehan/openldap-2.1.8/etc/openldap/schema/core.schema
modulepath /usr/local/src/jehan/openldap-2.1.8/libexec/openldap
moduleload back_bdb.la
database bdb
directory /usr/local/src/jehan/openldap-2.1.8/var/openldap-data/int
Thanks for your help.
--
Jehan Procaccia
Institut National des Telecommunications| Email:
Jehan.Procaccia@int-evry.fr
MCI, Moyens Communs Informatiques | Tel : +33 (0) 160764436
9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321