Excellent, that worked great. Thanks Henrik!
Brian Thompson
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Monday, June 11, 2007 4:45 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [BULK] Re: [hobbit] Configure SSL Error
Importance: Low
On Mon, Jun 11, 2007 at 04:23:53PM -0400, Thompson, Brian wrote:
Hi all, I've recently got my hobbit server back up and running and now
I need to add SSL support. I know I can just install it and redo a
configure;make;make install, but I get this error when running
configure:
Checking for OpenSSL ...
Found OpenSSL include files in /usr/local/ssl/include
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_load':dso_dlfcn.c:(.text+0x44): undefined reference to `dlopen'
It seems that your openssl libraries do not automatically pull in the
libdl library when you link with it.
As a workaround, you can change build/Makefile.test-ssl: The "test-link"
command reads
@$(CC) $(CFLAGS) $(OSSLLIB) -o test-ssl test-ssl.o -lssl -lcrypto
$(NETLIBS) Add a "-ldl" after the "$(NETLIBS)".
That should allow the configure script to complete. After that, you must
change the top-level Makefile: It has a line with
SSLLIBS = -L/usr/lib -lssl -lcrypto
Change that to
SSLLIBS = -L/usr/lib -lssl -lcrypto -ldl
Regards,
Henrik