LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-16-2005, 02:41 PM   #1
Ukee
LQ Newbie
 
Registered: Sep 2004
Posts: 20

Rep: Reputation: 0
gkrellm - gdk_threads_lock error


I'm running Suse 9.1 on a P4. KDE 3.2

Using YaST I downloaded and installed gkrellm 2.2.1-0.pm.0.i686.

When I execute gkrellm as myself or root I encounter an error":

gkrellm: error while loading shared libraries: gkrellm: undefined symbol: gdk_threads_lock

Does anyone know how to rectify this?

Thanks,
Ukee
 
Old 03-16-2005, 03:00 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what version of gtk-2.x do you have, sounds like gkrellm was compiled against a recent version of gtk-2.x and you have a version that doesn't have that function. to find out, in a terminal do:

objdump -R /usr/lib/libgtk-x11-2.0.so | grep gdk_threads_lock
002a74a0 R_386_GLOB_DAT gdk_threads_lock

note that objdump comes with the binutils package, if you have a default install of Suse without the development tools you probably do not have it installed. If you get no output from the command above, then your version of gtk does not have that symbol
 
Old 03-16-2005, 11:41 PM   #3
Ukee
LQ Newbie
 
Registered: Sep 2004
Posts: 20

Original Poster
Rep: Reputation: 0
The installed version of gtk2 is: 2.2.4-125.4

When I search for "gtk2" using YaST. It lists the following installed packages:
gtk2
gtk2-devel
gtk2-doc
gtk2-engines
gtk2-themes
gtkhtml2
gtkmm2
gtkmm2-devel
gtkspell
libgtkspell
libgtkhtml


I do have the binutils package. However, I do not have /usr/lib/libgtk-x11-2.0.so as you can see from the directory listing below.


LOCALGHOST:/usr/lib # ls -l libgt*.so
lrwxrwxrwx 1 root root 25 2004-09-12 08:58 libgtkodbcconfig.so -> libgtkodbcconfig.so.0.0.0
lrwxrwxrwx 1 root root 18 2004-09-12 08:58 libgtrtst.so -> libgtrtst.so.1.0.0
LOCALGHOST:/usr/lib #

You can't tell from my cut and paste that the top link is actually broken. This likely relates to the fact that the target isn't see in this directory.

Your suggestions are appreciated.

Ukee
 
Old 03-17-2005, 04:48 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
your gtk libs are in /opt/gnome/lib I believe ( I'm not completely sure on that one, but I think that's where Suse packages all the gnome libs)

what's the version on that gtk2 Yast is showing? I'm not sure when that function was implemented, but you'll probably need at least gtk2-2.4.x or higher.
 
Old 03-17-2005, 03:25 PM   #5
Ukee
LQ Newbie
 
Registered: Sep 2004
Posts: 20

Original Poster
Rep: Reputation: 0
I identified the file: libgtk-x11-2.0.so in the /opt/gnome/lib directory as you suggested.

LOCALGHOST:/opt/gnome/lib # ls -l libgtk-x11-2.0.*
-rw-r--r-- 1 root root 829 2004-04-05 18:45 libgtk-x11-2.0.la
lrwxrwxrwx 1 root root 25 2005-03-17 08:36 libgtk-x11-2.0.so -> libgtk-x11-2.0.so.0.200.4
lrwxrwxrwx 1 root root 25 2005-03-17 08:36 libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.200.4
-rwxr-xr-x 1 root root 2726073 2004-04-05 18:45 libgtk-x11-2.0.so.0.200.4
LOCALGHOST:/opt/gnome/lib #

When I execute the objdump | grep command, nothing is found.

LOCALGHOST:/opt/gnome/lib # objdump -R /opt/gnome/lib/libgtk-x11-2.0.so | grep gdk_threads_lock
LOCALGHOST:/opt/gnome/lib #

To answer your question: The installed version of gtk2 is: 2.2.4-125.4

I tried to install a newer version of gtk2 but when I run "./configure" my dependencies become an issue. See below...

checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but ve Lib is 2.2.3

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; co usting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-con nd them.
kirt@LOCALGHOST:~/gtk+-2.4.14>

I have glib, atk, and pango installed but there not the newest versions cited above - hence the problem, I reckon.

Should I try to find an older version of gkrellm?

I look forward to your suggestions.

Ukee
 
Old 03-24-2005, 10:12 AM   #6
kraftycuts
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
Hi

I'm also having this problem on SuSE Linux Enterprise Server 9.2 (Actually it's OES but whats the difference! ), does any body have any ideas about this yet? I'd be happy to provide any additional information if needed. Thanks in advance.

Kieran
 
  


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
relocation error, gdk_threads_lock with nvidia drivers. Rythin Linux - Software 2 10-07-2005 10:19 AM
gftp error: undefined symbol: gdk_threads_lock eam Linux - Software 0 09-26-2004 10:20 AM
GKrellM Error.....? mrgrieves Linux - Software 8 07-20-2004 06:40 PM
Gkrellm v2 Error, HELP! RaVilj Linux - Software 2 06-19-2004 12:27 PM
gdk_threads_lock error fedora core 2 linuxinside Fedora - Installation 0 05-18-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 PM.

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