Lisp HUG Maillist Archive

fli:register-module problem

I don't know the LispWorks FLI package much, but I'm using CFFI with LW 6 on OSX 10.6.

CFFI seems to expect to be able to specify a library by a filename such as "libsqlite3.dylib", and then be able to find it in the standard location. It ends up doing this function call:

(fli:register-module "libsqlite3.dylib" :connection-style :immediate :real-name "libsqlite3.dylib")

Which fails with "image not found", but it succeds when given the full path as below:

(fli:register-module "libsqlite3.dylib" :connection-style :immediate :real-name "/usr/lib/libsqlite3.dylib")

Shouldn't the first call work ? dlopen() seems to be fine without the full path and stuff like

(fli:register-module "libsqlite3.dylib" :dlopen-flags :local-now)

looks like it's working, so what does :connection-style :immediate do ?


I also kind of remember that this used to work, but I might just be delusional ;)



Kind regards

André Lynum


Updated at: 2020-12-10 08:39 UTC