Re: Problem compiling atk-1.6.1



This sort of problem has been reported before but I do not recall which list is was on.

The command pkg-config --mod-version glib-2-0 looks in .pc file in pkgconfig directory for the version number. You can run strace to confirm what directory is being looked at.

The version of GLIB which is found is what is reported when a program is linked to glib and run. I suggest you check environment variables such as LD_LIBRARY_PATH and LD_FLOAGS.

Padraig
Steven P. Ulrick wrote:

Hello, Everyone :)
I just joined this list for the purpose of asking this question. Before I sent this question, I downloaded the last 12 months of archives from this list and looked through a few months worth of them and I found nothing relating to this exact problem. For the purpose of hopefully being more clear, I will put this in numerical order (This ignores the unfortunate path that I went through to get to this point. Now I am back at the point where I was before I ALMOST hosed our system :)

1. I downloaded the most recent version of pkg-config and configured it to install in /usr/local (instead of Fedora Core 2's default of /usr) This went perfectly.

2. I placed the following in my "~/.bash_profile":
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH

3. Did "su - steve" to make sure that my "new" "~/.bash_profile" was read properly. This also had the desired results.

4. I configured and installed the latest stable version of glib, "glib-2.4.7" I used the following command: "./configure --prefix=/usr/local" This also seemed to go as desired.

5. I then proceeded to configure "atk-1.6.1" with the same command as I used to configure "glib-2.4.7": "./configure --prefix=/usr/local" This exited with the following error:
checking for pkg-config... /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.4.7, but GLIB (2.5.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
[steve ulrick2 atk-1.6.1]$

This is REALLY strange. The "pkg-config" that I wanted to be used was apparently detected: "checking for pkg-config... /usr/local/bin/pkg-config" I ASSUMED that "/usr/local/bin/pkg-config" would run "pkg-config --modversion glib-2.0" in the path that it was installed in (see #1 and #2 above) How can "pkg-config --modversion glib-2.0" return "2.4.7" and actually FIND "GLIB (2.5.3)" when there is absolutely no "glib" of any version installed in this path as of yet? You may ask, "Well, "pkg-config" looked elsewhere when it didn't find "glib" in it's own path." The problem there is that I had recompiled "glib-2.5.3" (assuming that it was Actually installed) and as root ran "make uninstall" in it. All I know for sure is that it appeared to uninstall with no errors. I recently reinstalled Fedora Core 2 because of an identical issue that I had recently. So I was REAL CAREFUL to be sure to not install this mysterious "glib-2.5.3" So not only is there no "glib-2.5.3" on our system, but there is Definitely no "glib-2.5.3" on our system in my new "PKG_CONFIG_PATH"

Just for kicks, I just uninstalled the "glib-2.4.7" that was installed in my intended new "PKG_CONFIG_PATH" I will now attempt to compile "atk-1.6.1" I know it will exit with an error, I just want to see which one.....

Here we go:
checking for GLIB - version >= 2.0.0... no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

This is as expected, since there is absolutely no "glib" installed in "/usr/local"



I will now reconfigure and reinstall "glib-2.4.7" in the "/usr/local" path, with "PKG_CONFIG_PATH" still set to "/usr/local/lib/pkgconfig" Now when attempt to configure "atk-1.6.1" for /usr/local, I get the original error message that I quoted in point #5 above. Now follow this: when I uninstalled "glib-2.4.7" (the only "glib" that I had ever had installed in that path) I got the kind of error that I would expect: one that stated that no "glib" was found. Then I re-installed "glib-2.4.7" in the /usr/local path, and "pkg-config" said 2.4.7 was returned by "pkg-config --modversion glib-2.0", but "2.5.3" was found! There is no possibility that "glib-2.5.3" was ever installed on this path! Please refer back to point #5 for the full text of the error message.

I confess that even to my relatively unlearned mind, this is starting to look like a "pkg-config" issue. As a result I will file a bug report on this. But I would like to know, is there anyway to work around this, so I can compile GIMP and Inkscape from CVS? That's how I discovered this problem. FYI, my tests that I described in the email had nothing to do with continuing efforts to compile GIMP or Inkscape from CVS. In fact, you will notice that the only packages I referred to in this epic (Ooops, I mean email :)) are pkgconfig, atk and glib.

Our operating system is Fedora Core 2. Full installation (not an upgrade) Every package installed (over, I think, 1400 to 1500 packages) All official updates are installed, except that I am running the kernel that FC2 shipped with (the new one can't be used to burn audio cd's :() The atk, glib, gtk+ and pango versions that I am attempting to install come from the following location:
ftp://ftp.gtk.org/pub/gtk/v2.4/
The exact versions are as follows:
atk 1.6.1
glib 2.4.7
gtk+ 2.4.11
pango 1.4.1

I have only been able to install the above mentioned glib. Since I coudn't get past atk, I couldn't even try gtk+ and pango.

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]