[Top][All Lists]

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

base / libobjc2 link issues on FreeBSD 12

From: Riccardo Mottola
Subject: base / libobjc2 link issues on FreeBSD 12
Date: Thu, 20 Feb 2020 08:19:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/


getting a working clang+libobjc2 is a small saga now :-P
I want to update my FreeBSD 12.1 laptop too. I did the same setup I did
on my FreeBSD 11.3 workstation and it does not work, I am puzzled.

configure make:
./configure --prefix=/ --with-layout=gnustep --with-library-combo=ng-gnu-gnu

( I did not specify anything about the linker)

configure and install libobjc2 (to get the latest one, the FreeBSD
supplied version is still faulty and causes crashes)

The generated libobjc2 has:
$ ldd /System/Library/Libraries/
/System/Library/Libraries/ => /lib/ (0x20842000) => /lib/ (0x2086b000) => /lib/ (0x20887000) => /lib/ (0x20446000)

then when I configure base, the objc test fails with one missing symbol:
configure:7860: checking whether objc really works
configure:7880: clang -o conftest -g -O2  -I/Local/Library/Headers
-I/Local/Library/Headers -I/System/
Library/Headers -I/usr/local/include -I/System/Library/Headers  -x
objective-c  -L/Local/Library/Libra
ries -L/Local/Library/Libraries -L/System/Library/Libraries
-L/usr/local/lib -L/System/Library/Librari
es conftest.c -lrt -ldl  -lpthread -rdynamic -pthread -fexceptions
-fobjc-runtime=gnustep-1.8 -fblocks
 -L/home/multix/GNUstep/Library/Libraries -L/Local/Library/Libraries
-L/System/Library/Libraries -L/us
r/local/lib -lobjc -lm     >&5
In file included from conftest.c:107:
In file included from ././config/config.objc.m:2:
././config/objc-common.g:54:3: warning: assignment to Objective-C's isa
is deprecated in favor of obje
ct_setClass() [-Wdeprecated-objc-isa-usage]
  obj->isa = self;
  ^  ~~~~~~~
  object_setClass( , )
././config/objc-common.g:47:5: note: instance variable is declared here
 id isa;
1 warning generated.
configure:7880: $? = 0
configure:7880: ./conftest /System/Library/Libraries/ Undefined symbol
configure:7880: $? = 1
configure: program exited with status 1

and now?


reply via email to

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