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

Re: Berkeley DB 4.0



Olivier SALAUN wrote:

On which OS do you try to install openLDAP ?

I have no pb to build Berkley DB4 and OpenLDAP 2.1.2 on RH 7.3 and I have no trace about db_appexit in my libdb-4.so

Bernard

I try to build it on redhat 6.2...
Your problem is exactly the same ?
Here is the configure script output:
"
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB thread support... yes
checking Berkeley DB version for BDB backend... no
configure: error: BDB: BerkeleyDB version incompatible
"

I have almost the same error on Debian 3.0 with OpenLDAP 2.1.2 and Berkeley DB 4.0.14


# env LDFLAGS=-L/opt/db-4.0.14/lib ./configure
...
checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB thread support... BerkeleyDB: Invalid argument
no
checking Berkeley DB version for BDB backend... no
configure: error: BDB: BerkeleyDB version incompatible

With Solaris 8 and OpenLDAP 2.1.2/Berkeley DB 4.0.14 configure works fine but make failes whit the following error:

...
/usr/local/bin/gcc -msupersparc -O2 -o slapd main.o daemon.o connection.o search.o filter.o add.o charray.o attr.o entry.o config.o backend.o result.o operation.o dn.o compare.o modify.o delete.o modrdn.o ch_malloc.o value.o ava.o bind.o unbind.o abandon.o filterentry.o phonetic.o acl.o str2filter.o aclparse.o init.o user.o repl.o lock.o controls.o extended.o kerberos.o passwd.o schema.o schema_check.o schema_init.o schema_prep.o schemaparse.o ad.o at.o mr.o syntax.o oc.o saslauthz.o oidm.o starttls.o index.o sets.o referral.o root_dse.o sasl.o module.o suffixalias.o mra.o mods.o limits.o backglue.o operational.o matchedValues.o version.o -pthreads libbackends.a ../../libraries/libavl/libavl.a ../../libraries/libldbm/libldbm.a ../../libraries/liblunicode/liblunicode.a ../../libraries/librewrite/librewrite.a ../../libraries/libldif/libldif.a ../../libraries/liblutil/liblutil.a ../../libraries/libldap_r/.libs/libldap_r.a /root/sources/openldap-2.1.2/libraries/liblber/.libs/liblber.a ../../libraries/liblber/.libs/liblber.a -ldb4 -lssl -lcrypto -lresolv -lgen -lnsl -lsocket -ldl -lrt
ld: fatal: file ../../libraries/libldbm/libldbm.a: unknown file type
ld: fatal: File processing errors. No output written to slapd
collect2: ld returned 1 exit status
make[2]: *** [slapd] Error 1
make[2]: Leaving directory `/root/sources/openldap-2.1.2/servers/slapd'
make[1]: *** [all-common] Error 1
make[1]: Leaving directory `/root/sources/openldap-2.1.2/servers'
make: *** [all-common] Error 1


Any ideas what could cause these problems?

Regards,
Roland