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

Re: Compiling OpenLDAP against static OpenSSL libraries

Apologies, I didn't add the configure command and output. The static libraries are present in the included directory specified in the configure command.

>CC="/usr/sfw/bin/gcc" LIBS="-lssl -lcrypto -lresolv -lgen -lnsl -lsocket" LDFLAGS="-L/workingdir/openssl-0.9.8r/build-SOLARIS/usr/local/openssl-0.9.8r/lib -R/workingdir/openssl-0.9.8r/build-SOLARIS/usr/local/openssl-0.9.8r/lib" CPPFLAGS="-I/workingdir/openssl-0.9.8r/build-SOLARIS/usr/local/openssl-0.9.8r/include"
>./configure --prefix=/workingdir/openldap-2.4.23/build-SOLARIS/usr/local/openldap-2.4.23 --disable-slapd --disable-shared --disable-dynamic --with-tls=openssl --with-ssl
>Configuring OpenLDAP 2.4.23-Release ...
>checking build system type... sparc-sun-solaris2.10
>checking host system type... sparc-sun-solaris2.10
>checking target system type... sparc-sun-solaris2.10
>(other checks)
>checking struct sockaddr_storage... yes
>checking sys/un.h usability... yes
>checking sys/un.h presence... yes
>checking for sys/un.h... yes
>checking openssl/ssl.h usability... yes
>checking openssl/ssl.h presence... yes
>checking for openssl/ssl.h... yes
>checking for SSL_library_init in -lssl... no
>checking for ssl3_accept in -lssl... no
>configure: error: Could not locate TLS/SSL package

The Uhu <the_uhu@hotmail.com> wrote:

First off I have tried searching the net about this and all I find is that OpenSSL has to be built with shared libraries. However I have a need to use static OpenSSL libraries for supportability purposes (avoid conflicts with the older system version and for portability across hosts).

Is it really not possible to do this? If not, and out of interest, what's the rationale?

Thanks in advance.