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

Redhat-6.2, configure and -ldl (ITS#1096)

Full_Name: Bob Tanner
Version: OpenLDAP 2.X-DeveL
OS: RedHat 6.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

OpenLDAP 2.X-Devel configure fails on the SSL check. Looking at config.log I see
that the conftest check failed to link because of undefined references:

configure:6556: checking for SSL_library_init in -lssl
configure:6575: cc -o conftest -g -O2   conftest.c -lssl -lcrypto -lresolv 
1>&5/usr/bin/../lib/libcrypto.so: undefined reference to `dlclose'
/usr/bin/../lib/libcrypto.so: undefined reference to `dlopen'
/usr/bin/../lib/libcrypto.so: undefined reference to `dlsym'

Adding the following patch fixes this problem under RedHat-6.2, I'm not sure how
it will effect other platforms. I doubled checked this problem on 4 other
RedHat-6.2 machines and they all do the same thing, so I think it's just a
RedHat-6.2 problem.

The patch:

--- ldap/configure.in	Mon Oct 30 11:46:17 2000
+++ ldap.rte/configure.in	Tue Feb 13 19:37:24 2001
@@ -949,7 +949,7 @@
 			AC_CHECK_LIB(ssl, SSL_library_init,
 				need_rsaref=no], [have_ssleay=no],
-				[-lcrypto])
+				[-lcrypto -ldl])
 		if test $have_ssleay = no ; then