Gentoo Archives: gentoo-user

From: Kraus Philipp <philipp.kraus@×××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] two glibcs with different version
Date: Sat, 01 May 2010 10:25:46
Message-Id: 446D4A0A-26BC-4EEE-9E81-793D2EABA2CE@flashpixx.de
In Reply to: Re: [gentoo-user] two glibcs with different version by William Kenworthy
1 Am 01.05.2010 um 11:48 schrieb William Kenworthy:
2
3 > On Sat, 2010-05-01 at 10:57 +0200, Kraus Philipp wrote:
4 >>
5 >> On 01.05.2010 um 10:32 wrote Volker Armin Hemmann:
6 >>
7 >>> On Samstag 01 Mai 2010, Graham Murray wrote:
8 >>>> Kraus Philipp <philipp.kraus@×××××××××.de> writes:
9 >>>>> Hello,
10 >>>>>
11 >>>>> I must test a software with a older version of the glibc. I run
12 >>>>> the
13 >>>>> 2.11.1 now but for one tool I need a previous version (2.6.1).
14 >>>>> How can I compile the glibc without changing my system glibc. I
15 >>>>> would
16 >>>>> like to set the previous glibc with the LD_PATH.
17 >>>>> Can I run two different versions or is a better solution to
18 >>>>> downgrade
19 >>>>> the system glib?
20 >>>>
21 >>>> I think that the only way you can do this is to create a chroot
22 >>>> jail,
23 >>>> in which you build everything using the old version of glibc (in a
24 >>>> very
25 >>>> similar way to building a new Gentoo system) and run your
26 >>>> application in
27 >>>> that.
28 >>>
29 >>> no, you can install glibc in /usr/local and then tell apps to either
30 >>> use the
31 >>> libs in /usr/local or /usr.
32 >>>
33 >>> It is just not easy because it easily breaks stuff in horrrible to
34 >>> fix ways.
35 >>>
36 >>
37 >>
38 >> Okay, can I downgrade my glibc? My Gentoo isn't a big system, it's a
39 >> server
40 >> installation, so I can recompile the whole system. I had forgotten to
41 >> mask the
42 >> glibc on the last update. I have add a line to the portage.mask but
43 >> emerge says
44 >> that it can't compile the older version, because will damage the
45 >> system.
46 >>
47 >>
48 >
49 > Would LD_PRELOAD solve your problem? - worked for me when needing to
50 > run
51 > a legacy redhat app in the past on a more up-to-date gentoo system.
52
53 I think that can solve my problem, because it's only this one lib all
54 other libs
55 work very well.
56
57 > There is also a LD_LIBRARY_PATH variable. Get a binary copy of the
58 > libs
59 > you need and put em somewhere convenient and let the rest of the
60 > system
61 > stay as is.
62
63 I don't have the glibc binary. I can't emerge it and if I try to
64 compile from the sources.
65 The configure script says: These critical programs are missing or too
66 old: as ld
67
68 How I can compile the from the sources (http://ftp.gnu.org/gnu/glibc/glibc-2.10.1.tar.gz
69 ) ?
70
71 Thanks
72
73 Phil

Replies

Subject Author
Re: [gentoo-user] two glibcs with different version William Kenworthy <billk@×××××××××.au>