Bug#520264: gnucash fails to load due to g_dgettext not being resolved

Micha Lenk micha at lenk.info
Wed Mar 18 18:19:04 UTC 2009


Hi Simon, hi GTK+-Maintainers,

Simon Vallet wrote:
> On Wed, 18 Mar 2009 15:55:08 +0100
> Simon Vallet <svallet at gmail.com> wrote:
> 
>> It hadn't showed up in my local local mirror -- but yes, installing it 
>> manually yields the same problem:
>>
>> gnucash: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_dgettext
>>
>> sjv at ur:~$ ldd -r /usr/bin/gnucash-bin 
>>         linux-vdso.so.1 =>  (0x00007fff7bbff000)
>>         libgnc-qof.so.1 => /usr/lib/gnucash/libgnc-qof.so.1 (0x00007f037360e000)
>> [...]
>> undefined symbol: g_dgettext    (/usr/lib/libgnome-keyring.so.0)
>> undefined symbol: g_poll        (/usr/lib/libgio-2.0.so.0)
>> undefined symbol: g_set_error_literal   (/usr/lib/libgio-2.0.so.0)
>> undefined symbol: g_set_error_literal   (/usr/lib/libgdk_pixbuf-2.0.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgdk_pixbuf-2.0.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgdk-x11-2.0.so.0)
>> undefined symbol: g_set_error_literal   (/usr/lib/libgtk-x11-2.0.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgtk-x11-2.0.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libbonobo-activation.so.4)
>> undefined symbol: g_dgettext    (/usr/lib/libbonobo-2.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgnome-2.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgnomevfs-2.so.0)
>> undefined symbol: g_dgettext    (/usr/lib/libgnomeui-2.so.0)
>>
> 
> Looking a bit more into this, it appears this symbol is part of
> libglib-2.0 : in fact, launching gnucash with this lib in LD_PRELOAD is
> successful.

AFAIUI there is a symbol collision: Both, the shared library
libglib-2.0.so.0 from libglib2.0-0_2.20.0-1_amd64.deb and the shared
library libgdk-x11-2.0.so.0 from libgtk2.0-0_2.14.7-4+b1_amd64.deb,
export the dynamic symbol g_dgettext. As g_dgettext() is a documented
function of the GLib I would consider it a bug of libgtk2.0-0 version
2.14.7-4+b1 (at least on amd64) to export this symbol too:

$ nm -D /usr/lib/libglib-2.0.so.0 | grep g_dgettext
0000000000059590 T g_dgettext

$ nm -D /usr/lib/libgdk-x11-2.0.so.0 | grep g_dgettext
                 U g_dgettext

If others agree with my analysis this bug should probably get reassigned
to package libgtk2.0-0. Probably this package has build errors (possibly
not linked against GLib?) leading to an undefined (U) g_dgettext symbol
-- but I have to admit that I don't really understand what's going on
here, so I'm just guessing around...

Regards
  Micha




More information about the pkg-gnome-maintainers mailing list