Public bug reported:

Binary package hint: libgtk2.0-0

libgtk-x11-2.0.so.0 calls a function called
gdk_font_from_description_for_display() which is supposed to be in
libgdk-x11-2.0.so.0, but that function is deprecated according to GDK
documentation (http://developer.gnome.org/doc/API/2.0/gdk/gdk-
Fonts.html#id2638107)

Instead,  libgdk-x11-2.0.so.0 defines a function
Gdk_font_from_description_for_display() which is in essence the same,
but with an uppercase first character.

I stumbled across this problem when trying to run a python program with
GTK bindings, and I think this is the easiest way to reproduce it too:

----------------
#!/usr/bin/env python
import egg.trayicon

if __name__ == "__main__":
    print "hello world"
----------------

Running this:
[EMAIL PROTECTED]:/tmp$ ./test.py 
Traceback (most recent call last):
  File "./test.py", line 2, in ?
    import egg.trayicon
ImportError: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: 
gdk_font_from_description_for_display
[EMAIL PROTECTED]:/tmp$ 

I solved the problem by using LD_PRELOAD and just mapping the function
called in libgtk-x11 to the one defined in libgdk-x11. It would probably
be best to fix the package permanently though...

I run Ubuntu Edgy and upgraded all packages.
ii  libgtk2.0-0        2.10.6-0ubuntu3.1  The GTK+ graphical user interface 
library

kind regards,
-- Steven

** Affects: gtk+2.0 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
libgtk2's library libgtk-x11-2.0.so.0 calls undefined symbol 
gdk_font_from_description_for_display
https://launchpad.net/bugs/99932

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to