[Openmcl-devel] Intermittent FFI problem

Tomas Hlavaty tom at logand.com
Fri Apr 1 07:04:46 PDT 2016


Hi Ron,

Ron Garret <ron at flownet.com> writes:
> and it does not seem to respect cffi:*foreign-library-directories*.
> No matter when I set that to, it picks up the outdated libssl in
> /usr/lib.

Not sure how does this work on darwin, but on Linux, I find it more
convenient to properly configure LD_LIBRARY_PATH and on windows PATH
environment variable.

> The problem is that Drakma uses CL+SSL, which uses libssl

cl+ssl is rather fragile and when I had similar problems, what worked
best for me was to remove it completely.

I simply call openssl program from lisp in the background and wrap the
input and output streams as a custom gray stream.  I had to slightly
modify drakma to use my custom stream.  It works very well both on linux
and windows, it uses whatever openssl program is in the PATH and I don't
have to deal with ffi issues anymore.

Hope it helps,

Tomas



More information about the Openmcl-devel mailing list