After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322474 - Cannot link statically against ORBit libraries
Cannot link statically against ORBit libraries
Status: VERIFIED FIXED
Product: ORBit2
Classification: Deprecated
Component: general
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: ORBit maintainers
ORBit maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-26 01:16 UTC by Vladimir Panov
Modified: 2007-01-21 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch as described (670 bytes, patch)
2006-10-22 14:29 UTC, Kjartan Maraas
none Details | Review

Description Vladimir Panov 2005-11-26 01:16:12 UTC
Version details: 2.13.1

When linkking with "-static" against ORBit the following errors occur:
libORBit-2.a(corba-orb.o)(.text+0x2fe): In function `ORBit_ORB_shutdown_servers':
ORBit2-2.13.1/src/orb/orb-core/corba-orb.c:167: undefined reference to
`g_object_unref'
...and so on.
I found out that adding gobject-2.0 in the "Requires:" section of ORBit-2.0.pc
right after glib-2.0 fixes the problem (and doesn't break dynamic linking).
Also, the problem is reproducible (incl. the fix) additionally under OpenBSD,
NetBSD and FreeBSD.
Comment 1 Kjartan Maraas 2006-10-22 14:29:11 UTC
Created attachment 75199 [details] [review]
patch as described

Ok to commit this?
Comment 2 Michael Meeks 2006-10-23 09:32:29 UTC
please do; thanks.
Comment 3 Kjartan Maraas 2006-10-30 09:39:57 UTC
Done.