[Fluxus] fluxus, racket and libffi linking problem

Stefano Sabatini stefano.sabatini-lala at poste.it
Sun Jun 12 06:23:45 PDT 2011


Hi,

stefano at arborea ~/s/fluxus> 
g++ -o fluxus -rdynamic src/GLEditor.o src/GLFileDialog.o
src/Interpreter.o src/Repl.o src/Recorder.o src/FluxusMain.o
src/PolyGlyph.o src/Unicode.o src/main.o -L/home/stefano/lib
-L/usr/local/lib/racket -L/usr/local/lib -L/usr/lib
-L/home/stefano/libfluxus -lm -lpthread -ldl -ljpeg -ltiff -lfreetype
-lz -lpng -lode -lsndfile -lfftw3 -llo -lGLEW -lracket3m -ljack -lGL
-lGLU -lglut -lasound -lopenal
/usr/local/lib/libracket3m.a(foreign.o): In function `foreign_make_cstruct_type':
foreign.c:(.text+0x171b): undefined reference to `ffi_type_void'
foreign.c:(.text+0x1735): undefined reference to `ffi_prep_cif'
/usr/local/lib/libracket3m.a(foreign.o): In function `ffi_do_call':
foreign.c:(.text+0x7d6b): undefined reference to `ffi_call'
foreign.c:(.text+0x7e0d): undefined reference to `ffi_type_pointer'
/usr/local/lib/libracket3m.a(foreign.o): In function `foreign_ffi_call':
foreign.c:(.text+0x84bc): undefined reference to `ffi_prep_cif'
/usr/local/lib/libracket3m.a(foreign.o): In function `foreign_ffi_callback':
foreign.c:(.text+0x9159): undefined reference to `ffi_prep_cif'
foreign.c:(.text+0x9293): undefined reference to `ffi_prep_closure'
/usr/local/lib/libracket3m.a(foreign.o): In function `scheme_init_foreign':
foreign.c:(.text+0x9bf2): undefined reference to `ffi_type_pointer'
foreign.c:(.text+0xa911): undefined reference to `ffi_type_void'
foreign.c:(.text+0xa98f): undefined reference to `ffi_type_sint8'
foreign.c:(.text+0xaa0d): undefined reference to `ffi_type_uint8'
foreign.c:(.text+0xaa8b): undefined reference to `ffi_type_sint16'
foreign.c:(.text+0xab09): undefined reference to `ffi_type_uint16'
foreign.c:(.text+0xab87): undefined reference to `ffi_type_sint32'
foreign.c:(.text+0xac05): undefined reference to `ffi_type_uint32'
foreign.c:(.text+0xac83): undefined reference to `ffi_type_sint64'
foreign.c:(.text+0xad01): undefined reference to `ffi_type_uint64'
foreign.c:(.text+0xad7f): undefined reference to `ffi_type_sint32'
foreign.c:(.text+0xadfd): undefined reference to `ffi_type_uint32'
foreign.c:(.text+0xae7b): undefined reference to `ffi_type_sint32'
foreign.c:(.text+0xaef9): undefined reference to `ffi_type_uint32'
foreign.c:(.text+0xaf77): undefined reference to `ffi_type_float'
foreign.c:(.text+0xaff5): undefined reference to `ffi_type_double'
foreign.c:(.text+0xb073): undefined reference to `ffi_type_double'
foreign.c:(.text+0xb0f1): undefined reference to `ffi_type_sint32'
foreign.c:(.text+0xb367): undefined reference to `ffi_type_pointer'
foreign.c:(.text+0xb3e5): undefined reference to `ffi_type_pointer'
foreign.c:(.text+0xb55f): undefined reference to `ffi_type_pointer'
collect2: ld returned 1 exit status

I'm using latest fluxus Git with racket 5.1.1 (installed from sources
in /usr/lib) in Debian/Linux.
If I add -lffi at the end of the command, it manages to link but then
the error is repeated at the next scons invokation.

ffi looks a dependency of libracket, I wonder what's the assumed way
for getting the required LDFLAGS for it (I'm used to do pkg-config
--libs PKG, but can't even found a the .pc files in racket) and I'm
not a scons expert so I don't know how to immediately fix my build.

Help is appreciated.
-- 
I've had a perfectly wonderful evening.  But this wasn't it.
		-- Groucho Marx



More information about the Fluxus mailing list