Gentoo Archives: gentoo-alt

From: Perry Smith <pedzsan@×××××.com>
To: Michael Haubenwallner <haubi@g.o>
Cc: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Adventures with Prefix on AIX 5.3
Date: Tue, 14 Dec 2010 00:09:06
Message-Id: 00F9FB7B-BD70-4A96-A690-79C6806091DB@gmail.com
In Reply to: Re: [gentoo-alt] Adventures with Prefix on AIX 5.3 by Michael Haubenwallner
1 On Dec 13, 2010, at 3:45 AM, Michael Haubenwallner wrote:
2
3 > On 12/11/2010 01:41 AM, Perry Smith wrote:
4 >>
5 >> For both passes, I do "out of tree" builds and build each library in 32 bit mode and again in 64 bit mode.
6 >> I then rename the 32 bit shared object to e.g. libmpfr32.so.1, the 64 bit object to libmpfr64.so.1, and then create an archive called libmpfr.a.
7 >
8 > A Library called 'libmpfr.a' without any version number in plain filename
9 > is calling for troubles[1].
10 >
11 > [1] http://bugs.gentoo.org/show_bug.cgi?id=213277#c11
12
13 I can recreate this doing:
14
15 LIBPATH=/lib gcc -o x x.c && ./x
16 exec(): 0509-036 Cannot load program gcc because of the following errors:
17 0509-022 Cannot load module /gsa/ausgsa/projects/r/ruby/lib/libintl.a(libintl.so.8).
18 0509-150 Dependent module /lib/libiconv.a(libiconv.so.2) could not be loaded.
19 0509-152 Member libiconv.so.2 is not found in archive
20 0509-022 Cannot load module gcc.
21 0509-150 Dependent module /gsa/ausgsa/projects/r/ruby/lib/libintl.a(libintl.so.8) could not be loaded.
22 0509-022 Cannot load module .
23
24 I went back and rebuilt my libintl.a using absolute paths so the header looks like:
25
26 ***Import File Strings***
27 INDEX PATH BASE MEMBER
28 0 /gsa/ausgsa/projects/r/ruby/lib:/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1:/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/../../..:/usr/lib:/lib
29 1 libc.a shr.o
30 2 libpthread.a shr_xpg5.o
31 3 /gsa/ausgsa/projects/r/ruby/lib libiconv.a libiconv.so.2
32
33 and it still fails. Are you sure if you build with import files it is going to solve the problem? Seems like it would not but I'm curious what you have in mind.
34
35 Note that this is only going to be an issue for libraries that collide with the same base name in /lib. If I move /lib/libiconv.a out of the way, then the loader finds the correct libiconv.a.
36
37 The other question I have is if this is a show stopper for you? I would argue that what Java is doing is impolite (at least).
38
39 Perry

Replies

Subject Author
Re: [gentoo-alt] Adventures with Prefix on AIX 5.3 Michael Haubenwallner <haubi@g.o>