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

RE: elf error: file ../../libraries/libldbm/libldbm.a: elf_getarsym (ITS#2726)



Thanks, this is a known problem that occurs on some systems when back-ldbm is
not being used. In these cases libldbm.a is an empty file and some linkers
don't accept that as a legal input file. The fix is to remove any reference
to libldbm.a from the slapd and slapd/tools Makefile.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of raoul.becke@ctp.com


> 3. make
> result: failed:
> 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/opt/BerkeleyDB/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
> /opt/sunservices/OpenLDAP/openldap-2.1.22/libraries/liblber/.l
> ibs/liblber.a
> ../../libraries/liblber/.libs/liblber.a
> /opt/BerkeleyDB/lib/libdb-4.1.a -lresolv
> -lgen -lnsl -lsocket -ldl
> ld: elf error: file ../../libraries/libldbm/libldbm.a: elf_getarsym
> ld: fatal: File processing errors. No output written to slapd
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `slapd'
> Current working directory
> /opt/sunservices/OpenLDAP/openldap-2.1.22/servers/slapd
> *** Error code 1