LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-15-2010, 09:46 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How to debug undefined reference to library function (yad 0.5.1)?


Hello :-)

I'd like to learn debugging techniques as much as to solve this particular problem.

While trying to build yad 0.5.1:
Code:
yad-notification.o: In function `yad_notification_run':
/tmp/yad-0.5.1/src/notification.c:330: undefined reference to `gtk_status_icon_set_tooltip_text'
According to the source package's README file, "Yad depends on gtk+ only. Minimal gtk+ version is 2.12.0". I checked /var/log/packages and found gtk+2-2.14.7-i486-4 is installed.

Inspecting /tmp/yad-0.5.1/src/notification.c showed that gtk_status_icon_set_tooltip_text is a function. So it should be declared in the gtk+2-2.14.7 header files (or not?).

Checking:
Code:
c@CW8:/usr/include/gtk-2.0$ find . -name '*.h' -exec grep gtk_status_icon_set_tooltip_text {} \;
[no output]
Is this enough analysis to justify reporting an issue? Is there any more I can do before logging an issue?

OS: Slackware 13.0 32-bit.
yad download: http://code.google.com/p/yad/downloa...ar.xz&can=2&q=

The downloaded package checksums OK. Netsearching for gtk_status_icon_set_tooltip_text finds no pages.

Best

Charles
 
Old 10-16-2010, 12:18 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by catkin View Post
Hello :-)

I'd like to learn debugging techniques as much as to solve this particular problem.

While trying to build yad 0.5.1:
Code:
yad-notification.o: In function `yad_notification_run':
/tmp/yad-0.5.1/src/notification.c:330: undefined reference to `gtk_status_icon_set_tooltip_text'
According to the source package's README file, "Yad depends on gtk+ only. Minimal gtk+ version is 2.12.0". I checked /var/log/packages and found gtk+2-2.14.7-i486-4 is installed.

Inspecting /tmp/yad-0.5.1/src/notification.c showed that gtk_status_icon_set_tooltip_text is a function. So it should be declared in the gtk+2-2.14.7 header files (or not?).

Checking:
Code:
c@CW8:/usr/include/gtk-2.0$ find . -name '*.h' -exec grep gtk_status_icon_set_tooltip_text {} \;
[no output]
Is this enough analysis to justify reporting an issue? Is there any more I can do before logging an issue?

OS: Slackware 13.0 32-bit.
yad download: http://code.google.com/p/yad/downloa...ar.xz&can=2&q=

The downloaded package checksums OK. Netsearching for gtk_status_icon_set_tooltip_text finds no pages.

Best

Charles
If yad claim that minimal version of GTK is X, it's mean following:
1. Yad for sure will not compile/run with GTK version < X
2. Yad should compile and run with GTK version == X
3. Yad may be will compile and run with GTK version > X - as long as
there is no backward incompatible changes in the new version of GTK, like renaming functions, changing it's signatures, etc

You can look in gtk realease notes what changed between minimal GTK version and version you have - may be it'll give you idea.
 
1 members found this post helpful.
Old 10-16-2010, 08:31 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks Valery :-)

The release notes were in /usr/doc/gtk+-2.14.7/NEWS. I could find nothing apparently related so submitted a yad issue.
 
Old 10-17-2010, 07:08 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Solved. It was caused by gtk+ version differences and the yad maintainer Victor Ananjevsky has fixed it now in notification.c r155. Victor is so fast!

Last edited by catkin; 10-17-2010 at 07:18 AM. Reason: changed maintainer's name from logon name to given name
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Shared Library error : undefined reference xs2harpreet Programming 6 03-11-2009 05:55 PM
Dlopen function - UNDEFINED REFERENCE mamthababu Programming 1 07-19-2005 10:20 AM
Undefined reference to function error Quest101 Linux - Newbie 0 12-30-2004 05:01 PM
Linking own library: undefined reference to otosigo Programming 1 12-02-2004 08:05 AM
undefined reference to a function included in a library i made!!! keos Programming 5 02-21-2004 04:02 PM

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

All times are GMT -5. The time now is 06:19 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