Compile error: cannot find libobjc.so.3

For discussion of ports to POSIX based systems, especially using GNUStep.

Moderators: winston, another_commander, Getafix

Post Reply
nobicycle
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Wed Jul 03, 2013 12:35 am

Compile error: cannot find libobjc.so.3

Post 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
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

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

Post 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.
nobicycle
Mostly Harmless
Mostly Harmless
Posts: 2
Joined: Wed Jul 03, 2013 12:35 am

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

Post 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?
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

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

Post 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
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post 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.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Getafix
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 979
Joined: Tue Apr 01, 2008 12:55 pm
Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
Contact:

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

Post by Getafix »

Hi nobicycle.

Did you have any chance with your issue or with this thread?
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Post Reply