LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-07-2006, 05:10 AM   #1
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Rep: Reputation: 15
[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?

Last edited by rrr-jr; 11-16-2006 at 11:25 AM.
 
Old 10-08-2006, 04:32 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
This may help;
http://www.gentoo.org/doc/en/gcc-upgrading.xml
 
Old 11-16-2006, 07:41 AM   #3
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
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.
 
Old 11-16-2006, 10:18 AM   #4
Harmaa Kettu
Member
 
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
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
 
Old 11-16-2006, 11:17 AM   #5
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
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?
 
Old 11-16-2006, 11:25 AM   #6
rrr-jr
Member
 
Registered: Jul 2003
Location: Romania
Distribution: Gentoo GNU/Linux
Posts: 65

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK applications in kde problem hackobacko Slackware 7 01-05-2008 06:49 AM
Changing the look of GTK applications jaakkop Linux - Software 6 03-05-2006 02:06 PM
Weird font problem with GTK applications running in KDE Jeshua Linux - Software 1 02-22-2006 08:16 AM
Running gtk applications shezkhan Linux - Software 1 11-24-2005 09:32 AM
C or C++ when making GTK applications objorkum Programming 8 04-20-2005 03:19 PM


All times are GMT -5. The time now is 09:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration