discuss-gnustep
[Top][All Lists]
Advanced

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

Compiling on openbsd with gcc4.8, executables fail to run


From: Riccardo Mottola
Subject: Compiling on openbsd with gcc4.8, executables fail to run
Date: Mon, 30 Dec 2013 20:23:03 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23

Hi,

I wanted to compile gnustep on OpenBSD by using gcc 4.8.1 from ports, instead of the standard, old gcc 4.2.1 compiler.

the additional compiler is called "egcc", I thus configured base with:
./configure CC=egcc CXX=eg++

make was configured with:
$ ./configure --with-layout=gnustep --prefix=/ CC=egcc CXX=eg++

Everything compiles quickly and easy!

however, when I try to run a binary, I get

$ plparse
plparse:/Local/Library/Libraries/libgnustep-base.so.1.24: undefined symbol '__objc_msg_forward2'
Segmentation fault (core dumped)


why this? I don't know. I tried to ldd:

        Start    End      Type Open Ref GrpRef Name
0ba66000 2bc61000 dlib 1 0 0 /Local/Library/Libraries/libgnustep-base.so.1.24.6
        0706e000 27073000 rlib 0    9   0 /usr/lib/libpthread.so.17.3
        05b92000 25b9b000 rlib 0    1   0 /usr/lib/libobjc.so.5.0
        063e0000 263ed000 rlib 0    3   0 /usr/local/lib/libgmp.so.9.0
07949000 2794e000 rlib 0 2 0 /usr/local/lib/libavahi-common.so.0.0 0d4a0000 2d4a5000 rlib 0 1 0 /usr/local/lib/libavahi-client.so.0.0
        03d2c000 23d46000 rlib 0    1   0 /usr/local/lib/libgnutls.so.39.7
        09bf0000 29c0e000 rlib 0    1   0 /usr/local/lib/libgcrypt.so.18.0
        01be6000 21bf0000 rlib 0    1   0 /usr/local/lib/libxslt.so.3.8
        0165a000 21681000 rlib 0    2   0 /usr/local/lib/libxml2.so.15.0
        08c16000 28c1d000 rlib 0    4   0      /usr/lib/libz.so.4.1
        01137000 21217000 rlib 0    10   0 /usr/local/lib/libiconv.so.6.0
        08f3a000 28f43000 rlib 0    6   0      /usr/lib/libm.so.8.0
        0c26c000 2c270000 rlib 0    1   0 /usr/local/lib/libffi.so.0.0
        08605000 2865d000 rlib 0    1   0 /usr/local/lib/libicui18n.so.6.2
        0e5a2000 2e605000 rlib 0    2   0 /usr/local/lib/libicuuc.so.6.2
        027df000 23d2c000 rlib 0    3   0 /usr/local/lib/libicudata.so.6.2
        0028e000 20292000 rlib 0    6   0 /usr/local/lib/libintl.so.6.0
        0a3b6000 2a3c0000 rlib 0    1   0 /usr/local/lib/libdbus-1.so.10.2
        0d516000 2d51e000 rlib 0    1   0 /usr/local/lib/libp11-kit.so.0.1
        0ae46000 2ae4b000 rlib 0    1   0 /usr/local/lib/libtasn1.so.3.0
        0a04f000 2a06a000 rlib 0    1   0 /usr/local/lib/libhogweed.so.1.1
        0dcbd000 2dccb000 rlib 0    2   0 /usr/local/lib/libnettle.so.1.2
0af57000 2af5c000 rlib 0 1 0 /usr/local/lib/libgpg-error.so.3.2
        04f8a000 24fb8000 rlib 0    2   0 /usr/lib/libstdc++.so.55.0


my suspect is that 05b92000 25b9b000 rlib 0 1 0 /usr/lib/libobjc.so.5.0

is the wrong libobjc, it is the one of the default compiler. It should be:

$ ls -l /usr/local/lib/libobjc.*
-rw-r--r--  1 root  bin  544350 Jul 22 16:53 /usr/local/lib/libobjc.a
-rwxr-xr-x  1 root  bin     927 Jul 22 16:53 /usr/local/lib/libobjc.la
-rwxr-xr-x  1 root  bin  500970 Jul 22 16:53 /usr/local/lib/libobjc.so.5.0


even if it is 5.0

How may I fix this?

RIccardo




reply via email to

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