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 376211 - configure succeeds; compile fails due to bad ORBit version
configure succeeds; compile fails due to bad ORBit version
Status: RESOLVED FIXED
Product: bonobo
Classification: Deprecated
Component: libbonobo
unspecified
Other All
: Normal normal
: ---
Assigned To: Michael Meeks
bonobo qa
Depends on:
Blocks:
 
 
Reported: 2006-11-17 06:56 UTC by Mark Johnson
Modified: 2006-11-19 12:10 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Mark Johnson 2006-11-17 06:56:13 UTC
Please describe the problem:
My system has ORBit 2.10.2 installed.
I am trying to build libbonobo-2.16.0.
The configure step (configure --prefix=/usr --enable-gtk-doc i486-slackware-linux) succeeds.
However, the build fails with the following error:
i486-slackware-linux-gcc -O2 -march=i486 -mcpu=i686 -o .libs/bonobo-activation-server activation-server-corba-extensions.o activation-context-query.o activation-context-query-lexer.o activation-context-query-parser.o activation-context-corba.o object-directory-corba.o object-directory-load.o object-directory-activate.o object-directory-config-file.o activation-server-main.o -Wl,--export-dynamic -pthread  ../bonobo/.libs/libbonobo-2.so /mnt/raid/download/computer/software/gnome/libbonobo/2.16/src/libbonobo-2.16.0/bonobo-activation/.libs/libbonobo-activation.so ../bonobo-activation/.libs/libbonobo-activation.so -lname-server-2 /usr/lib/libORBitCosNaming-2.so /usr/lib/libORBit-2.so /usr/lib/libpopt.so /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -lrt /usr/lib/libxml2.so -ldl -lz -lm
object-directory-corba.o(.text+0x1978): In function `client_cnx_broken':
: undefined reference to `ORBit_sequence_remove'
collect2: ld returned 1 exit status
make[3]: *** [bonobo-activation-server] Error 1
make[3]: Leaving directory `/mnt/raid/download/computer/software/gnome/libbonobo/2.16/src/libbonobo-2.16.0/activation-server'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/raid/download/computer/software/gnome/libbonobo/2.16/src/libbonobo-2.16.0/activation-server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/raid/download/computer/software/gnome/libbonobo/2.16/src/libbonobo-2.16.0'
make: *** [all] Error 2
make failed.


The ChangeLog for ORBit2 indicates that the function ORBit_sequence_remove was added for ORBit2 version 2.11.2.  However, libbonobo's configure script requires only version 2.9.2.

I adjusted configure.in as per proposed patch below, and ran autoconf.  configure then correctly identified the wrong version of ORBit2.

NOTE: I plan to upgrade my system to ORBit2-2.14.3 after filing this bug.  Therefore, I most likely will not detect any build errors that may occur later with ORBit2-2.11.2.



Steps to reproduce:
see description.

Actual results:
Build fails

Expected results:
configure should have indicated that the version of ORBit2 is insufficient to proceed with build.

Does this happen every time?
yes.

Other information:
Proposed patch:
diff -r -u libbonobo-2.16.0/configure.in libbonobo-2.16.0.patched/configure.in
--- libbonobo-2.16.0/configure.in       2006-09-04 09:08:02.000000000 -0600
+++ libbonobo-2.16.0.patched/configure.in       2006-11-16 23:41:26.000000000 -0700
@@ -102,7 +102,7 @@
 #
 # Start of pkg-config checks
 #
-ORBIT_VERSION=2.9.2
+ORBIT_VERSION=2.11.2
 GLIB_VERSION=2.8.0

 PKG_CHECK_MODULES(LIBBONOBO, \
Comment 1 Gustavo Carneiro 2006-11-17 10:45:34 UTC
Yeah, this is my fault, sorry :|
Comment 2 Kjartan Maraas 2006-11-19 12:10:07 UTC
Fixed in CVS.