Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] two glibcs with different version Kraus Philipp <philipp.kraus@×××××××××.de>