LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-04-2004, 04:17 PM   #1
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Rep: Reputation: 0
Question 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
 
Old 05-04-2004, 06:40 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
Guru, did you install the libs needed by gnome such as gtk?
 
Old 05-04-2004, 07:55 PM   #3
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
yes i did
is you talking about this package, i installed it again

gtk+2-2.2.4-i486-1.tgz

still no luck
 
Old 06-01-2004, 03:02 AM   #4
FAS
LQ Newbie
 
Registered: Jun 2004
Distribution: Slackware 9.1
Posts: 3

Rep: Reputation: 0
I've got the same problem. Nobody has a solution?
 
Old 06-01-2004, 03:49 AM   #5
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

Rep: Reputation: 15
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.
 
Old 06-02-2004, 01:19 AM   #6
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 06-02-2004, 02:47 AM   #7
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

Rep: Reputation: 15
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.
 
Old 06-02-2004, 03:11 AM   #8
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
i have pango libs installed ...
 
Old 06-02-2004, 03:19 AM   #9
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

Rep: Reputation: 15
Ok, where is gnome installed? Is it in /opt/gnome or somewhere else? Possibly the linker isn't finding the libraries.
 
Old 06-02-2004, 03:31 AM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe your libgtk-x11-2.0 is too recent for your Gnome installation so you have to upgrade Gnome as well (gnome 2.6)
 
Old 06-02-2004, 03:58 AM   #11
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
its in /usr/local/gnome

where i can fix the link problem ?
 
Old 06-02-2004, 04:14 AM   #12
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

Rep: Reputation: 15
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
 
Old 06-02-2004, 03:45 PM   #13
viewlessguru
LQ Newbie
 
Registered: May 2004
Location: SD, US
Distribution: slackware
Posts: 11

Original Poster
Rep: Reputation: 0
i checked, there is no /lib in gnome dir.

all the required libs are in /usr/lib .. also pango
 
Old 06-02-2004, 04:31 PM   #14
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

Rep: Reputation: 15
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
 
Old 06-02-2004, 06:23 PM   #15
coldAndUgly
Member
 
Registered: Dec 2003
Location: New Zealand
Distribution: Slackware 10.2
Posts: 36

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


Reply



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
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM
gnome-commander/krusader undefined symbol landroni Linux - Software 1 05-18-2005 02:47 PM
undefined symbol cout Tazzie76 Linux - Software 8 12-10-2004 02:09 PM
undefined symbol: _ZN13QWindowsStyleC1Ev r_jensen11 Linux - Software 1 09-10-2004 06:23 AM
gnome-terminal: undefined symbol: vte_terminal_set_scroll_background dario77 Linux - Software 1 09-02-2004 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration