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