GNOME Bugzilla – Bug 322474
Cannot link statically against ORBit libraries
Last modified: 2007-01-21 11:59:11 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.
Created attachment 75199 [details] [review] patch as described Ok to commit this?
please do; thanks.
Done.