[darcs-users] ghci hints?

Andrew Pimlott andrew at pimlott.net
Tue Oct 5 19:20:05 UTC 2004


On Tue, Oct 05, 2004 at 12:45:18PM -0500, Taral wrote:
> On Mon, Oct 04, 2004 at 10:04:04PM -0400, Andrew Pimlott wrote:
> >     Loading object (dynamic) pthread ... failed.
> >     Dynamic linker error message was:
> >        /usr/lib/libpthread.so: invalid ELF header
> >     Whilst trying to load:  (dynamic) pthread
> >     Directories to search are:
> >     ghc-6.2.1: user specified .o/.so/.DLL could not be loaded.
> 
> What does "file /usr/lib/libpthread.so" say?

Thanks for the idea--I knew the answer as soon as I saw the question.
:-)  Yes, it's a linker script.

    OUTPUT_FORMAT(elf32-i386)
    GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )

But I don't know what to do about it.  I tried hacking around, making
libpthread.so a link to /lib/libpthread.so.0, and adding
/usr/lib/libpthread_nonshared.a to the list of objects, but then I get

    /usr/lib/libpthread.so: symbol _errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
    
Any ideas?  Do you think this has anything to do with the second error I
got (I doubt it)?

Andrew




More information about the darcs-users mailing list