[Ecls-list] UFFI:LOAD-FOREIGN-LIBRARY

dan at sof.ch dan at sof.ch
Sat Nov 12 07:42:06 UTC 2005


Hi,

I tried to compile my SDL interface with latest CVS version and I got
a problem with the load-foreign-library.

The lines:

(uffi:load-foreign-library "/usr/lib/libSDL.so")
(uffi:load-foreign-library "/usr/lib/libSDL_image.so")

cause the compilation process to terminate with the following errors:

;;; Note: 
;;; Invoking external command: gcc -o "sdl.fas" -L"/usr/local/lib/ecl/" "sdl.o"  -Wl,--rpath,/usr/local/lib/ecl/ -shared   -lecl -ldl  -lm  /usr/lib/liblibSDL.a /usr/lib/liblibSDL_image.a

gcc: /usr/lib/liblibSDL.a: No such file or directory
gcc: /usr/lib/liblibSDL_image.a: No such file or directory
(SYSTEM "gcc -o \"sdl.fas\" -L\"/usr/local/lib/ecl/\" \"sdl.o\"  -Wl,--rpath,/usr/local/lib/ecl/ -shared   -lecl -ldl  -lm  /usr/lib/liblibSDL.a /usr/lib/liblibSDL_image.a") returned non-zero value 1
Broken at COMPILE-FILE.

I tried to track the problem and found that some changes where
introduced in the 1.33 version of the ffi.lsp file. In function
DO-LOAD-FOREIGN-LIBRARY, the filename is now handled by the
COMPILE-FILE-PATHNAME.

Do I missuse the LOAD-FOREIGN-LIBRARY or is it something wrong with
the new versions of ffi.lsp ?

Thanks a lot and have fun.

-- Courage, fuyons...




More information about the ecl-devel mailing list