[cffi-devel] Possible regression in use-foreign-library

Luke Crook luke at balooga.com
Tue Dec 22 19:00:02 UTC 2009


Ah... That explains a few bugs I've been seeing. Thank you.

Stelian Ionescu <sionescu <at> cddr.org> writes:

> 
> > If the glue library is available then *lispbuilder-sdl-audio* is added
> > to *features*. If *lispbuilder-sdl-audio* is not available then you
> > have to use lispbuilder-sdl-mixer for sound. Right now the sdl-glue
> > library has been built for Windows only. I still have to create a
> > makefile for linux.
> 
> The point is that your code relies on use-foreign-library signaling an
> error if the glue library cannot be loaded, but that's not the same
> thing as it non being there.

On the other hand, I would be interested in understanding how a
non-exist library library can be loaded successfully :)

> 
> On Linux, use-foreign-library returns fine even if the library doesn't
> exist which means that :lispbuilder-sdl-audio is always pushed to
> *features* and that causes errors about undefined alien functions when
> running examples.

Isn't this a bug in CFFI?

- Luke





More information about the cffi-devel mailing list