gnome-session undefined symbol
Hi
I am using Slackware 9.1 and till now i was working in bash. But yesterday i tried to install Gnome 2.4 (which comes with slack 9.1). Now its giving me error ---- SESSION_MANAGER=local/darkstar:/tmp/.ICE-unix/12449 gnome-session: relocation error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_type_class_add_private ---- and then the xwindows dies any helps or hints on this will be appreciated thanks guru :Pengy: |
Guru, did you install the libs needed by gnome such as gtk?
|
yes i did
is you talking about this package, i installed it again gtk+2-2.2.4-i486-1.tgz still no luck :( |
I've got the same problem. Nobody has a solution? :(
|
Hi, if they're not already installed you need to install the glib libraries from the l/ directory of the slackware cdrom.
glib-1.2.10-i386-2.tgz and glib2-2.2.3-i486-1.tgz (Slack 9.1). The glib2 package contains the gobject library where the g_type_class_add_private function is defined. |
Quote:
|
Alright, if you're sure you've got the gtk and glib packages installed then maybe pango is the causing the problem.
Try, Code:
ls /usr/lib/*pango* directory of the first slackware CD. |
i have pango libs installed ... :(
|
Ok, where is gnome installed? Is it in /opt/gnome or somewhere else? Possibly the linker isn't finding the libraries.
|
Maybe your libgtk-x11-2.0 is too recent for your Gnome installation so you have to upgrade Gnome as well (gnome 2.6)
|
its in /usr/local/gnome
where i can fix the link problem ? |
So is there a subdirectory in the gnome directory called /lib where all the shared libraries are stored?
If so you may need to add that directory to the /etc/ld.so.conf file so the linker can find them. Code:
cat /etc/ld.so.conf Code:
/usr/local/gnome/lib Code:
/sbin/ldconfig |
i checked, there is no /lib in gnome dir.
all the required libs are in /usr/lib .. also pango |
Hi. Ok if you've installed all the packages form the slackware cdrom then the versions of the libraries shouldn't be causing any problems.
It still looks as if you're either missing a library somewhere, or the linker can't find it. Could you please post the output of: Code:
grep -ir g_type_class_add_private /usr/lib |
After looking into this further I believe keefaz was on the right track. :)
I assumed you had just installed gtk2 from the package on the first slackware 9.1 cd ( gtk+2-2.2.4-i486-1.tgz ). Please also post the output from, Code:
ls -l /usr/lib/libgtk-x11-2.0.so.0 Code:
ls /usr/lib/*gtk* Thanks. |
ok here are the output
grep -ir g_type_class_add_private /usr/lib Binary file /usr/lib/libgtk-x11-2.0.so.0 matches Binary file /usr/lib/libgucharmap.so matches Binary file /usr/lib/libnautilus-private.so.2.0.0 matches Binary file /usr/lib/libnautilus-private.so.2 matches Binary file /usr/lib/libnautilus-private.so matches Binary file /usr/lib/libpanel-applet-2.so.0 matches Binary file /usr/lib/libpanel-applet-2.so matches Binary file /usr/lib/libgtk-x11-2.0.so.0.400.0 matches Binary file /usr/lib/epiphany/extensions/libpopupblockerextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/libdashboardextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/libgesturesextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/liberrorviewerextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/libcertificatesextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/libtabsmenuextension.so.0.0.0 matches Binary file /usr/lib/epiphany/extensions/libcertificatesextension.so.0 matches Binary file /usr/lib/epiphany/extensions/libtabsmenuextension.so matches Binary file /usr/lib/epiphany/extensions/libtabsmenuextension.so.0 matches Binary file /usr/lib/epiphany/extensions/liberrorviewerextension.so.0 matches Binary file /usr/lib/epiphany/extensions/libgesturesextension.so.0 matches Binary file /usr/lib/epiphany/extensions/libpopupblockerextension.so matches Binary file /usr/lib/epiphany/extensions/libgesturesextension.so matches Binary file /usr/lib/epiphany/extensions/liberrorviewerextension.so matches Binary file /usr/lib/epiphany/extensions/libdashboardextension.so.0 matches Binary file /usr/lib/epiphany/extensions/libcertificatesextension.so matches Binary file /usr/lib/epiphany/extensions/libdashboardextension.so matches Binary file /usr/lib/epiphany/extensions/libpopupblockerextension.so.0 matches Binary file /usr/lib/libpanel-applet-2.so.0.0.19 matches Binary file /usr/lib/libgucharmap.so.4.0.3 matches Binary file /usr/lib/libgucharmap.so.4 matches ----------------------------------------------------------------- ls /usr/lib/*gtk* lrwxrwxrwx 1 root root 19 May 4 13:57 /usr/lib/libgtk-1.2.so.0 -> libgtk-1.2.so.0.9.1* -rwxr-xr-x 1 root root 1171008 Oct 21 2002 /usr/lib/libgtk-1.2.so.0.9.1* -rw-r--r-- 1 root root 820 Sep 9 2003 /usr/lib/libgtk-x11-2.0.la lrwxrwxrwx 1 root root 25 May 4 13:57 /usr/lib/libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.200.4* lrwxrwxrwx 1 root root 25 May 4 13:57 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.0* -rwxr-xr-x 1 root root 2434572 Sep 9 2003 /usr/lib/libgtk-x11-2.0.so.0.200.4* -rwxr-xr-x 1 root root 2878344 Mar 22 18:23 /usr/lib/libgtk-x11-2.0.so.0.400.0* -rw-r--r-- 1 root root 1717032 Oct 21 2002 /usr/lib/libgtk.a -rwxr-xr-x 1 root root 720 Oct 21 2002 /usr/lib/libgtk.la* lrwxrwxrwx 1 root root 19 May 4 13:57 /usr/lib/libgtk.so -> libgtk-1.2.so.0.9.1* -rw-r--r-- 1 root root 67960 Sep 13 2003 /usr/lib/libgtkhex.a -rwxr-xr-x 1 root root 1181 May 27 16:47 /usr/lib/libgtkhex.la* lrwxr-xr-x 1 root root 18 Jun 2 04:57 /usr/lib/libgtkhex.so -> libgtkhex.so.0.0.0* lrwxr-xr-x 1 root root 18 Jun 2 04:57 /usr/lib/libgtkhex.so.0 -> libgtkhex.so.0.0.0* -rwxr-xr-x 1 root root 61700 May 27 16:50 /usr/lib/libgtkhex.so.0.0.0* -rw-r--r-- 1 root root 673898 Sep 10 2003 /usr/lib/libgtkhtml-2.a -rwxr-xr-x 1 root root 1239 May 7 12:42 /usr/lib/libgtkhtml-2.la* lrwxr-xr-x 1 root root 21 Jun 2 05:24 /usr/lib/libgtkhtml-2.so -> libgtkhtml-2.so.0.0.0* lrwxr-xr-x 1 root root 21 Jun 2 05:24 /usr/lib/libgtkhtml-2.so.0 -> libgtkhtml-2.so.0.0.0* -rwxr-xr-x 1 root root 405496 May 7 12:42 /usr/lib/libgtkhtml-2.so.0.0.0* -rwxr-xr-x 1 root root 1310 May 7 13:22 /usr/lib/libgtksourceview-1.0.la* lrwxr-xr-x 1 root root 29 Jun 2 04:56 /usr/lib/libgtksourceview-1.0.so -> libgtksourceview-1.0.so.0.0.0* lrwxr-xr-x 1 root root 29 Jun 2 04:56 /usr/lib/libgtksourceview-1.0.so.0 -> libgtksourceview-1.0.so.0.0.0* -rwxr-xr-x 1 root root 184924 May 7 13:27 /usr/lib/libgtksourceview-1.0.so.0.0.0* /usr/lib/gtk-2.0: total 16 drwxr-xr-x 5 root root 4096 Sep 10 2003 2.2.0/ drwxr-xr-x 6 root root 4096 May 7 11:28 2.4.0/ drwxr-xr-x 2 root root 4096 Sep 9 2003 include/ drwxr-xr-x 2 root root 4096 May 7 17:33 modules/ ------------------------------------------------------------------------------ ls -l /usr/lib/libgtk-x11-2.0.so.0 lrwxrwxrwx 1 root root 25 May 4 13:57 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.0* |
Upgrade to the last gnome package (2.6) will fix your problem for sure (your libgtk seems to be the last version as its name and links are identical to mine which I upgraded recently)
|
Yea, you actually have two different versions of libgtk+-2 installed.
Code:
-rwxr-xr-x 1 root root 2434572 Sep 9 2003 /usr/lib/libgtk-x11-2.0.so.0.200.4* of the same library. You really should have used pkgtool or some other means to remove the original package before upgrading. Perhaps the easiest way of resolving this is to use swaret. I don't use swaret myself so somebody else would have to advise you on this. I can see from the output of grep that at the very least you definitely need to upgrade glib and pango, because neither of those libraries show up. The unresolved symbol is caused by the fact that you have a new version of libgtk+-2 attempting to link with an outdated version of glib. Personally I would just grab the latest versions of, glib2 and pango from slackware.com, then use pkgtool to remove the glib and pango packages from /usr/lib and installpkg to install the new packages, but there may be a better way. |
hi
i removed glib2 and pango, and reinstalled them. and my gnome is working ... i really appreciate the help guru |
Excellent, glad to hear you got it working. :)
|
I still have got that problem :( I reinstalled gtk+ (1 and 2), glib (1 and 2) glibc and pango and still that error...
|
did you go through all the mails in this thread and did as they told ?
|
I reinstalled those all files about 10 times and it helped :>. But now i've got error for example when i run gedit:
gogiel@gogiel$gedit (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed (gedit:5773): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 769 (gdk_pixbuf_new_from_file): assertion `filename != NULL' failed gedit: relocation error: gedit: undefined symbol: eel_input_event_box_new GDM doesn't run too... |
All times are GMT -5. The time now is 03:50 PM. |