LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 04-05-2010, 08:06 AM   #1
tmkd
Member
 
Registered: Mar 2010
Posts: 31

Rep: Reputation: 0
libgio-2.0.so: undefined reference


I am trying to update gtk+.
I have installed pango-1.26.2 and glib 2.22.5.
I see some error information, from google i know that it is old glib library fault. Ichecked. pkg-config --modversion glib shows 1.2.*** and pkg-config --modversion glib-2.0 shows 2.22.5. It looks like gtk+ using older 1.2.**. How to avoid this?

Code:
/usr/local/lib/libgio-2.0.so: undefined reference to `g_mkstemp_full'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_byte_array_unref'
./.libs/libgtk-x11-2.0.so: undefined reference to `g_array_get_element_size'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_hostname_to_ascii'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_byte_array_get_type'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_error_new_valist'
/usr/local/lib/libgio-2.0.so: undefined reference to `g_ptr_array_new_with_free_
 
Old 04-05-2010, 10:06 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,188

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Verifying versions with "pkg-config --modversion" :
A wrong question will provide a reply different from the expected.

'pkg-config --modversion glib' : 'glib' = old style = 1.2
'pkg-config --modversion glib-2.0 : new style = 2.x.xx

I.e pkg-config looks for an exact match of names found in
/usr/lib/pkgconfig . No wild cards are allowed.
( Both the old "1.2" and the new 2.x version of glib / gtk are
supposed to be present in /usr/lib/ .(See install disk 1 //l/ ))
Quote:
trying to update gtk
Installing to /usr/local/ is not an update, the system versions
are still present in /usr/ .
And it is not advisable to change glib2 / gtk2 to new versions.
.....

Last edited by knudfl; 04-06-2010 at 01:39 AM.
 
Old 04-06-2010, 02:40 AM   #3
tmkd
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 0
You wrote 'old style' , 'new style'. Does it mean that this is almost same version but developers change naming style from 1.*.* to 2.*.*.?
I did not know that it is not advisible. Thanks a lot. But after few years when gtk will become so old will it be possible to update it?
To update software installed from sources i should remove old version (make uninstall ) and compile new version?
 
Old 04-06-2010, 05:16 AM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,643

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
As a rule of thumb if you want to upgrade a package included in Slackware, I would recommend to reuse the slackbuild you'll find in /source in the Slackware tree and use the upgradepkg command to install the new package you'll find in /tmp afterwards if all goes well.

But it's not guaranteed to work in any case, so good luck.
 
Old 04-06-2010, 11:24 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,188

Rep: Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369Reputation: 2369
Gtk 1.x is the old gtk+ = Gimp Tool Kit.

Gtk 2.x is the new gtk+

And they are different . GTK 2.0 is always installed.
GTK 1.2 is most often installed too, to be used for
older applications.
The latest version = 1.2.10, was released 04-Jan-2002.

GTK 1.2 depends on GLIB 1.x
GTK 2.xx depends on GLIB 2.xx
.....

And no, it not a good idea to remove the system gtk.
Hundreds of installed applications are usually depending
on the installed version. Some will work with a later
version. And you are not keeping e.g. Slackware 13 forever.
When you some time in the future install version 13.1,
you will get gtk+2-2.18.7 ( and again gtk+-1.2.10 ).
.....

Last edited by knudfl; 04-06-2010 at 11:32 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gtk+ make error in libgio - undefined reference konzo Linux - Software 11 01-31-2010 02:08 AM
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
undefined reference to... dimah Programming 3 12-27-2006 09:57 AM
undefined reference? Sharky01252 Programming 3 11-07-2006 11:36 AM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 03:01 AM


All times are GMT -5. The time now is 09:20 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration