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

SSL libraries in OpenLDAP libraries



Hi there,

I am currently building an SSL aware version of the OpenLDAP libraries and
strangely the OpenLDAP libraries cannot find my OpenSSL libraries but the
OpenLDAP binaries such as ldapsearch can find libssl and libcrypto, here is
an example of ldd on ldapsearch and then on libldap.so.2.0.17:

> ldd ldapsearch
        libssl.so.0.9.6 =>       /opt/ONopenssl/lib/libssl.so.0.9.6
        libcrypto.so.0.9.6 =>    /opt/ONopenssl/lib/libcrypto.so.0.9.6
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1

> ldd libldap.so.2.0.17
        libssl.so.0.9.6 =>       (file not found)
        libcrypto.so.0.9.6 =>    (file not found)
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1

Here is how I compile OpenLDAP (version 2.0.27):

cd openldap-2.0.27

export CPPFLAGS="-I/opt/ONopenssl/include"
export LDFLAGS="-L/opt/ONopenssl/lib -R/opt/ONopenssl/lib"

./configure --prefix=/opt/ONopnldap --with-tls --without-cyrus-sasl
--disable-slapd --disable-
ldbm
gmake depend
gmake
gmake install

Do you maybe have any ideas what I am doing wrong and why the OpenLDAP
libraries cannot find the path to the OpenSSL libraries ?

For your information this is on a Sun Netra X1 box running Solaris 8.

Many thanks

Regards
Marc