Page 1 of 1

Compile error: cannot find libobjc.so.3

Posted: Wed Jul 03, 2013 12:46 am
by nobicycle
Hi,
I would love to get Oolite 1.77 working but:

Code: Select all

Compiling file src/Core/Universe.m ...
 Linking objc_program oolite ...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:[b] cannot find libobjc.so.3
[/b]
My system is :
  • x11-drivers/xf86-video-nouveau-1.0.7
    Linux tower 3.8.0-sabayon #1 SMP Fri May 24 17:20:54 UTC 2013 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
A search
find / -name " libobjc.so.3"
returned nothing.


The above happens when compiling using a Gentoo ebuild.

If I try the nightly build, oolite-trunk-1.77.1.5683-dev.linux-x86_64.run I get:

Code: Select all

sudo ./oolite-trunk-1.77.1.5683-dev.linux-x86_64.run 
Password: 
Verifying archive integrity... All good.
Uncompressing Oolite-trunk 1.77.1.5683 ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
./oolite-trunk-1.77.1.5683-dev.linux-x86_64.run: line 393: ./setup: Permission denied
Best wishes

Re: Compile error: cannot find libobjc.so.3

Posted: Wed Jul 03, 2013 7:34 am
by cim
Sounds like a missing or misconfigured package. I'm not familiar with gentoo's packaging system, but there's a reference to gnustep-base/libobjc2 on the internet, so maybe there's a libobjc3 available as well in the same area?
If I try the nightly build, oolite-trunk-1.77.1.5683-dev.linux-x86_64.run I get:
Without libobjc installed it probably wouldn't actually run even if you could install it, but I would guess the cause is that you have /tmp mounted noexec - see this thread.

Re: Compile error: cannot find libobjc.so.3

Posted: Thu Jul 04, 2013 1:49 am
by nobicycle
I posted this on the website of the distro (Sabayon) I use:

Oolite - Object Oriented Elite

Elite was an 80's space trading game, an excellent combination of strategy and shoot-em-up.
OOlite is an award winning more modern version, under active development. http://oolite.org/

Unfortunately I cannot get it to run.

It is not present in entropy and emerge produces the following:
Compiling file src/Core/Universe.m ...
Linking objc_program oolite ...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find libobjc.so.3
libobjc is a dependency of the following:
Version 1.77 (latest) of oolite is in the "rion" overlay.
eix --deps libobjc
* games-action/oolite [1]
Available versions: (~)1.77 **9999 {debug doc}
Homepage: http://oolite.org/
Description: Elite space trading & warfare remake

gnustep-base/gnustep-make
Available versions: 2.6.2 (~)2.6.2-r2 (~)2.6.3 (~)2.6.4 {debug doc libobjc2 native-exceptions}
Installed versions: 2.6.2-r2(10:39:42 PM 12/11/2012)(-debug -doc -libobjc2 -native-exceptions)
Homepage: http://www.gnustep.org
Description: GNUstep Makefile Package




emerge gnustep-base/gnustep-make-2.6.4 produces

* Warning: changed libobjc.so version!!
* The libobjc.so version used for gnustep-make has changed
* (either by the libojbc2 use-flag or a GCC upgrade)
* You must rebuild all gnustep packages installed.



When I follow these instructions, I get

gnustep-updater -l

* Locating packages for an update
* Adding to list: sys-devel/base-gcc:4.6
* Adding to list: sys-devel/base-gcc:4.7
* Adding to list: virtual/gnustep-back:0
* Adding to list: gnustep-base/gnustep-base:0
* Adding to list: gnustep-base/gnustep-gui:0
* Adding to list: gnustep-base/gnustep-back-cairo:0
* emerge -vD1 sys-devel/base-gcc:4.6 sys-devel/base-gcc:4.7 virtual/gnustep-back:0 gnustep-base/gnustep-base:0 gnustep-base/gnustep-gui:0 gnustep-base/gnustep-back-cairo:0

* IMPORTANT: 7 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "sys-devel/base-gcc:4.6".
* gnustep-updater is stopping here:
* Fix the problem and start gnustep-updater again.




So I am stuck at

there are no ebuilds to satisfy "sys-devel/base-gcc:4.6


Any ideas?

Re: Compile error: cannot find libobjc.so.3

Posted: Thu Jul 04, 2013 11:26 am
by JazHaz
I don't know if this will help (I'm windows) but a quick google turned up this:

http://forums.freebsd.org/showthread.php?t=36393

Re: Compile error: cannot find libobjc.so.3

Posted: Thu Jul 04, 2013 1:49 pm
by Lone_Wolf
libobjc.so.x seems to come with the Objective-C frontend for gcc (often called gcc-objc ).

run

Code: Select all

gcc -v
, in the output look for --enable-languages= .

it should list objc as one of the languages present.

Re: Compile error: cannot find libobjc.so.3

Posted: Thu Oct 03, 2013 11:30 pm
by Getafix
Hi nobicycle.

Did you have any chance with your issue or with this thread?