Hello all,

  I'm trying to build the new release with --with-libffi, but it appears 
that the configuration is messed up.  (my compiler output is appended)
  Specifically, it seems that libffi is *not* compiled into libchicken, 
and so to use libchicken, libffi.a must be explicitly included when 
compiling any scheme(chicken) code (for use e.g. by C_apply()).
  Is this the desired behaviour?  I couldn't find this documented 
anywhere.
  Also, it appears that the *config script* knows to use -lffi (try fgrep 
lffi * at top-level), but no one else does.


  BTW, congratulations on reaching 2.0!

thanks,
Daniel Faken


-------------------------------------------
dhcp4-41:~/chicken-2.0%make
gmake  all-am
gmake[1]: Entering directory `/home/faken/chicken-2.0'
/bin/sh ./libtool --mode=link gcc  -I/home/faken/ffidl/libffi/include  
-L/home/faken/ffidl/libffi -export-dynamic -o nsample -static nsample.o 
libchicken.la  -ldl -lm
gcc -I/home/faken/ffidl/libffi/include -o nsample nsample.o 
-Wl,--export-dynamic  -L/home/faken/ffidl/libffi ./.libs/libchicken.a -ldl 
-lm
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x8fe9): In function 
`C_apply':
: undefined reference to `ffi_type_pointer'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x8ff5): In function 
`C_apply':
: undefined reference to `ffi_type_pointer'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x9001): In function 
`C_apply':
: undefined reference to `ffi_type_pointer'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x9049): In function 
`C_apply':
: undefined reference to `ffi_type_pointer'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x9087): In function 
`C_apply':
: undefined reference to `ffi_type_void'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x9099): In function 
`C_apply':
: undefined reference to `ffi_prep_cif'
./.libs/libchicken.a(libchicken_la-runtime.o)(.text+0x90d2): In function 
`C_apply':
: undefined reference to `ffi_call'
collect2: ld returned 1 exit status
gmake[1]: *** [nsample] Error 1




_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to