[6982] in testers
Re: 9.4 Linux problems due to duplicated libs in /usr/lib, /usr/athena/lib
daemon@ATHENA.MIT.EDU (Alex T Prengel)
Mon May 16 20:58:41 2005
Message-Id: <200505170058.j4H0wT5U032691@astrophel.mit.edu>
To: Greg Hudson <ghudson@MIT.EDU>
cc: alexp@MIT.EDU, testers@MIT.EDU
In-Reply-To: Your message of "Mon, 16 May 2005 12:35:33 EDT."
<1116261333.3458.49.camel@egyptian-gods.mit.edu>
Date: Mon, 16 May 2005 20:58:28 -0400
From: Alex T Prengel <alexp@MIT.EDU>
>> It seems that a substantial number of gnome libraries (and possibly
>> others) are duplicated in /usr/lib and /usr/athena/lib, but with older
>> versions in the latter- I presume because in 9.3 they weren't part of
>> the RedHat release (or our version thereof, anyway), but in 9.4 they
>> are.
>Please be more specific.
I may not be clear, so at the risk of being overly verbose I'll
describe what I did, and the results.
I initially started the gnumeric build with LD_LIBRARY_PATH set to
/usr/athena/lib, LDFLAGS set to "-L/usr/athena/lib" CPPFLAGS set to
"-I/usr/athena/include" and path having /usr/athena/bin before
/usr/bin. This is what I had used for the most part in pre-9.4 releases, and
which usually worked OK.
configure complained about 13 libraries not being present with the required
version:
glib-2.0 >= 2.4.0
gobject-2.0 >= 2.4.0
gmodule-2.0 >= 2.4.0
libgsf-1 >= 1.10.0
libxml-2.0 >= 2.4.12
pango >= 1.4.0
pangoft2 >= 1.4.0
gtk+-2.0 >= 2.4.0
libglade-2.0 >= 2.3.6
libgnomecanvas-2.0 >= 2.0.0
libgnomeprint-2.2 >= 2.5.2
libgnomeprintui-2.2 >= 2.5.2
libart-2.0 >= 2.3.11
In looking at the first library, for example, I found that there was:
/usr/athena/lib/libglib-2.0.so.0, from rpm athena-glib2-9.4-0 and
/usr/lib/libglib-2.0.so.0, from rpm glib2-devel-2.4.7-1
I was using the first, from my choice of environment variables; since the
version in the rpm is the Athena version, I'm not sure of the "official"
version- but the second, which presumably is named by the official version,
clearly should be acceptable. All the other libraries were similarly in
both places too. When I set things to use the libraries in /usr/lib and
not /usr/athena/lib, the build worked.
So I guess I'm confused about the significance of /usr/athena/lib and
why we have different copies of all these libraries in two places. I
thought that /usr/athena/lib contained libraries that we build from
source, because they weren't supplied in the RedHat release for
whatever reason- but I suspect I misunderstand this...
>> I think the right thing to do is to remove from /usr/athena/lib (and
>> /usr/athena/include, /usr/athena/bin etc.) all libraries and binaries for
>> which newer versions are now included in the RedHat release.
>GNOME does not behave if some of its libraries are built with different
>prefixes than others, so we cannot simply remove libraries which are
>provided by Red Hat.
Again, probably my misunderstanding. What I thought I was advocating was
removing libraries we built, in /usr/athena/lib, that I thought might no longer
be necessary, and keeping RedHat's, of same name, in /usr/lib.
If there's existing documentation clarifying this please point me to it- I've
looked and haven't found any...
Thanks,
Alex