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

Re: (ITS#8325) Building Problems openLDAP 2.4.43 pthread_mutexattr_setrobust

bernhard.pfeiffer33@gmail.com wrote:
> Full_Name: Bernhard Pfeiffer
> Version: openLDAP 2.4.43
> OS: SUSE 11
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> Since the new version i get building problems under SUSE11:

Unfortunate. Read liblmdb/mdb.c around lines 241 onward. Either the glibc 
version detection is wrong, or your system just has a weirdly patched glibc. 
You can either try to fix the version detection, or just compile with 
-DMDB_USE_ROBUST=0 to bypass this.

> cc -g -O2 -o slapd main.o globals.o bconfig.o config.o daemon.o connection.o
> search.o filter.o add.o cr.o attr.o entry.o backend.o backends.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 lock.o controls.o extended.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 sl_malloc.o zn_malloc.o limits.o operational.o
> matchedValues.o cancel.o syncrepl.o backglue.o backover.o ctxcsn.o ldapsync.o
> frontend.o slapadd.o slapcat.o slapcommon.o slapdn.o slapindex.o slappasswd.o
> slaptest.o slapauth.o slapacl.o component.o aci.o alock.o txn.o slapschema.o
> version.o -pthread  -L/products/db-5.2.42/lib -L/products/openssl-1.0.2d/lib
> libbackends.a liboverlays.a ../../libraries/liblunicode/liblunicode.a
> ../../libraries/librewrite/librewrite.a ../../libraries/liblutil/liblutil.a
> ../../libraries/libldap_r/.libs/libldap_r.a
> /data0/install/openLDAP_v2/openldap-2.4.43/libraries/liblber/.libs/liblber.a
> ../../libraries/liblber/.libs/liblber.a /products/db-5.2.42/lib/libdb-5.2.so
> -lpthread -lssl -lcrypto -lresolv -pthread -Wl,--rpath
> -Wl,/products/db-5.2.42/lib -Wl,--rpath -Wl,/products/openssl-1.0.2d/lib
> daemon.o: In function `alap_listener':
> /data0/install/openLDAP_v2/openldap-2.4.43/servers/slapd/daemon.c:1873: warning:
> `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
> /data0/install/openLDAP_v2/openldap-2.4.43/servers/slapd/daemon.c:1873: warning:
> `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
> libbackends.a(mdbmdb.o): In function `mdb_mutex_failed':
> /data0/install/openLDAP_v2/openldap-2.4.43/servers/slapd/back-mdb/./../../../libraries/liblmdb/mdb.c:9977:
> undefined reference to `pthread_mutex_consistent'
> libbackends.a(mdbmdb.o): In function `mdb_env_setup_locks':
> /data0/install/openLDAP_v2/openldap-2.4.43/servers/slapd/back-mdb/./../../../libraries/liblmdb/mdb.c:4620:
> undefined reference to `pthread_mutexattr_setrobust'
> collect2: ld returned 1 exit status
> make[2]: *** [slapd] Error 1
> make[2]: Leaving directory
> `/data0/install/openLDAP_v2/openldap-2.4.43/servers/slapd'
> make[1]: *** [all-common] Error 1
> make[1]: Leaving directory `/data0/install/openLDAP_v2/openldap-2.4.43/servers'
> make: *** [all-common] Error 1

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/