Ok, this is driving me nuts!!!! I can't build OpenLDAP with TLS support. configure fails with a TLS/SSL error. If I disable TLS everything works just fine. Everthing I can find on the net is telling me I'm doing this right but it's not working. I have OpenSSL 0.9.8x built and installed to a custom directory:
/appl/openssl
I have the following environment variables set:
LD_LIBRARY_PATH=/appl/BerkeleyDB/lib:/appl/openssl/lib:/appl/cyrus_sasl/lib:/appl/unixODBC/lib:/appl/openldap/lib:$LD_LIBRARY_PATH CPPFLAGS="-I/appl/BerkeleyDB/include -I/appl/openssl/include/openssl -I/appl/cyrus_sasl/include -I/appl/unixODBC/include -I/appl/openldap/include -I/usr/include -DF00=42" LDFLAGS="-L/appl/BerkeleyDB/lib -L/appl/openssl/lib -L/appl/cyrus_sasl/lib -L/appl/unixODBC/lib -L/appl/openldap/lib -L/usr/lib "
I run the following configure command:
./configure --prefix=/appl/openldap --enable-bdb --enable-ldap --enable-sql --enable-overlays --enable-spasswd --with-tls=openssl
And I get the following output:
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
What am I missing??
-Jon C. Kidder American Electric Power Middleware Services 614-716-4970
On Thu, 4 Oct 2012, jckidder@aep.com wrote:
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
So it found headers but couldn't link ... probably need a tweak to the LDFLAGS. Check the relevant compilation of "conftest" (somewhere toward the bottom of your config.log) and if it's not obvious you can try posting that, either here or to your linker vendor, for more precise assistance.
Thanks for the tip Aaron. I don't know why I didn't think to look in the config log. I was able to trace this back to a library that was missing during my openssl build.
-Jon C. Kidder American Electric Power Middleware Services 614-716-4970
Aaron Richton richton@nbcs.rutgers.edu 10/04/2012 11:38 AM
To jckidder@aep.com cc openldap-technical@openldap.org Subject Re: Can not build OpenLDAP with OpenSSL in custom location
On Thu, 4 Oct 2012, jckidder@aep.com wrote:
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
So it found headers but couldn't link ... probably need a tweak to the LDFLAGS. Check the relevant compilation of "conftest" (somewhere toward the bottom of your config.log) and if it's not obvious you can try posting
that, either here or to your linker vendor, for more precise assistance.
openldap-technical@openldap.org