Should ghci understand this pthread library?

2009-10-12 Thread Maurí­cio CA
After using ghci to load a library I'm working in, I got this message: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header) Then I did 'cat /usr/lib/libpthread.so' and, much to my surprise, it's a text file with the following contents: /* GNU ld script Use

Re: Should ghci understand this pthread library?

2009-10-12 Thread Maurí­cio CA
After using ghci to load a library I'm working in, I got this message: can't load .so/.DLL for: pthread (/usr/lib/libpthread.so: invalid ELF header) Sorry. Just found ticket on that issue and previous discussion. Please ignore. Thanks, Maurício

Re: GHCi can't see 'atexit', can't load module

2009-08-26 Thread Maurí­cio CA
I just checked it seems not to be possible to load any module in GHCi that uses FFI to wrap the standard C function 'atexit'. (...) A simple workaround is to just compile the module. (...) If I build a package (using cabal etc.) and try to load such package with 'ghci -package name' the

GHCi can't see 'atexit', can't load module

2009-08-25 Thread Maurí­cio CA
(I left this in cafe, but I think it is actually ghc related.) I just checked it seems not to be possible to load any module in GHCi that uses FFI to wrap the standard C function 'atexit'. When trying that, we get a message saying the symbol 'atexit' can't be found. (This is not a problem when