gnustep-dev
[Top][All Lists]
Advanced

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

FreeBSD - no luck with libobjc2


From: Riccardo Mottola
Subject: FreeBSD - no luck with libobjc2
Date: Mon, 13 Apr 2020 13:56:44 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 SeaMonkey/2.53.1

Hi Fellow Hackers,

anybody using GNUstep on FreeBSD? ? I am unable to... and I have 1 workstation, 2 laptops relying on it (actually, 3 laptops, one now a bit obsolete).

Some run FreeBSD 11, some 12... on none I can get it currently to work.
I was able to get it to work about 1 year ago, because the "pkg" provided by FreeBSD worked, but that version of libobjc2 is buggy so any GUI version crashes, other people reported that. So building from sources. This worked a bit, was unreliable, but stopped totally for me. Maybe something in libobjc2, something in FreeBSD updates, I don't know.

David is capable of doing, obviously... I don't.
For me this is quite a "show stopper", since it cripples my home computer.

I configure gnustep-make with:
$ ./configure --with-layout=gnustep --prefix=/ --with-library-combo=ng-gnu-gnu CFLAGS=-I/usr/local/include


Then here the problems and tests I did on FreeBSD 11.3 p7
System compiler is clang 8.0.0
I use "ccmake ." to edit the current configurations of the cmake build. with "t" I access the linker.
After each I use "c" to write configuration and "g" to generate and exit.

First attempt:
 CMAKE_LINKER                     /usr/local/bin/ld.gold


Fails this way:
[ 10%] Linking C executable ObjCXXEHInterop_arc_legacy_optimised
../libobjc.so.4.6: undefined reference to `std::__1::ios_base::clear(unsigned int)'
../libobjc.so.4.6: undefined reference to `ceilf'
../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::put(char)' ../libobjc.so.4.6: undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)'
../libobjc.so.4.6: undefined reference to `std::__1::ctype<char>::id'
../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)' ../libobjc.so.4.6: undefined reference to `std::__1::__vector_base_common<true>::__throw_length_error() const' ../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()' ../libobjc.so.4.6: undefined reference to `std::__1::ios_base::getloc() const' ../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::~sentry()' ../libobjc.so.4.6: undefined reference to `std::__1::locale::use_facet(std::__1::locale::id&) const'
../libobjc.so.4.6: undefined reference to `std::__1::cerr'
../libobjc.so.4.6: undefined reference to `std::__1::locale::~locale()'
../libobjc.so.4.6: undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()'
cc: error: linker command failed with exit code 1 (use -v to see invocation)


So I try bfd linker:
[ 10%] Linking C executable ObjCXXEHInterop_arc_legacy_optimised
../libobjc.so.4.6: undefined reference to `std::__1::ios_base::clear(unsigned int)'
../libobjc.so.4.6: undefined reference to `ceilf'
../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::put(char)' ../libobjc.so.4.6: undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)'
../libobjc.so.4.6: undefined reference to `std::__1::ctype<char>::id'
../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)' ../libobjc.so.4.6: undefined reference to `std::__1::__vector_base_common<true>::__throw_length_error() const' ../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::flush()' ../libobjc.so.4.6: undefined reference to `std::__1::ios_base::getloc() const' ../libobjc.so.4.6: undefined reference to `std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::~sentry()' ../libobjc.so.4.6: undefined reference to `std::__1::locale::use_facet(std::__1::locale::id&) const'
../libobjc.so.4.6: undefined reference to `std::__1::cerr'
../libobjc.so.4.6: undefined reference to `std::__1::locale::~locale()'
../libobjc.so.4.6: undefined reference to `std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()'
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Then I try the system linker:
 CMAKE_LINKER                     /usr/bin/ld

and I get exactly the same error again.


So now? Is this not the correct way to change cmake parameters?
I think this is quite a mess.

Riccardo



reply via email to

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