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 problem persists. But, of course,
there are many workarounds.

Since I don't see this problem with other functions, and I see no
reason for this to happen, I imagine this is a small bug. If it's
not, I'll just remove 'atexit' from packages I have on hackage.

Thanks,
Maurício

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


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

2009-09-13 Thread Ian Lynagh
On Tue, Aug 25, 2009 at 11:20:17PM -0300, Maurí­cio CA wrote:
>
> 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 building an executable with
> ghc, though.)

It looks like the problem is that atexit is defined in the static
library /usr/lib/libc_nonshared.a. I think you'll have to make a C
wrapper for it in your package.


Thanks
Ian

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users