On Monday, April 24, 2006, at 04:50PM, James Bielman <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] writes: > >> I'm having trouble loading libraries using CFFI 0.9.0 on debian. Example: >> >> Gives: >> Unable to load foreign library: libc.so >> [Condition of type LOAD-FOREIGN-LIBRARY-ERROR] > >Taking a guess here, but I'd bet that your /usr/lib/libc.so is >actually a linker script. I'm not sure what dlopen is defined to do >in this case, but you are probably better off loading "libc.so.6" Thanks! That was the problem. I was also having trouble loading another library, located in /usr/local/lib. That doesn't seem to be in the default library search path on my debian box, though it is on my OS-X box. Or at least that is my guess based on this working (in the context of define-foreign-library): (:unix "/usr/local/lib/libplplotd.so") and this not working: (:unix "libplplot") However, maybe I didn't set something up correctly? For SBCL, does CFFI use sb-alien:load-shared-object to load the library? best, -Hazen _______________________________________________ cffi-devel mailing list cffi-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel