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.


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