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

Ian Lynagh igloo at
Sun Sep 13 07:25:03 EDT 2009

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.


More information about the Glasgow-haskell-users mailing list