On Mon, 2006-08-07 at 09:40 -0500, Arnie Stender wrote:
> Simon Geard wrote:
>
> >I can't help you with 64-bit issues or CLFS, since
I don't own a 64-bit
> >system. But I can tell you you're heading down
completely the wrong
> >track looking for dlopen and friends as part of
OpenSSL. They're
> >standard functions provided by glibc, so you
certainly should have them
> >on the system.
> >
> >In any case, try providing us the actual messages,
and someone might be
> >able to help.
> >
> >Simon.
> >
> >
> Hi Simon,
> Well, I couldn't verify that glibc contains those
functions but the
> way I read the output from make for ntpd it is looking
in libcrypto for
> them and in fact nm on libcrypto.a shows the names but
says they are
> unresolved. Here is the final output from make in the
ntp--4.2.2p3-RC2
> source directory.
You're misreading it - it's not that something is looking
in libcrypto
for those functions, but that something in libcrypto is
looking for
those functions. Looks like libcrypto contains some sort of
wrapper for
those functions, I guess for compatibility with non-Linux
systems.
> make[2]: Entering directory
`/usr/src/secondary/ntp-4.2.2p3-RC2/ntpd'
> gcc -fPIC -m64 -Wall -Wcast-qual -Wmissing-prototypes
-Wpointer-arith
> -Wshadow -Wstrict-prototypes -L/usr/local/ssl/lib -o
ntpd cmd_args.o
> ntp_config.o ntp_io.o ntpd.o version.o libntpd.a
../libntp/libntp.a -lm
> -lcrypto
> /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In
function `dlfcn_bind_func':
> dso_dlfcn.c:(.text+0x2aa): undefined reference to
`dlsym'
> dso_dlfcn.c:(.text+0x356): undefined reference to
`dlerror'
Ok, well on most systems, those functions are in libdl -
part of glibc,
but not in the main library that gets included by default.
Try go to the directory it mentions, and manually run the
gcc command
above with -ldl appended to ensure it gets linked (or edit
the Makefile
to pass it). Does that work?
Not sure why this is failing - possibly it's because it's
using a static
version of libcrypto (a .a)? A shared library would normally
itself be
linked to libdl, so ntpd wouldn't need to worry about it.
Simon.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-suppo
rt
FAQ: http://
www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page |