LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gtk applications problem (https://www.linuxquestions.org/questions/linux-software-2/gtk-applications-problem-490276/)

rrr-jr 10-07-2006 05:10 AM

[SOLVED] Gtk applications problem
 
I have a problem with gtk applications.
I use a gentoo box and not long ago I wanted to update to gnome 2.16.
After that all kind of errors came up.
Almost any gtk application that I emerge (compile and install) I get this in the compilation process:
undefined symbol: g_type_register_static_simple

for example compiling gtk-2.10.4:

Code:

make[3]: Leaving directory `/var/tmp/portage/gtk+-2.10.4/work/gtk+-2.10.4/gtk'
GDK_PIXBUF_MODULE_FILE=../gdk-pixbuf/gdk-pixbuf.loaders \
  ./gtk-update-icon-cache --force --ignore-theme-index                \
  --source builtin_icons stock-icons > gtkbuiltincache.h
/var/tmp/portage/gtk+-2.10.4/work/gtk+-2.10.4/gtk/.libs/lt-gtk-update-icon-cache: symbol lookup error: /var/tmp/portage/gtk+-2.10.4/work/gtk+-2.10.4/gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so.0: undefined symbol: g_type_register_static_simple
make[2]: *** [gtkbuiltincache.h] Error 127
make[2]: Leaving directory `/var/tmp/portage/gtk+-2.10.4/work/gtk+-2.10.4/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gtk+-2.10.4/work/gtk+-2.10.4'
make: *** [all] Error 2

!!! ERROR: x11-libs/gtk+-2.10.4 failed.
Call stack:
  ebuild.sh, line 1546:  Called dyn_compile
  ebuild.sh, line 937:  Called src_compile
  gtk+-2.10.4.ebuild, line 112:  Called die

now gaim stopped working with the same aspect:

Code:

gaim: symbol lookup error: /usr/lib/libgstreamer-0.10.so.0: undefined symbol: g_type_register_static_simple
I recently updated to gcc 4.1.1 is that a problem and if yes how can I fix it?

comprookie2000 10-08-2006 04:32 PM

This may help;
http://www.gentoo.org/doc/en/gcc-upgrading.xml

rrr-jr 11-16-2006 07:41 AM

I can't really find the solution to this problem ...
I already rebuilt my whole system and still cannot install the newest gtk or gnome packages because of this error.

Harmaa Kettu 11-16-2006 10:18 AM

g_type_register_static_simple() is from gobject library, which is part of glib package, so most likely that package is broken in some way.
Things to check:
  1. What version your glib is?
    Code:

    pkg-config glib-2.0 --modversion
  2. Are there any other libgobjects around? This should find 4 files in /usr/lib and nothing else.
    Code:

    locate libgobject
  3. Is it being used?
    Code:

    ldd /usr/lib/libgstreamer-0.10.so.0 | grep gobject
  4. Does it contain the function at all?
    Code:

    strings /usr/lib/libgobject-2.0.so.0 | grep g_type_register_static_simple

rrr-jr 11-16-2006 11:17 AM

Code:

# pkg-config glib-2.0 --modversion

2.12.4

Code:

# locate libgobject
/usr/lib/libgobject-2.0.so.0
/usr/lib/libgobject-2.0.so
/usr/lib/libgobject-2.0.la
/usr/lib/libgobject-2.0.so.0.1200.4
/usr/lib/libgobject-2.0.a
/usr/local/lib/libgobject-2.0.so.0.1000.1
/usr/local/lib/libgobject-2.0.so.0
/usr/local/lib/libgobject-2.0.so
/usr/local/lib/libgobject-2.0.la
/opt/vmware/workstation/lib/lib/libgobject-2.0.so.0
/opt/vmware/workstation/lib/lib/libgobject-2.0.so.0/libgobject-2.0.so.0

Code:

# ldd /usr/lib/libgstreamer-0.10.so.0 | grep gobject

        libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0xb7e18000)

 # ldd /usr/lib/libpango-1.0.so.0 | grep gobject

        libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0xb7f4e000)

Code:

# strings /usr/lib/libgobject-2.0.so.0 | grep g_type_register_static_simple

g_type_register_static_simple

 # strings /usr/local/lib/libgobject-2.0.so.0 | grep g_type_register_static_simple
 #


Ok so I see the portage system installs glib in /usr/lib and the applications use /usr/local/lib when searching for that library how can I change that besides creating some symlinks?

rrr-jr 11-16-2006 11:25 AM

Ok I deleted all my libs in /usr/local/lib as they werent necessary and I had them installed by portage in /usr/lib too (and some were old versions).
Thank you Harmaa Kettu it's nice to learn new things from more experienced users.


All times are GMT -5. The time now is 10:38 AM.