LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   gnome-session undefined symbol (https://www.linuxquestions.org/questions/slackware-14/gnome-session-undefined-symbol-177883/)

viewlessguru 05-04-2004 04:17 PM

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:

ringwraith 05-04-2004 06:40 PM

Guru, did you install the libs needed by gnome such as gtk?

viewlessguru 05-04-2004 07:55 PM

yes i did
is you talking about this package, i installed it again

gtk+2-2.2.4-i486-1.tgz

still no luck :(

FAS 06-01-2004 03:02 AM

I've got the same problem. Nobody has a solution? :(

coldAndUgly 06-01-2004 03:49 AM

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.

viewlessguru 06-02-2004 01:19 AM

Quote:

Originally posted by coldAndUgly
hi cold,
i just tried to reinstall the glibs you told. i am getting the same error again. anything else you can suggest. i dont want to go for KDE :(

thanks for replying
guru
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.


coldAndUgly 06-02-2004 02:47 AM

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*
if you don't see any output form this command then you need to install the pango package, pango-1.2.5-i486-1.tgz, which is also in the l/
directory of the first slackware CD.

viewlessguru 06-02-2004 03:11 AM

i have pango libs installed ... :(

coldAndUgly 06-02-2004 03:19 AM

Ok, where is gnome installed? Is it in /opt/gnome or somewhere else? Possibly the linker isn't finding the libraries.

keefaz 06-02-2004 03:31 AM

Maybe your libgtk-x11-2.0 is too recent for your Gnome installation so you have to upgrade Gnome as well (gnome 2.6)

viewlessguru 06-02-2004 03:58 AM

its in /usr/local/gnome

where i can fix the link problem ?

coldAndUgly 06-02-2004 04:14 AM

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
/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/usr/lib

That is what the file looks like on my system, you would have to add the line,
Code:

/usr/local/gnome/lib
if that's where the gnome libraries are installed, then run,
Code:

/sbin/ldconfig

viewlessguru 06-02-2004 03:45 PM

i checked, there is no /lib in gnome dir.

all the required libs are in /usr/lib .. also pango

coldAndUgly 06-02-2004 04:31 PM

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

coldAndUgly 06-02-2004 06:23 PM

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
so we can see what version of libgtk this symlink actually points to, and
Code:

ls /usr/lib/*gtk*
so we can see all the gtk libs in /usr/lib, just to make sure you don't have multiple versions of libgtk+-2.x installed.
Thanks.

viewlessguru 06-03-2004 02:49 PM

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*

keefaz 06-03-2004 03:22 PM

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)

coldAndUgly 06-03-2004 04:41 PM

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*
          -rwxr-xr-x 1 root root 2878344 Mar 22 18:23 /usr/lib/libgtk-x11-2.0.so.0.400.0*

libgtk-x11-2.0.so.0.200.4 comes from the package on the slackware cdrom, then you've installed libgtk-x11-2.0.so.0.400.0 a more recent version
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.

viewlessguru 06-04-2004 12:44 PM

hi

i removed glib2 and pango, and reinstalled them.
and my gnome is working ...

i really appreciate the help

guru

coldAndUgly 06-04-2004 05:58 PM

Excellent, glad to hear you got it working. :)

gogiel 06-27-2004 08:15 AM

I still have got that problem :( I reinstalled gtk+ (1 and 2), glib (1 and 2) glibc and pango and still that error...

viewlessguru 06-27-2004 02:18 PM

did you go through all the mails in this thread and did as they told ?

gogiel 06-28-2004 07:21 AM

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:57 AM.