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

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

On Wed, Mar 28, 2001 at 09:55:24PM +0000, tanner@real-time.com wrote:
> 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.

This patch is just plain wrong. libcrypto.so should be linked against
whatever libraries it needs to satisfy it's own dependencies. It should
not force other programs to guess what they are. That's counter
intuitive to shared library linking.

/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '