[cl-debian] Bug#433814: cl-uffi: Silently fails to load non-existent .so files

Kevin Rosenberg kevin at rosenberg.net
Thu Jul 19 17:02:53 UTC 2007


Mark Wooding wrote:
> On CMUCL, the uffi:load-foreign-library function attempts to use
> sys::load-object-file to load .so files (rather than falling back to
> alien:load-foreign as it does for other types).  However, unlike
> alien:load-foreign, sys::load-object-file reports errors (e.g., failure to
> find the library in question) by returning nil.  UFFI ignores this
> return value (resumably assuming that it would signal an error), and
> assumes it succeeded.

The specification for load-foreign-library
(http://uffi.b9.com/manual/load-foreign-library.html) states that the
function will return NIL if the library was not able to be
loaded. Thus, the current code correctly follows the specification for
this particular case.

Kevin





More information about the Cl-debian mailing list