GNOME Bugzilla – Bug 510216
Libsoup trunk FTBFS
Last modified: 2009-02-17 21:07:47 UTC
Libsoup trunk tests fail to build from source: make[2]: Entering directory `/opt/gnome-2-22/src/libsoup/tests' /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -o context-test context-test.o test-utils.o ../libsoup/libsoup-2.4.la gcc -g -O2 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -o .libs/context-test context-test.o test-utils.o ../libsoup/.libs/libsoup-2.4.so -Wl,--rpath -Wl,/opt/gnome-2-22/lib ../libsoup/.libs/libsoup-2.4.so: undefined reference to `g_cancellable_is_cancelled' collect2: ld returned 1 exit status make[2]: *** [context-test] Error 1 make[2]: Leaving directory `/opt/gnome-2-22/src/libsoup/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/gnome-2-22/src/libsoup' make: *** [all] Error 2
Nevermind, some breakage with autotools over here... clean checkout + autogen.sh "fixed" it.
I'm still seeing this error, even after a fresh checkout. I'm compiling against GLib 2.15.2. Is it possible I need a more recent GLib from trunk?
Yes, you need glib from svn. AM_PATH_GLIB_2_0 didn't know about gio in 2.15.2.
Perhaps libsoup should require GLib 2.15.3 then instead of 2.15.0. GLib in trunk has the version bumped to 2.15.3 already.
Reopening until comment #4 is addressed. Just don't want this to fall off the radar.
(In reply to comment #3) > Yes, you need glib from svn. AM_PATH_GLIB_2_0 didn't know about gio in 2.15.2. Please let me know if I should bump the glib req in configure.ac.
fixed in svn
does this means libsoup can't be compiled on rhel/centos-5? since there is only glib-1.2.10-20.el5 and no gio on it. it can't be done in a conditional build (ie. if it's not installed don't use them)?
You want to be looking at the glib2 package version, not glib. But yes, if you use a sufficiently-old Linux distro, there won't be a new-enough glib. If you want to compile recent libsoup on those platforms, you'll have to compile recent glib as well.