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 688054 - TEST: qdata...: ...gobject/.libs/libgobject-2.0.so.0: undefined symbol: g_key_file_unref
TEST: qdata...: ...gobject/.libs/libgobject-2.0.so.0: undefined symbol: g_key...
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: build
2.34.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-11-10 17:34 UTC by pooryorick
Modified: 2013-02-03 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pooryorick 2012-11-10 17:34:09 UTC
the error:

    TEST: qdata... (pid=2737915)
    /path/to/src/glib-2.34.2/gobject/tests/.libs/qdata: symbol lookup error: /path/to/src/glib-2.34.2/gobject/.libs/libgobject-2.0.so.0: undefined symbol: g_key_file_unref
    FAIL: qdata
    /bin/bash: line 1: 2737901 Terminated              G_DEBUG=gc-friendly MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ../../glib/gtester --verbose qdata boxed enums param signals threadtests dynamictests binding properties reference ifaceproperties valuearray
    make[5]: *** [test-nonrecursive] Error 143

In my case, this meant that an older libglib-2.0.so from the system was being
picked up instead of /path/to/src/glib-2.34.2/glib/.libs/libglib-2.0.so.  This
was due to the value of LD_LIBRARY_PATH that libtool chose for the wrapper
scripts in /path/to/src/glib-2.34.2/gobject/tests.  For more info, see "wrong
LD_LIBRARY_PATH in wrapper scripts",litool mailing list, 2012-11-08
(http://lists.gnu.org/archive/html/libtool/2012-11/msg00009.html).  I couldn't
find any way to get libtool to do the right thing (setting LD_LIBRARY_PATH or
LDFLAGS didn't help), so I ended up making a symbolic link in
/path/to/src/glib-2.34.2/glib/.libs for libffi.so.  This short-circuited
libtools search for that library on the system, and caused the gobject tests to
pick up the correct glib (via the LD_LIBRARY_PATH in the libtool wrappers).

In general, I suggest that glib try to wean itself off libtool, which seems to
be more trouble than it is worth.
Comment 1 Matthias Clasen 2013-02-03 14:57:05 UTC
nice thought but not really realistic