discuss-gnustep
[Top][All Lists]
Advanced

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

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


From: Sebastian Reitenbach
Subject: Re: Compiling on openbsd with gcc4.8, executables fail to run
Date: Tue, 31 Dec 2013 00:02:17 +0100
User-agent: SOGoMail 2.1.1b

 
On Monday, December 30, 2013 20:23 CET, Riccardo Mottola 
<riccardo.mottola@libero.it> wrote: 
 
> 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 question is, why do you want to do that?
And even better question, what platform do you are on, which version of OpenBSD?
You are missing important information ;)

And why don't you leverage the ports infrastrucutre, its all there, and 
likely only a few lines change in the ports Makefiles.

With regard to the libobjc, do you have thought about installing
ports/x11/gnustep/libobjc1, or have ports/x11/gnustep/libobjc2 installed?

cheers,
Sebastian


> 
> 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
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep
 
 
 
 




reply via email to

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