need help debugging wierd dlopen failure

Luís Oliveira luismbo at gmail.com
Tue Sep 20 13:32:50 UTC 2016


On Tue, Sep 20, 2016 at 10:53 AM, Jim Newton <jimka.issy at gmail.com> wrote:
> CL-USER> (cffi::list-foreign-libraries)
> (...
>  #<CFFI:FOREIGN-LIBRARY
>    :LIBCAIRO #P"/usr/local/Cellar/cairo/1.12.16_1/lib/libcairo.dylib" (truename=#P"/usr/local/Cellar/cairo/1.12.16_1/lib/libcairo.2.dylib")>)
> CL-USER>
>
> However, when I attempt to load libgdk-x11-2.0.0.dylib it complains that it cannot find a particular symbol in /usr/local/lib/libcairo.dylib.  Why is it complaining about /usr/local/lib/libcairo.dylib?

Most of those dylibs are symlinks and libgdk may depend on a name
which exists in /usr/local/lib but not /usr/local/Cellar, maybe? ldd
can tell you what a given dylib depends on.

Cheers,

-- 
Luís Oliveira
http://kerno.org/~luis/



More information about the cffi-devel mailing list