[Ecls-list] building a static library that depends on CFFI

Simon Ortiz o.simon at gmail.com
Sun Aug 26 12:57:37 UTC 2012


dear Juanjo,

thank you for taking the time to test my case.

I tried both your versions. I only modified the -I and -L directories
in the makefile.

ffi-test runs without problems.

In the case of cffi-test, interestingly, it fails on my side. Attached
you can find a log of the cffi-test session.

The program seems to build without problem. Although, there is a line
that catches my attention, "ld: warning: duplicate dylib
/usr/lib/libm.dylib".

When I execute the program I get:

Condition of type: SIMPLE-ERROR
FIND-FOREIGN-SYMBOL: Could not load foreign symbol "sin" from module
:DEFAULT (Error: NIL)

Could we compare our ECL build settings, and our versions of libraries
in quicklisp? You can find my *FEATURES*  and versions in the log.

Thank you very much!

--
Simón Ortiz B., M.Sc., Ing. en Computación
Linux Registered User #388735


On 24 August 2012 22:35, Juan Jose Garcia-Ripoll
<juanjose.garciaripoll at gmail.com> wrote:
> Simon, I am not able of reproducing your problems. See the files here
>
> https://docs.google.com/folder/d/0B2brKGbNKZYDY0hiMXUyUy1aMUk/edit
>
> and how I build and run them
>
> bash-3.2$ cd build/ship-test/
> bash-3.2$ ls
> cffi-test ffi-test
> bash-3.2$ (cd cffi-test; ls -l; make && ./test_exe)
> total 11904
> -rw-r--r--@ 1 jjgarcia  staff      837 Aug 24 15:27 build.lisp
> -rw-r--r--@ 1 jjgarcia  staff       62 Aug 18 06:40 cffi-test-package.lisp
> -rw-r--r--@ 1 jjgarcia  staff      208 Aug 17 19:07 cffi-test.asd
> -rw-r--r--@ 1 jjgarcia  staff      779 Aug 24 15:24 cffi-test.lisp
> -rw-r--r--@ 1 jjgarcia  staff      649 Aug 24 15:32 main.c
> -rw-r--r--@ 1 jjgarcia  staff      248 Aug 24 15:31 makefile
> gcc -I/Users/jjgarcia/include main.c libcffi-test-mono.a -o test_exe
> -L/Users/jjgarcia/lib -lecl
>
> 0.8414709848078965d0
> 0.8414709848078965d0 (cffi-test:c-sine 1.0) => 0.841471
> (cffi-test:ff-c-sine 1.0) => 0.841471
> bash-3.2$ (cd ffi-test; ls -l; make && ./test_exe)
> total 192
> -rw-r--r--@ 1 jjgarcia  staff    248 Aug 24 15:27 build.lisp
> -rw-r--r--@ 1 jjgarcia  staff     51 Aug 17 18:29 ffi-test-package.lisp
> -rw-r--r--@ 1 jjgarcia  staff    187 Aug 17 18:33 ffi-test.asd
> -rw-r--r--@ 1 jjgarcia  staff    213 Aug 24 15:24 ffi-test.lisp
> -rw-r--r--@ 1 jjgarcia  staff    610 Aug 24 15:30 main.c
> -rw-r--r--@ 1 jjgarcia  staff    209 Aug 24 15:29 makefile
> gcc -I/Users/jjgarcia/include main.c libffi-test-mono.a -o test_exe
> -L/Users/jjgarcia/lib -lecl
>
> 0.8414709848078965d0
> 0.8414709848078965d0 (ffi-test:c-sine 1.0) => 0.841471
>
>
> --
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
> http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
Script started on Sun Aug 26 21:27:05 2012

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> ls
build.lisp             cffi-test.lisp         makefile
cffi-test-package.lisp libcffi-test-mono.a    test_exe
cffi-test.asd          main.c

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> cat makefile 

all: libcffi-test-mono.a
#	gcc -I$(HOME)/include main.c libcffi-test-mono.a -o test_exe -L$(HOME)/lib -lecl
	gcc -I/usr/local/include main.c libcffi-test-mono.a -o test_exe -L/usr/local/lib/ecl-12.7.1 -lecl

libcffi-test-mono.a:
	/usr/local/bin/ecl -norc -load $(HOME)/quicklisp/setup.lisp -load build.lisp -eval '(quit)'

clean:
	rm libcffi-test-mono.a test_exesimon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> 

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> make clean
rm libcffi-test-mono.a test_exe

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> which ecl
/usr/local/bin/ecl

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> ecl
ECL (Embeddable Common-Lisp) 12.7.1 (git:db7c2edf2e26e1d8f0841d9021c0e331c912d006)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.  
Top level in: #<process TOP-LEVEL>.
> *features*

(:DARWIN :FORMATTER :ECL-WEAK-HASH :LITTLE-ENDIAN :ECL-READ-WRITE-LOCK
 :LONG-LONG :UINT64-T :UINT32-T :UINT16-T :RELATIVE-PACKAGE-NAMES :LONG-FLOAT
 :UNICODE :CLOS-STREAMS :CMU-FORMAT :ECL-PDE :DLOPEN :CLOS :THREADS :BOEHM-GC
 :ANSI-CL :COMMON-LISP :IEEE-FLOATING-POINT :PREFIXED-API :FFI :I686 :COMMON
 :ECL)
> (quit)

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> ls ~/quicklisp/dists/quicklisp/software/
alexandria-20110522-git         cl-png-0.6
babel-20101107-darcs            iterate-20110219-darcs
cffi_0.10.6                     lispbuilder-20110619-svn
cl-openal-20110522-git          trivial-features-20101006-darcs
cl-opengl-20110619-git          trivial-garbage-20101006-darcs

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> make
/usr/local/bin/ecl -norc -load /Users/simon/quicklisp/setup.lisp -load build.lisp -eval '(quit)'
;;; Loading "/Users/simon/quicklisp/setup.lisp"
;;; Loading #P"/usr/local/lib/ecl-12.7.1/cmp.fas"
;;; Loading #P"/usr/local/lib/ecl-12.7.1/asdf.fas"
;;; Warning:
;;;   in file impl-util.lisp, position 48
;;;   at (DEFINTERFACE CALL-WITH-QUIET-COMPILATION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 426
;;;   at (DEFIMPLEMENTATION (CALL-WITH-QUIET-COMPILATION FOR ...) ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 624
;;;   at (DEFIMPLEMENTATION (CALL-WITH-QUIET-COMPILATION FOR ...) ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 801
;;;   at (DEFINTERFACE RENAME-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 801
;;;   at (DEFINTERFACE RENAME-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 801
;;;   at (DEFINTERFACE RENAME-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1101
;;;   at (DEFINTERFACE PROBE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1101
;;;   at (DEFINTERFACE PROBE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 1679
;;;   at (DEFINTERFACE INIT-FILE-NAME ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 4891
;;;   at (DEFINTERFACE NATIVE-NAMESTRING ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 4891
;;;   at (DEFINTERFACE NATIVE-NAMESTRING ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 4891
;;;   at (DEFINTERFACE NATIVE-NAMESTRING ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 5702
;;;   at (DEFINTERFACE DIRECTORY-ENTRIES ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7106
;;;   at (DEFINTERFACE DIRECTORYP ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7106
;;;   at (DEFINTERFACE DIRECTORYP ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7106
;;;   at (DEFINTERFACE DIRECTORYP ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 7478
;;;   at (DEFINTERFACE DELETE-DIRECTORY ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 8100
;;;   at (DEFINTERFACE DELETE-DIRECTORY-TREE ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 8100
;;;   at (DEFINTERFACE DELETE-DIRECTORY-TREE ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file impl-util.lisp, position 8100
;;;   at (DEFINTERFACE DELETE-DIRECTORY-TREE ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.;;; Warning: COMPILE-FILE warned while performing
             #<compile-op (:VERBOSE NIL) 0000000103aea6c0> on
             #<cl-source-file "quicklisp" "impl-util">.

;;; Warning:
;;;   in file network.lisp, position 75
;;;   at (DEFINTERFACE HOST-ADDRESS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 75
;;;   at (DEFINTERFACE HOST-ADDRESS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 230
;;;   at (DEFINTERFACE OPEN-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 2772
;;;   at (DEFINTERFACE READ-OCTETS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 2772
;;;   at (DEFINTERFACE READ-OCTETS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 2772
;;;   at (DEFINTERFACE READ-OCTETS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 3221
;;;   at (DEFINTERFACE WRITE-OCTETS ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 3427
;;;   at (DEFINTERFACE CLOSE-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.
;;; Warning:
;;;   in file network.lisp, position 3534
;;;   at (DEFINTERFACE CALL-WITH-CONNECTION ...)
;;;   ! The variable #:%IMPLEMENTATION is not used.;;; Warning: COMPILE-FILE warned while performing
             #<compile-op (:VERBOSE NIL) 0000000103aea6c0> on
             #<cl-source-file "quicklisp" "network">.

;;; Warning:
;;;   in file dist.lisp, position 4859
;;;   at (DEFGENERIC PREFERENCE ...)
;;;   ! The variable OBJECT is not used.
;;; Warning:
;;;   in file dist.lisp, position 12450
;;;   at (DEFMETHOD SLOT-UNBOUND ...)
;;;   ! The variable SLOT is not used.
;;; Warning:
;;;   in file dist.lisp, position 13759
;;;   at (DEFMETHOD SLOT-UNBOUND ...)
;;;   ! The variable SLOT is not used.
;;; Warning:
;;;   in file dist.lisp, position 18418
;;;   at (DEFMETHOD LOCAL-ARCHIVE-FILE-VALID-P ...)
;;;   ! The variable RELEASE is not used.
;;; Warning:
;;;   in file dist.lisp, position 22936
;;;   at (DEFMETHOD SLOT-UNBOUND ...)
;;;   ! The variable SLOT is not used.
;;; Warning:
;;;   in file dist.lisp, position 24948
;;;   at (DEFMETHOD SLOT-UNBOUND ...)
;;;   ! The variable SLOT is not used.
;;; Warning:
;;;   in file dist.lisp, position 25225
;;;   at (DEFMETHOD SLOT-UNBOUND ...)
;;;   ! The variable SLOT is not used.
;;; Warning:
;;;   in file dist.lisp, position 28257
;;;   at (DEFMETHOD PROVIDED-SYSTEMS ...)
;;;   ! The variable OBJECT is not used.
;;; Warning:
;;;   in file dist.lisp, position 28460
;;;   at (DEFMETHOD PROVIDED-RELEASES ...)
;;;   ! The variable OBJECT is not used.;;; Warning: COMPILE-FILE warned while performing
             #<compile-op (:VERBOSE NIL) 0000000103aea6c0> on
             #<cl-source-file "quicklisp" "dist">.

;;; Warning:
;;;   in file client.lisp, position 809
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable EXPLAIN is not used.
;;; Warning:
;;;   in file client.lisp, position 809
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable PROMPT is not used.
;;; Warning:
;;;   in file client.lisp, position 809
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable VERBOSE is not used.
;;; Warning:
;;;   in file client.lisp, position 809
;;;   at (DEFMETHOD QUICKLOAD ...)
;;;   ! The variable SYSTEMS is not used.;;; Warning: COMPILE-FILE warned while performing
             #<compile-op (:VERBOSE NIL) 0000000103aea6c0> on
             #<cl-source-file "quicklisp" "client">.

;;; Warning:
;;;   in file dist-update.lisp, position 3649
;;;   at (DEFMETHOD UPDATE-IN-PLACE ...)
;;;   ! The variable NEW-DIST is not used.
;;; Warning:
;;;   in file dist-update.lisp, position 3819
;;;   at (DEFMETHOD UPDATE-IN-PLACE ...)
;;;   ! The variable OLD-DIST is not used.;;; Warning: COMPILE-FILE warned while performing
             #<compile-op (:VERBOSE NIL) 0000000103aea6c0> on
             #<cl-source-file "quicklisp" "dist-update">.

;;; Loading "/Users/simon/Projects/ecl-tests/ship-test/cffi-test/build.lisp"
To load "trivial-features":
  Load 1 ASDF system:
    trivial-features
; Loading "trivial-features"

To load "babel":
  Load 1 ASDF system:
    babel
; Loading "babel"
[package alexandria.0.dev]........................
[package babel-encodings].........................
[package babel]........................
To load "alexandria":
  Load 1 ASDF system:
    alexandria
; Loading "alexandria"

To load "cffi":
  Load 1 ASDF system:
    cffi
; Loading "cffi"
[package cffi-sys]................................
[package cffi-callbacks]..........................
[package cffi]....................................
[package cffi-features].
;;; Loading "/Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test.asd"
;;;
;;; Compiling /Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test-package.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; End of Pass 1.
;;; Finished compiling /Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test-package.lisp.
;;;
;;; Loading "/Users/simon/.cache/common-lisp/ecl-12.7.1-db7c2edf-macosx-x86/Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test-package.fas"
;;;
;;; Compiling /Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test.lisp.
;;; OPTIMIZE levels: Safety=2, Space=0, Speed=3, Debug=0
;;;
;;; Compiling (CFFI:DEFCFUN ("sin" C-SINE) ...).
;;; Compiling (DEFUN FF-C-SINE ...).
;;; End of Pass 1.
;;; Emitting code for C-SINE.
;;; Emitting code for FF-C-SINE.
;;; Finished compiling /Users/simon/Projects/ecl-tests/ship-test/cffi-test/cffi-test.lisp.
;;;
ld: warning: duplicate dylib /usr/lib/libm.dylib
gcc -I/usr/local/include main.c libcffi-test-mono.a -o test_exe -L/usr/local/lib/ecl-12.7.1 -lecl

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> ./test_exe 

Condition of type: SIMPLE-ERROR
FIND-FOREIGN-SYMBOL: Could not load foreign symbol "sin" from module :DEFAULT (Error: NIL)
No restarts available.

Top level in: #<process TOP-LEVEL>.
> (quit)

Condition of type: SIMPLE-ERROR
FIND-FOREIGN-SYMBOL: Could not load foreign symbol "sin" from module :DEFAULT (Error: NIL)

No restarts available.

Top level in: #<process TOP-LEVEL>.
> (quit)
(cffi-test:c-sine 1.0) => fail!
(cffi-test:ff-c-sine 1.0) => fail!

simon at Diglet:~/projects/ecl-tests/ship-test/cffi-test> exit

Script done on Sun Aug 26 21:28:53 2012


More information about the ecl-devel mailing list