Gentoo Archives: gentoo-user

From: Enrico Weigelt <weigelt@×××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Cleaning up installation / two glibc versions
Date: Tue, 10 Jun 2008 17:54:16
Message-Id: 20080610175359.GD9713@nibiru.local
In Reply to: Re: [gentoo-user] Cleaning up installation / two glibc versions by Nicolai Beuermann
1 * Nicolai Beuermann <Nicolai.Beuermann@×××.de> wrote:
2
3 > Unmerging the old glibc ends up in an error about commands are
4 > no longer found. Back at the prompt I can´t fire any command.
5 > Nothing was found. Even shutdown failed.
6
7 When you're trying to run some binary (which definitively exists
8 and is +x) and you get something like no such file or directory,
9 it probably means that the libc stub in your binary cannot load
10 the libc's dynamic loader. That's because (at least on glibc
11 systems), the dynamic loader itself sits in an shared library
12 (eg. /lib/ld-linux.so) and each executable has an little stub
13 which just loads the dynamic linker. This is then responsible for
14 loading all the required shared libs (eg. by consulting ld.so.conf,
15 ld.so.cache, environment, etc). This all happens much earlier
16 before main() is called.
17
18 Yes, glibc's stub should be more clear about this ;-o
19
20 IMHO, you've removed exactly that libc (or at least it's dynamic
21 linker) your binaries are built against, so they can't be executed
22 anymore - you'r system is unbootable.
23
24 ldd output on these binaries should give your more enlightenment.
25
26 If you're sure you've rebuilt all of them and they're still built
27 against the old glibc, it's might be a toolchain problem. Try to
28 rebuild gcc and binutils first.
29
30
31 BTW: if you don't want to risk an unbootable system, you could have
32 a try in chroot first.
33
34
35 cu
36 --
37 ---------------------------------------------------------------------
38 Enrico Weigelt == metux IT service - http://www.metux.de/
39 ---------------------------------------------------------------------
40 Please visit the OpenSource QM Taskforce:
41 http://wiki.metux.de/public/OpenSource_QM_Taskforce
42 Patches / Fixes for a lot dozens of packages in dozens of versions:
43 http://patches.metux.de/
44 ---------------------------------------------------------------------
45 --
46 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Cleaning up installation / two glibc versions Nicolai Beuermann <Nicolai.Beuermann@×××.de>