Glibc-2.5 question

Luca liliana.perossa at fastwebnet.it
Mon Nov 6 08:08:15 PST 2006


Dan Nicholson wrote:
> On 11/6/06, Luca <liliana.perossa at fastwebnet.it> wrote:
>> Hi everyone!
>>
>> I have a question about Glibc-2.5 (probably stupid so sorry in advance),
>> but just in case:
>>
>> In glibc-2.5/include/features.h header lines 306,307 says (taken from
>> vanilla tarball):
>>
>> #define    __GLIBC__    2
>> #define    __GLIBC_MINOR__    4
>>
>> but shouldn't lists:
>> #define  __GLIBC__ 2
>> #define __GLIBC_MINOR__ 5
>>
>> since it's a 2.5 release?
>
> Good catch. It's in upstream, too. Is it breaking things?
>
> http://sourceware.org/cgi-bin/cvsweb.cgi/libc/include/features.h.diff?r1=1.43&r2=1.44&cvsroot=glibc
>
>
> I read on the libc-alpha list that glibc-2.5.1 will be coming soon.
>
> http://sourceware.org/ml/libc-alpha/2006-10/msg00021.html
>
> -- 
> Dan
Hi Dan!

Well I did an "objdump -p ld-linux.so.2' , result:
ld-linux.so.2: file format elf32-i386

Program Header:
LOAD off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12
filesz 0x000168dc memsz 0x000168dc flags r-x
LOAD off 0x00016cc0 vaddr 0x00017cc0 paddr 0x00017cc0 align 2**12
filesz 0x00000968 memsz 0x00000a2c flags rw-
DYNAMIC off 0x00016f38 vaddr 0x00017f38 paddr 0x00017f38 align 2**2
filesz 0x000000b0 memsz 0x000000b0 flags rw-
EH_FRAME off 0x00016360 vaddr 0x00016360 paddr 0x00016360 align 2**2
filesz 0x00000124 memsz 0x00000124 flags r--
STACK off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
filesz 0x00000000 memsz 0x00000000 flags rw-
RELRO off 0x00016cc0 vaddr 0x00017cc0 paddr 0x00017cc0 align 2**0
filesz 0x00000340 memsz 0x00000340 flags r--

Dynamic Section:
SONAME ld-linux.so.2
HASH 0xf4
STRTAB 0x488
SYMTAB 0x228
STRSZ 0x194
SYMENT 0x10
PLTGOT 0x17ff4
PLTRELSZ 0x28
PLTREL 0x11
JMPREL 0x790
REL 0x730
RELSZ 0x60
RELENT 0x8
VERDEF 0x668
VERDEFNUM 0x6
VERSYM 0x61c
RELCOUNT 0xb

Version definitions:
1 0x01 0x0ee1b232 ld-linux.so.2
2 0x00 0x0d696910 GLIBC_2.0
3 0x00 0x0d696911 GLIBC_2.1
GLIBC_2.0
4 0x00 0x0d696913 GLIBC_2.3
GLIBC_2.1
5 0x00 0x0d696914 GLIBC_2.4
GLIBC_2.3
6 0x00 0x0963cf85 GLIBC_PRIVATE
GLIBC_2.4

and a "ldd /lib/*.so", result:
libnss_nis-2.5.so:
./libnss_nis-2.5.so: /lib/libnsl.so.1: version `GLIBC_PRIVATE' not found
(required by ./libnss_nis-2.5.so)
        linux-gate.so.1 =>  (0xffffe000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7f8b000)
        libnss_files.so.2 => /lib/libnss_files.so.2 (0xb7f81000)
        libc.so.6 => /lib/libc.so.6 (0xb7e62000)
        /lib/ld-linux.so.2 (0xb7fdb000)
libnss_nisplus-2.5.so:
./libnss_nisplus-2.5.so: /lib/libnsl.so.1: version `GLIBC_PRIVATE' not
found (required by ./libnss_nisplus-2.5.so)

ldd libnsl.so.1
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xb7da3000)
        /lib/ld-linux.so.2 (0xb7efd000)

        linux-gate.so.1 =>  (0xffffe000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7f24000)
        libc.so.6 => /lib/libc.so.6 (0xb7e05000)
        /lib/ld-linux.so.2 (0xb7f74000)

ldd libc.so.6
        /lib/ld-linux.so.2 (0xb7fcd000)
        linux-gate.so.1 =>  (0xffffe000)

and ldd ld-linux.so.2 outputs only a statically linked

(don't know if it's related) and had a segfault when chrooting to
/bin/bash but worked when chrooting to /bin/pdksh (public domain korn
shell). Alexander told me that in pre lfs-4.1 times there were such
errors caused by incompatible versions of glibc library and NSS modules.

Luca



More information about the lfs-support mailing list