Hi,
I'm installing openldap with tls against a custom openssl install that is located in /usr/local/ssl .
To compile I run # export LDFLAGS="-L/usr/local/ssl/lib" # export CPPFLAGS="-I/usr/local/ssl/include/openssl"
Then we have # env | grep FLAG LDFLAGS=-L/usr/local/ssl/lib CPPFLAGS=-I/usr/local/ssl/include/openssl
So that all looks normal. But when I run 'configure' with # ./configure --prefix=/usr/local/openldap --libexecdir=/usr/local/libexec --enable-slurpd --with-tls --enable-slapd
the last few lines I see are
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 checking OpenSSL library version (CRL checking capability)... no configure: error: Could not locate TLS/SSL package
So it looks like it can see the header files alright at least.
I have attached my config.log file to this mail, in case that might help.
Thanks, Andrew
Andrew Higginbotham wrote:
Hi,
I'm installing openldap with tls against a custom openssl install that is located in /usr/local/ssl .
To compile I run # export LDFLAGS="-L/usr/local/ssl/lib" # export CPPFLAGS="-I/usr/local/ssl/include/openssl"
Then we have # env | grep FLAG LDFLAGS=-L/usr/local/ssl/lib CPPFLAGS=-I/usr/local/ssl/include/openssl
So that all looks normal. But when I run 'configure' with # ./configure --prefix=/usr/local/openldap --libexecdir=/usr/local/libexec --enable-slurpd --with-tls --enable-slapd
the last few lines I see are
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 checking OpenSSL library version (CRL checking capability)... no configure: error: Could not locate TLS/SSL package
So it looks like it can see the header files alright at least.
I have attached my config.log file to this mail, in case that might help.
Next time strip out everything before the actual error you're trying to track down.
In this case we have
configure:19589: checking for SSL_library_init in -lssl configure:19619: cc -o conftest -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include/openssl -L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lresolv >&5 /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x38): In function `dlfcn_load': : undefined reference to `dlopen' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xa0): In function `dlfcn_load': : undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0xc9): In function `dlfcn_load': : undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x13e): In function `dlfcn_unload': : undefined reference to `dlclose' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x1f5): In function `dlfcn_bind_var': : undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x241): In function `dlfcn_bind_var': : undefined reference to `dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x2d5): In function `dlfcn_bind_func': : undefined reference to `dlsym' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o)(.text+0x321): In function `dlfcn_bind_func': : undefined reference to `dlerror' collect2: ld returned 1 exit status configure:19625: $? = 1 configure: failed program was:
Your OpenSSL crypto library seems to depend on -ldl. Setting LIBS=-ldl before running configure may fix this. It may also indicate that the OpenSSL libraries were built incorrectly, but there's no way to tell until you actually get all their link dependencies satisfied.
configure:19662: checking for ssl3_accept in -lssl configure:19692: cc -o conftest -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include/openssl -L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lRSAglue -lrsaref -lresolv >&5 /usr/bin/ld: cannot find -lRSAglue collect2: ld returned 1 exit status configure:19698: $? = 1 configure: failed program was:
This test is only a fallback because the previous test failed. The real problem is that the previous test failed.
openldap-software@openldap.org