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

Openldap Dynamic build broken (ITS#2341)

Full_Name: Quanah Gibson-Mount
Version: 2.1.14
OS: Solaris
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (


With the new release of openldap-2.1.14, I find that it is trying to statically
link against the static libraries in /usr/local/lib, even when I do not want it
to engage in this behaviour.

I have tried adding --enable-dynamic && --disable-static, and I still get the
same result.

The options I am using to build are:
@configure \
    --prefix=/usr/local \
    --disable-ipv6 \
    --enable-kbind \
    --with-cyrus-sasl \
    --with-kerberos \
    --with-tls \
    --enable-dynamic \
    --disable-slapd \

Note:  If I build the full release with the options:
@configure \
    --prefix=/usr/local \
    --disable-ipv6 \
    --with-cyrus-sasl \
    --with-kerberos \
    --with-tls \
    --enable-monitor \
    --enable-dynamic \
    --enable-slapd \
        --enable-aci \
        --enable-spasswd \
        --enable-rlookups \
        --enable-wrappers \

It builds just fine.

Your libtool has, for whatever reason, put in:
ldap9:/tmp/wraps/openldap-2.1.14/libraries/libldap# grep sasl2 *
Makefile:SASL_LIBS = -lsasl2
cyrus.c:         * libsasl2. Ensure they are not freed by liblber.
libldap.la:dependency_libs=' -R/usr/local/lib 
/tmp/wraps/openldap-2.1.14/libraries/liblber/liblber.la -lgen
/usr/local/lib/libsasl2.la -L/usr/local/lib -ldl /usr/local/lib/libkrb.la
/usr/local/lib/libkrb5.la -L/usr/local/stow/kthkrb4-1.2.1/lib
/usr/local/lib/libasn1.la /usr/local/lib/libroken.la -ldb
/usr/local/lib/libcom_err.la -lresolv -lnsl -lsocket -lssl -lcrypto '
libldap.la:relink_command="(cd /tmp/wraps/openldap-2.1.14/libraries/libldap;
/bin/sh /tmp/wraps/openldap-2.1.14/libtool --mode=relink /usr/pubsw/bin/gcc -O2
-version-info 2:114:0 -rpath /usr/local/lib -o libldap.la bind.lo open.lo
result.lo error.lo compare.lo search.lo controls.lo messages.lo references.lo
extended.lo cyrus.lo modify.lo add.lo modrdn.lo delete.lo abandon.lo sasl.lo
sbind.lo kbind.lo unbind.lo cancel.lo filter.lo free.lo sort.lo passwd.lo
whoami.lo getdn.lo getentry.lo getattr.lo getvalues.lo addentry.lo request.lo
os-ip.lo url.lo sortctrl.lo vlvctrl.lo init.lo options.lo print.lo string.lo
util-int.lo schema.lo charray.lo tls.lo os-local.lo dnssrv.lo utf-8.lo
utf-8-conv.lo version.lo ../../libraries/liblber/liblber.la -lresolv -lgen -lnsl
-lsocket -ldl -lsasl2 -lkrb -lkrb5 -lcrypto -lasn1 -lroken -lcom_err -lssl