Jason,<br><br>Looks like it can't find ffi.h.  I suppose that you should be able to point it to the correct location by changing the the form in the asd file from<br><br>(cffi-grovel:grovel-file "libffi" :pathname #+unix "libffi-unix")<br>

<br>to <br><br>(cffi-grovel:grovel-file "libffi" :pathname #+unix "libffi-unix" :cc-flags "-I/path/to/ffi/headers")<br><br>I know this since I have for a long time had to do this for any system that uses cffi-grovel, since I often have libraries in only somewhat standard places under OS X.  Since you are using common-lisp-controller, that means you are using a Linux, right?  If so, this should really work out of the box for you.  Whether the shortcoming is with FSBV or CFFI-GROVEL, I don't know (for instance, it would be nice if CFFI-GROVEL took a default cc-flags from the CFLAGS environment variable or something).<br>

<br>Hope this helps,<br>Zach<br><br><br><div class="gmail_quote">On Sat, Jun 20, 2009 at 10:07 AM, Jason Nielsen <span dir="ltr"><<a href="mailto:jdn@math.carleton.ca">jdn@math.carleton.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hello all,<br>
<br>
I just git pulled all the new goodness in gsll, fsbv etc. but am getting<br>
error messages building fsbv:<br>
<br>
;<br>
/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/init.fasl<br>
written<br>
; compilation finished in 0:00:00.004<br>
; cc -m64 -fPIC -o<br>
/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix<br>
/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c<br>
unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "initial thread"<br>
RUNNING {10029DDD71}>:<br>
   External process exited with code 1.<br>
Command was: "cc" "-m64" "-fPIC" "-o"<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix"<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c"<br>
Output was:<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 7: cannot find include file: <ffi.h><br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 40: undefined symbol: FFI_OK<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 45: undefined symbol: FFI_BAD_TYPEDEF<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 50: undefined symbol: FFI_BAD_ABI<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 61: undefined symbol: FFI_DEFAULT_ABI<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 66: undefined symbol: FFI_SYSV<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 71: undefined symbol: FFI_UNIX64<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 79: undefined symbol: ffi_abi<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 126: incomplete struct/union/enum _ffi_type: sizeof()<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 131: undefined struct/union member: size<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 136: undefined struct/union member: alignment<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 141: undefined struct/union member: type<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 146: undefined struct/union member: elements<br>
"/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c",<br>
line 397: warning: implicit function declaration: memset<br>
cc: acomp failed for<br>
/var/cache/common-lisp-controller/1000/sbcl/local/home/jdn/work/lisp/fsbv/libffi-unix.c<br>
<br>
I have cffi 0.10.5 installed and its test suite passes.  I also have<br>
libffi-dev installed in the usual place so I'm a bit confused.<br>
<br>
Cheers,<br>
Jason<br>
<br>
_______________________________________________<br>
Gsll-devel mailing list<br>
<a href="mailto:Gsll-devel@common-lisp.net">Gsll-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel" target="_blank">http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel</a><br>
</blockquote></div><br>