On 7/26/05, Laurens Blankers <[EMAIL PROTECTED]> wrote: > Hi all, > > This problem still exists in svn-20050725. Could someone please comment on > David's solution and may be fix the book? > > Laurens > > On 7/8/05, David Fix <[EMAIL PROTECTED]> wrote: > > Hi guys, I wasn't sure which list to post this to, so I posted it to both > > BLFS support and BLFS Development... > > > > I'm using svn-20050707, and installed OpenSSH-4.1p1. > > > > I'm linking it statically against OpenSSL 0.98. The problem I had is that > > when I ran a make, lybcrypto.a was giving an undefined reference to > dlopen, > > dlfcn_load, and a lot of other functions. After doing a bit of digging, I > > found that I had to change the Makefile for OpenSSH to include -ldl, and > > that allowed it to compile correctly. Is this a known problem, or did I > > just come across something? Or perhaps I did something wrong? > > > > Here's the new line from the makefile: > > LIBS=-lresolv /usr/lib/libcrypto.a -lutil -lz -lnsl -lcrypt -ldl > > > > Hope this helps someone. ;) Or that someone can show me the CORRECT way > of > > doing it! :P > > >
The root of the problem seems to be openssl. libcrypto should have linked against libdl. On my system I see the following line when configuring openssl: EX_LIBS =-ldl and the resulting openssl libraries (atleast the shared ones) get linked against libdl. -- Tushar Teredesai mailto:[EMAIL PROTECTED] http://www.linuxfromscratch.org/~tushar/ -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
