LinuxQuestions.org
Review your favorite Linux distribution.
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 08-10-2011, 10:14 AM   #1
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
GTK+ 3.0.x upgrade fails under compilation (Slackware 13.38 64-bit)


Hi,

I try to compile the newest version of GTK+ (3.0.12). I followed the guide from http://developer.gnome.org/gtk3/stab...-building.html. I have tried to compile all version from 3.0.x to 3.0.12, however the result gives same error.

I have also compiled the current versions of GLib, atk, pango, gdk-pixbuf but without any problem (I first removed all the old ones via pkgtool).

Now, to the error I get from compiling GTK+ 3.0.x is:

Code:
/bin/grep: /usr/lib64/libgobject-2.0.la: No such file or directory
/bin/sed: can't read /lib64/libgobject-2.0.la: No such file or directory
libtool: link: '/usr/lib64/libgobject-2.0.la' is not a valid libtool archive
...
make: *** [all] error 2
Any clue on what my problem is?

*EDIT: And of course, I use Slackware 13.37 and NOT 13.38 ...

*EDIT2: And yes, I have libgobject installed...

Last edited by Bindestreck; 08-10-2011 at 10:21 AM.
 
Old 08-10-2011, 10:19 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
it seems something has gone wrong in your building glib2: substitute yours (uninstall it) with the stock one and try again.
 
Old 08-10-2011, 10:27 AM   #3
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Ah, I think the problem is that my *.la -file is not located at /usr/lib64/, but in /opt/gtk/lib. But I thought it would find it when I configured with:

./configure --prefix=/opt/gtk

Shouldnt "make" then install it under that direction? However, where can I change so make look into /opt/gtk/lib when searching for libgobject.-2.0.la file? Sorry, but Im a bit noobish about compiling programs...

Last edited by Bindestreck; 08-10-2011 at 10:30 AM.
 
Old 08-10-2011, 10:36 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
I could advise not to complicate your life choosing a non-standard prefix, at least at first...

but I cannot suggest much more than that: if you follow that way, basically you're on your own

if can help, I tried to adapt Pat's gtk+2.SlackBuild for gtk+3, following Steve Kennedy's work for gnomeslackbuils.org, you can find it here

http://cgit.ponce.cc/slackbuilds/com...43abc423da7904

you should have no problems installing it in /usr, as it's made to live beside gtk+2, it does not substitute it (just a few gtk apps support +3 at the moment).

Last edited by ponce; 08-10-2011 at 10:47 AM.
 
Old 08-10-2011, 12:25 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
ah, two hints come to mind.
maybe can help:
- setting LD_LIBRARY_PATH, LDFLAGS and --libdir when you run gtk+3 configure;
- installing libraries (glib2 and the others too) in $PREFIX/lib$LIBDIRSUFFIX can be more portable.
 
Old 08-10-2011, 01:20 PM   #6
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Original Poster
Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Ok, I solved it with a "dirty" solution:

I installed the dependencies for GTK+ on /usr. I copied all /usr/lib/pkgconfig/*.pc to /usr/local/lib/pkgconfig and /usr/lib64/pkgconfig. I then added /usr/local/lib/ and /usr/lib/ to PKG_CONFIG_PATH permanently through /etc/profile.

I then did a default ./configure and then make, however, same problem occured with same error!

Ok, I became more dirty and sick of this and then copied all *.la -files from /usr/lib to /usr/lib64. And also added all libraries to my ld.so.conf:

bash-4.1$ cat /etc/ld.so.conf
/usr/local/lib
/usr/x86_64-slackware-linux/lib
/usr/lib64/seamonkey
/usr/lib
/usr/lib64

and executed ldconfig. I then tried to compile again, and voila, the compilation worked!

I check what GTK versions are found by:

bash-4.1# pkg-config --modversion gtk+
1.2.10
bash-4.1# pkg-config --modversion gtk+-2.0
2.24.5
bash-4.1# pkg-config --modversion gtk+-3.0
3.0.12

and everything seems fine.

Nevertheless, thanks for your time and help ponce!

Last edited by Bindestreck; 08-10-2011 at 01:55 PM.
 
Old 08-10-2011, 03:17 PM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by eXpander_ View Post
and everything seems fine.
lol

Last edited by ponce; 08-10-2011 at 03:18 PM.
 
  


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
Upgrade to 64 bit Slackware ? bgeddy Slackware 13 01-30-2010 05:47 PM
Unable to compile 64 bit kernel on 64 bit machine even after successful compilation. atulsdeshmukh Linux - Kernel 2 09-18-2009 02:28 AM
64 Bit Slackware networking fails Marvell Gigabit Ethernet Controller staus Slackware 2 05-29-2009 02:33 PM
LXer: Upgrade from 32-bit to 64-bit Fedora Linux without a system reinstall LXer Syndicated Linux News 0 01-11-2008 09:42 PM
Slackware upgrade fails misserably. valar Slackware 2 01-11-2003 07:10 AM

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

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