On Wed, 2004-07-28 at 09:44, Jens Petersen wrote:
> ps Actually I have a problem which I meant to ask about in
> my last posting... I can't seem to get glade.o and sourceview.o
> to load completely in ghci. Eg:
Yes, I've found this before.
> Loading package sourceview ... ghc-6.2.1: can't load .so/.DLL for: pthread
> (/usr/lib/libpthread.so: invalid ELF header)
> Any ideas what might be wrong?
If you look at /usr/lib/libpthread.so, you'll find that it is a GNU ld
script and not an elf file at all. When you link using ld, your binary
really gets linked to some other .so file. I asked about this on the ghc
list and no one really knew what to do about it. For our case I believe
we can omit linking with libpthread because it gets linked automagically