Configure SSL Error
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'
:dso_dlfcn.c:(.text+0xac): undefined reference to dlclose' :dso_dlfcn.c:(.text+0xe6): undefined reference to dlerror'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
dlfcn_unload':dso_dlfcn.c:(.text+0x189): undefined reference to dlclose'
/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
dlfcn_bind_var':dso_dlfcn.c:(.text+0x267): undefined reference to dlsym'
:dso_dlfcn.c:(.text+0x343): undefined reference to dlerror' /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function dlfcn_bind_func':dso_dlfcn.c:(.text+0x3c1): undefined reference to
dlsym' :dso_dlfcn.c:(.text+0x4a1): undefined reference to dlerror'
collect2: ld returned 1 exit status
make: *** [test-link] Error 1
WARNING: OpenSSL library files found in /usr/local/ssl/lib, but link
fails.
Continuing with SSL support disabled.
I installed openssl 0.9.8e (most recent) and I'm running Hobbit 4.2.0 on Ubuntu 6.06LTS. A ./config -t for OpenSSL reveals this:
Operating system: i686-whatever-linux2 Configuring for linux-elf /usr/bin/perl ./Configure linux-elf
Am I overlooking something seriously obvious?
Thanks,
Brian Thompson
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 todlopen'
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
Excellent, that worked great. Thanks Henrik!
Brian Thompson
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Monday, June 11, 2007 4:45 PM To: hobbit at hswn.dk 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 todlopen'
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (2)
-
Brian.Thompson@detroitdiesel.com
-
henrik@hswn.dk