[racket-dev] racket-5.1{, .0.6} not building foreign interface not supported

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Apr 13 13:00:29 EDT 2011

At Wed, 13 Apr 2011 11:54:44 +0200, Marijn wrote:
> > Meanwhile, `configure' now detects when libffi is already installed and
> > uses it (instead of building the version that is included with Racket).
> I am now able to build with the bundled libffi, but when I delete that
> from the source and try to build it doesn't find the system library:
> x86_64-pc-linux-gnu-gcc -march=native -ggdb -O2 -pipe -DMZ_DONT_USE_JIT
> -DMZ_USES_SHARED_LIB -I./../racket -I./../racket/include
> -I./../racket/src -Ilibffi/include -c ./foreign.c  -fPIC -DPIC -o
> .libs/foreign.o
> ./foreign.c:73:17: error: ffi.h: No such file or directory
> libffi uses pkgconfig but I'd have to check up on how to use that again

I've pushed changed to make `configure' use `pkg-config' for libffi.

Posted on the dev mailing list.