discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

more configure environment woes


From: Riccardo Mottola
Subject: more configure environment woes
Date: Thu, 04 Apr 2013 16:46:12 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 SeaMonkey/2.17

Hi,

trying to udnesrtand better why I get problems under solaris, I analyze what is happening (it is not a LIBS problem as I first thought).

The "thread support" program fails:

configure:5552: checking whether objc has thread support
configure:6021: gcc -o conftest -g -O2 -x objective-c -I. -fgnu-runtime -DGNU_RUNTIME -R/opt/csw/lib -L/opt/csw/lib -R/opt/csw/gcc4/lib -L/opt/csw/gcc4/lib conftest.c -lobjc -lrt >&5
In file included from conftest.c:8:
config_thread.m:7: warning: incomplete implementation of class 'NXConstantString'
config_thread.m:7: warning: method definition for '-length' not found
config_thread.m:7: warning: method definition for '-cString' not found
configure:6025: $? = 0
configure:6031: ./conftest
ld.so.1: conftest: fatal: libgcc_s.so.1: open failed: No such file or directory
./configure: line 1: 19713 Killed ./conftest$ac_exeext

This means that the library doesn't get found. I do not want to use LD_LIBRARY_PATH in this case, -L and -R should be enough.

Oddly, if I compile the test program myself, which would be config_thread.m I undersrstand

gcc -o conftest -g -O2 -x objective-c -I. -fgnu-runtime -DGNU_RUNTIME-R/opt/csw/lib -L/opt/csw/lib -R/opt/csw/gcc4/lib -L/opt/csw/gcc4/lib config_thread.m -lobjc -lrt


I get the same warnings, but can run the program without errors!

$ ldd conftest
        libobjc.so.2 =>  /opt/csw/gcc4/lib/libobjc.so.2
        librt.so.1 =>    /usr/lib/librt.so.1
        libgcc_s.so.1 =>         /opt/csw/gcc4/lib/libgcc_s.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libaio.so.1 =>   /usr/lib/libaio.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1

Which is just fine. What's going wrong here?

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]