Hi,

I am trying to build gnustep base on solaris 10 x86 (because it was suggested to use intel to check dependencies and well, it needs to work anyway


On that 10x, I get this problem, during configure:
checking ffi.h usability... yes
checking ffi.h presence... yes
checking for ffi.h... yes
checking for forwarding callback in runtime... yes
checking FFI library usage... configure: error: The ffi library (libffi) does not appear to be working. Perhaps it's missing or you need a more recent version. Version 3.0.9 or later should work, and you can find a link to it n the list of packages for download at http://www.gnustep.org/resources/sources.html
Makefile:60: recipe for target 'configure-sourcegs' failed

it says:
configure:10307: checking FFI library usage
configure:10328: /opt/csw/bin/gcc-4.9 -o conftest -O2 -pipe -m32 -march=pentiumpro -I/opt/csw/include -I/opt/csw/GNUstep/Local /Library/Headers -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/System/Library/Headers -I/opt/csw/include -m32 -march=pentiumpro -L/opt/csw/lib -L/opt/csw/GNUstep/Local/Library/Libraries -L/opt/csw/GNUstep/Local/Library/Libraries -L/opt/ csw/GNUstep/System/Library/Libraries conftest.c -L/opt/csw/lib/ffi -lffi -lnsl -lrt -ldl -lpthread -lz >&5
configure:10328: $? = 0
configure:10328: ./conftest
./configure: line 1865: 29082 Segmentation Fault (core dumped) ./conftest$ac_exeext
configure:10328: $? = 139
configure: program exited with status 139

I tried to simulate this by compiling the test with a similar command line:
/opt/csw/bin/gcc-4.9 -O2 -pipe -m32 -march=pentiumpro -I/opt/csw/include -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/Local/Library/Headers -I/opt/csw/GNUstep/System/Library/Headers -I/opt/csw/include -L/opt/csw/lib -L/opt/csw/GNUstep/Local/Library/Libraries -L/opt/csw/GNUstep/Local/Library/Libraries -L/opt/csw/GNUstep/System/Library/Libraries -L/opt/csw/lib/ffi -lffi -lnsl -lrt -ldl -lpthread -lz config.ffi.c

and indeed running a.out gets a segfault.

The trace is not very useful...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0xfef74204 in ffi_closure_SYSV_inner () from /opt/csw/lib/libffi.so.5
(gdb) bt
#0  0xfef74204 in ffi_closure_SYSV_inner () from /opt/csw/lib/libffi.so.5
#1  0xfef74542 in ffi_closure_SYSV () from /opt/csw/lib/libffi.so.5
#2  0x08050ff7 in main ()

The box, which is not mine, has:
application CSWlibffi-dev libffi_dev - A portable foreign function interface library - developer package application CSWlibffi4 libffi4 - The GNU Compiler Collection, libffi.so.4 application CSWlibffi5 libffi5 - A portable foreign function interface library - libffi.so.5

the latter seems to be used. (CSW are the OpenCSW packages).

Any clues?

On solaris 10 SPARC configure ends successfully.

Riccardo


Reply via email to