LinuxQuestions.org
Visit Jeremy's Blog.
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 07-30-2006, 01:23 PM   #1
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
gnome make errors after upgrading atk


Background:
I'm attempting to build gnome 2.14.2 from source, beginning with slackware-current and not replacing any prebuilt packages except where upgrading. I have been following the build order specified here: http://www.gnome.org/start/2.14/note...tallation.html

I also wanted to install everything "Gnome" in /opt/gnome and create packages with checkinstall. I created /etc/profile.d/gnome.sh for the most part copying kde.sh and changing the relevant sections, but since I knew there would be issues with pkgconfig I also created pkgconfig.sh. Here they are:

/etc/profile.d/pkgconfig.sh:
Code:
#!/bin/sh
if [ "$PKG_CONFIG_PATH" = "" ]; then
  PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
else
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
fi
export PKG_CONFIG_PATH
/etc/profile.d/gnome.sh:
Code:
#!/bin/sh
# GNOME additions:
GNOMEDIR=/opt/gnome
PATH=$PATH:$GNOMEDIR/bin
MANPATH="${MANPATH}:${GNOMEDIR}/man"
if [ "$PKG_CONFIG_PATH" = "" ]; then
  PKG_CONFIG_PATH="${GNOMEDIR}/lib/pkgconfig"
else
  PKG_CONFIG_PATH="${GNOMEDIR}/lib/pkgconfig:${PKG_CONFIG_PATH}"
fi
export GNOMEDIR PATH MANPATH PKG_CONFIG_PATH
/opt/gnome/lib/pkgconfig needed to be at the front of PKG_CONFIG_PATH or there were numerous configure errors relating to missing packages.

I also added /opt/gnome/bin to the end of PATH

dbus and hal were also skipped, I'm not terribly interested in automounting and such.

Up until libgnomecanvas the only package that I upgraded was atk from 2.10.3 to 2.11.4, where the old was in /usr/lib and the new in /opt/gnome/lib.

After running "./configure --prefix=$GNOMEDIR" as I had for all the other Gnome packages, on running "make" for libgnomecanvas, everything was building fine until it entered the "glade" directory, at which the following errors were reported:
Code:
libtool: link: warning: `/usr/lib/gcc/i486-slackware-linux/3.4.6/../../..//libart_lgpl_2.la' seems to be moved
Message repeated for libpango, libpopt, libxml2, libgthread, libgtk-x11, libgdk-x11, libgdk-pixbuf, libpango, libcairo, libgmodule, libgobject and libglib. Also the following:
Code:
grep: /usr/lib/libatk-1.0.la: No such file or directory
/usr/bin/sed: can't read /usr/lib/libatk-1.0.la: No such file or directory
libtool: link: `/usr/lib/libatk-1.0.la' is not a valid libtool archive
make[2]: *** [libgnomecanvas.la] Error 1
make[2]: Leaving directory `/home/share/source/gnome/platform/libgnomecanvas-2.14.0/glade'
I was able to resolve this error by creating a symlink from /opt/gnome/lib/libatk-1.0.la to /usr/lib/libatk-1.0.la (since this file correctly reports that atk is installed in /opt/gnomelib). I deleted the symlink after installing, just to see if any other packages have the same issue. Sure enough, libbonoboui reported the same errors, also in the glade directory.

I thought there might be a problem with Makefile.in in the glade directory, but I didn't notice anything (of course I'm not an expert by any means). Now why would the build issue only manifest itself in the glade directory, and not in the root of the libgnomecanvas build tree? The problem does indicate a possible stale file somewhere that doesn't recognise that atk has been upgraded to a different directory, but as I said only the glade directory has issues with the location of atk. For example, libgnomecanvas didn't have any problems being built.

I don't think that the symlink to /usr/lib should be required for atk, I'd prefer not touching anything in /usr if I can help it (that's kinda the point of this exercise). Any thoughts on the situation?

When I'm finished I intend to publish my gnome building experience on my personal website so that other source builders might avoid some of the pitfalls that I've had.
 
Old 08-01-2006, 11:44 AM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728

Original Poster
Blog Entries: 2

Rep: Reputation: 43
Maybe I was too wordy and didn't ask my question clearly enough.

Basically I upgraded from atk from 2.10.3 installed in /usr to 2.11.4 installed in /opt/gnome while building Gnome 2.14.2 from scratch starting with Slackware-current. If a required package was already installed and the version recent enough, I didn't rebuild it (so libxml2, libxslt, glib, libIDL, Xrender, cairo, Xft, pango, gtk+) but atk was older than the one provided by Gnome.

Now whenever building a package that has a "glade" directory, I'm getting errors about missing /usr/lib/libatk-1.0.la when make enters glade. The rest of the package up until then builds fine, and .configure doesn't complain either.

Is it likely a problem with a stale pre-existing file, or is it the generated Makefile that's wrong? Since everything else compiles fine I tend to think it's the Makefile in the glade directory, but I can't see any indication that it's hard-coded to look for atk in /usr. Any thoughts?
 
  


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
[Slackware 10.2] "Upgrading" packages gtk+, glib, atk, pango stevesk Linux - Newbie 9 07-02-2006 06:09 PM
GTK: pango and atk error while "make" acrao80 Ubuntu 1 05-21-2005 12:59 PM
ATK make error k4zau Linux - Software 0 02-11-2004 07:38 PM
ATK compiling Errors dhUmra Linux - Software 5 02-08-2004 05:30 PM
make errors trying to install gnome-libs Locura Slackware 10 07-11-2003 05:01 AM

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

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