I have just put together a fresh LFS 20050502 system and an starting to
test BLFS.  I have run into a problem right away with either openssl or
openssh.

Openssl builds and installs by the book with no problems.

Openssh dies during the make:

/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':
dso_dlfcn.c:(.text+0x63): undefined reference to `dlopen'
dso_dlfcn.c:(.text+0xc5): undefined reference to `dlclose'
dso_dlfcn.c:(.text+0xf4): undefined reference to `dlerror'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':
dso_dlfcn.c:(.text+0x1a7): undefined reference to `dlclose'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':
dso_dlfcn.c:(.text+0x277): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x2f9): undefined reference to `dlerror'
/usr/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':
dso_dlfcn.c:(.text+0x37a): undefined reference to `dlsym'
dso_dlfcn.c:(.text+0x400): undefined reference to `dlerror'
collect2: ld returned 1 exit status
make: *** [ssh] Error 1

This is curious because we are using a sed:

sed -i "s:-lcrypto:/usr/lib/libcrypto.a:g" configure

to force a static library.  When I leave out the sed, openssl builds
fine.  Looking at the errors above it looks like the libcrypto.a file
has some calls to load functions dynamically.  The
dl{open,close,error,sym} functions are built as a part of binutils.
Right now this looks like a problem with openssl's building shared
libraries.

My next step will be to go back and rebuild openssl without the 'shared'
parameter and then try building openssh again with the static ibcrypto.a.

Any confirming messages or cluebats will be appreciated.

  -- Bruce



-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to