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

Compilation Error



Hi everybody. I´m trying to compile OpenLDAP 2.1.21 with Berkeley DB 4.1.25 support and I get an error about ldbm libraries:

gcc -g -O2 -o slapd main.o daemon.o connection.o search.o filter.o add.o cr.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 mra.o mods.o limits.o backglue.o operational.o matchedValues.o cancel.o version.o -pthreads -L/global/ldap/BerkeleyDB.4.1.25/lib 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 /var/tmp/openldap-2.1.21/libraries/liblber/.libs/liblber.a .../../libraries/liblber/.libs/liblber.a /global/ldap/BerkeleyDB.4.1.25//lib/libdb-4.1.a -lresolv -lgen -lnsl -lsocket -ldl
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


The configure was as simple as only changing the prefix. I don´t know why this error appears. I tried a couple of weeks before the same distribution with the same database in other machine and the same configuration and environment variables options (LD_LIBRARY_PATH=/usr/loca/lib:/usr/lib; env CC=gcc CPPFLAGS="-I/global/ldap/BerkeleyDB.4.1.25/include" LDFLAGS="-L/global/ldap/BerkeleyDB.4.1.25/lib" ) and all worked smooth. The only difference is the version of the gcc compiler (I get the error with gcc 3.2.3 and no error with 2.95.2).

Any ideas? Thnks for wour help

Jorge