[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Configure SSL Error
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Configure SSL Error
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Mon, 11 Jun 2007 22:44:33 +0200
- References: <C1E3B1178BED2E4B8232441A00FFE4DD72BDC8 (at) DDCEXCH3.ddcnet.detroitdiesel.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
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