
latest error: gcc -o inst/bin/yhi src/runtime/BCKernel/process.o src/runtime/BCKernel/external.o src/runtime/BCKernel/hashtable.o src/runtime/BCKernel/heap.o src/runtime/BCKernel/hsffi.o src/runtime/BCKernel/info.o src/runtime/BCKernel/integer.o src/runtime/BCKernel/iofuncs.o src/runtime/BCKernel/jonkers.o src/runtime/BCKernel/main.o src/runtime/BCKernel/make.o src/runtime/BCKernel/mark.o src/runtime/BCKernel/module.o src/runtime/BCKernel/mutator.o src/runtime/BCKernel/primitive.o src/runtime/BCKernel/pretty.o src/runtime/BCKernel/sanity.o src/runtime/BCKernel/stopcopy.o src/runtime/BCKernel/profile.o src/runtime/BCKernel/foreign.o src/runtime/BCKernel/thread.o src/runtime/BCKernel/stable.o src/runtime/BCKernel/builtin/Array.o src/runtime/BCKernel/builtin/FFI.o src/runtime/BCKernel/builtin/IO.o src/runtime/BCKernel/builtin/Prelude.o src/runtime/BCKernel/builtin/Concurrent.o src/runtime/BCKernel/builtin/PackedString.o src/runtime/BCKernel/builtin/RuntimeAPI.o src/runtime/BCKernel/builtin/System.o depends/ctypes/libffi/src/prep_cif.o depends/ctypes/libffi/src/cfield.o depends/ctypes/libffi/src/x86/ffi.o depends/ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -lgmp -ldl -lm -lpthread /usr/bin/ld: cannot find -ldl scons: *** [inst/bin/yhi] Error 1 scons: building terminated because of errors. The issue, I think, is that, unlike on Linux, the dl* functions are in libc, not libdl. - David -- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw

Further to this, this is true of all the BSDs. I checked the online
man page interface at
http://www.freebsd.org/cgi/man.cgi
for NetBSD and OpenBSD as well, and looked for "dlopen".
(Hmm. I didn't check DragonflyBSD. Not sure how to do this online. But
since it was initially a close relative of FreeBSD, I would wager that
it won't have a separate libdl either.)
HTH.
- David
On 8/30/06, David Frech
latest error:
gcc -o inst/bin/yhi src/runtime/BCKernel/process.o src/runtime/BCKernel/external.o src/runtime/BCKernel/hashtable.o src/runtime/BCKernel/heap.o src/runtime/BCKernel/hsffi.o src/runtime/BCKernel/info.o src/runtime/BCKernel/integer.o src/runtime/BCKernel/iofuncs.o src/runtime/BCKernel/jonkers.o src/runtime/BCKernel/main.o src/runtime/BCKernel/make.o src/runtime/BCKernel/mark.o src/runtime/BCKernel/module.o src/runtime/BCKernel/mutator.o src/runtime/BCKernel/primitive.o src/runtime/BCKernel/pretty.o src/runtime/BCKernel/sanity.o src/runtime/BCKernel/stopcopy.o src/runtime/BCKernel/profile.o src/runtime/BCKernel/foreign.o src/runtime/BCKernel/thread.o src/runtime/BCKernel/stable.o src/runtime/BCKernel/builtin/Array.o src/runtime/BCKernel/builtin/FFI.o src/runtime/BCKernel/builtin/IO.o src/runtime/BCKernel/builtin/Prelude.o src/runtime/BCKernel/builtin/Concurrent.o src/runtime/BCKernel/builtin/PackedString.o src/runtime/BCKernel/builtin/RuntimeAPI.o src/runtime/BCKernel/builtin/System.o depends/ctypes/libffi/src/prep_cif.o depends/ctypes/libffi/src/cfield.o depends/ctypes/libffi/src/x86/ffi.o depends/ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -lgmp -ldl -lm -lpthread /usr/bin/ld: cannot find -ldl scons: *** [inst/bin/yhi] Error 1 scons: building terminated because of errors.
The issue, I think, is that, unlike on Linux, the dl* functions are in libc, not libdl.
- David
-- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
-- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw

Hi,
Can you run 'scons configure' and email the output to me? It's fairly easy
to make the required change, I just need to know how to determine whether it
is being built on BSD on not.
Cheers,
Andrew
On 8/31/06, David Frech
Further to this, this is true of all the BSDs. I checked the online man page interface at
http://www.freebsd.org/cgi/man.cgi
for NetBSD and OpenBSD as well, and looked for "dlopen".
(Hmm. I didn't check DragonflyBSD. Not sure how to do this online. But since it was initially a close relative of FreeBSD, I would wager that it won't have a separate libdl either.)
HTH.
- David
On 8/30/06, David Frech
wrote: latest error:
gcc -o inst/bin/yhi src/runtime/BCKernel/process.o src/runtime/BCKernel/external.o src/runtime/BCKernel/hashtable.o src/runtime/BCKernel/heap.o src/runtime/BCKernel/hsffi.o src/runtime/BCKernel/info.o src/runtime/BCKernel/integer.o src/runtime/BCKernel/iofuncs.o src/runtime/BCKernel/jonkers.o src/runtime/BCKernel/main.o src/runtime/BCKernel/make.o src/runtime/BCKernel/mark.o src/runtime/BCKernel/module.o src/runtime/BCKernel/mutator.o src/runtime/BCKernel/primitive.o src/runtime/BCKernel/pretty.o src/runtime/BCKernel/sanity.o src/runtime/BCKernel/stopcopy.o src/runtime/BCKernel/profile.o src/runtime/BCKernel/foreign.o src/runtime/BCKernel/thread.o src/runtime/BCKernel/stable.o src/runtime/BCKernel/builtin/Array.o src/runtime/BCKernel/builtin/FFI.o src/runtime/BCKernel/builtin/IO.o src/runtime/BCKernel/builtin/Prelude.o src/runtime/BCKernel/builtin/Concurrent.o src/runtime/BCKernel/builtin/PackedString.o src/runtime/BCKernel/builtin/RuntimeAPI.o src/runtime/BCKernel/builtin/System.o depends/ctypes/libffi/src/prep_cif.o depends/ctypes/libffi/src/cfield.o depends/ctypes/libffi/src/x86/ffi.o depends/ctypes/libffi/src/x86/sysv.o -L/usr/local/lib -lgmp -ldl -lm -lpthread /usr/bin/ld: cannot find -ldl scons: *** [inst/bin/yhi] Error 1 scons: building terminated because of errors.
The issue, I think, is that, unlike on Linux, the dl* functions are in libc, not libdl.
- David
-- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
-- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw _______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc
participants (2)
-
Andrew Wilkinson
-
David Frech