:: Re: [DNG] chroot sees wrong version…
Página Inicial
Delete this message
Reply to this message
Autor: Rainer Weikusat
Data:  
Para: dng
Assunto: Re: [DNG] chroot sees wrong version of libc
Haines Brown <haines@???> writes:

[...]

>   # LANG=C.UTF-8 chroot /mnt/debinst /bin/bash
>   /bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version
>            `GLIBC_2.15' not found (required by /bin/bash)
>   /bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version
>            `GLIBC_2.15' not found (required by
>          /lib/i386-linux-gnu/libncurses.so.5)
>   /bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version
>            `GLIBC_2.15' not found (required by
>          /lib/i386-linux-gnu/libtinfo.so.5)


[...]

That's an error you should see when trying to run the downloaded bash
binary without doing a chroot first (the wheezy libc doesn't define
GLIBC_2.15), eg, (di2 is a debootrapped i386 Devuan jessie on a amd64
host),

[rw@doppelsaurus]~#cd /tmp/di2
[rw@doppelsaurus]/tmp/di2#bin/bash
bin/bash: /lib/i386-linux-gnu/i686/cmov/libc.so.6: version `GLIBC_2.15' not found (required by bin/bash)

The library name also comes from the Wheezy system, it should be

/lib/i386-linux-gnu/libc.so.6

for the one which was downloaded.

You could try to have a look at the downloaded library. Assuming you're
root and the cwd is the top-level download directory (/mnt/debinst in
your case) then

nm -D `find -name libc.so.6` | grep GLIBC

should print

00000000 A GLIBC_2.0
00000000 A GLIBC_2.1
00000000 A GLIBC_2.1.1
00000000 A GLIBC_2.1.2
00000000 A GLIBC_2.1.3
00000000 A GLIBC_2.10
00000000 A GLIBC_2.11
00000000 A GLIBC_2.12
00000000 A GLIBC_2.13
00000000 A GLIBC_2.14
00000000 A GLIBC_2.15
00000000 A GLIBC_2.16
00000000 A GLIBC_2.17
00000000 A GLIBC_2.18
00000000 A GLIBC_2.2
00000000 A GLIBC_2.2.1
00000000 A GLIBC_2.2.2
00000000 A GLIBC_2.2.3
00000000 A GLIBC_2.2.4
00000000 A GLIBC_2.2.6
00000000 A GLIBC_2.3
00000000 A GLIBC_2.3.2
00000000 A GLIBC_2.3.3
00000000 A GLIBC_2.3.4
00000000 A GLIBC_2.4
00000000 A GLIBC_2.5
00000000 A GLIBC_2.6
00000000 A GLIBC_2.7
00000000 A GLIBC_2.8
00000000 A GLIBC_2.9
00000000 A GLIBC_PRIVATE