gnustep-base configure failure on x86

Riccardo Mottola rmottola at opencsw.org
Tue Mar 3 21:05:27 CET 2015


Hi Laurent,

Laurent Blume wrote:
> That, however, is odd. What it should be saying is that it's not finding
> the library, since you've not put -R above. That means you have tinkered
> with LD_LIBRARY_PATH or some such, and you are not telling us.
>
> Could you please copy-paste EVERYTHING you've done, instead of trying to
> hide stuff?
> What is the output of "ldd a.out"? And also, please post the content of
> config.ffi.c.
>
really, I'm not trying to hide anything!
I just logged in.
I'm not trying tricks, here a transcript, I just redid everything.

   502  export TERM=xterm
   503  echo $LD_LIBRARY_PATH
   504  cd opencsw/gnustep-base/
   505  cd trunk/work/build-isa-pentium_pro/gnustep-base-1.24.7/config
   506  ls
   507  gcc config.ffi.c -L/opt/csw/lib/ffi -lffi
   508  ./a.out


rmottola at unstable10x [global]:~ > echo $LD_LIBRARY_PATH

(empty)

and
./a.out
Segmentation Fault (core dumped)

ldd a.out
         libffi.so.5 =>   /opt/csw/lib/libffi.so.5
         libc.so.1 =>     /lib/libc.so.1
         libm.so.2 =>     /lib/libm.so.2

So the binary is bound to the correct library. The gcc invocation above 
is a simplified version the full invocation I get in the log is:

configure:10307: checking FFI library usage
configure:10328: /opt/csw/bin/gcc-4.9 -o conftest -g -O2 
-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/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

I reduced it to the minimum for libffi.

Let me note that the same configure  check works on sparc (unstable10s).

If you don't want to check the package (gnustep-base is checked in) here 
is the file:

http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/config/config.ffi.c?view=markup


Thank you for the support,

Riccardo


More information about the maintainers mailing list