Glibc-2.5 question

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


Luca wrote:
> 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
>
>   
Forgot to paste:
objdump -p libnsl.so.1

libnsl.so.1:     file format elf32-i386

Program Header:
    PHDR off    0x00000034 vaddr 0x00000034 paddr 0x00000034 align 2**2
         filesz 0x00000100 memsz 0x00000100 flags r-x
  INTERP off    0x000102a0 vaddr 0x000102a0 paddr 0x000102a0 align 2**0
         filesz 0x00000013 memsz 0x00000013 flags r--
    LOAD off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**12
         filesz 0x00010df8 memsz 0x00010df8 flags r-x
    LOAD off    0x00010ec0 vaddr 0x00011ec0 paddr 0x00011ec0 align 2**12
         filesz 0x000002d4 memsz 0x00002868 flags rw-
 DYNAMIC off    0x00010ed4 vaddr 0x00011ed4 paddr 0x00011ed4 align 2**2
         filesz 0x000000e0 memsz 0x000000e0 flags rw-
    NOTE off    0x00000134 vaddr 0x00000134 paddr 0x00000134 align 2**2
         filesz 0x00000020 memsz 0x00000020 flags r--
   STACK off    0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
         filesz 0x00000000 memsz 0x00000000 flags rw-
   RELRO off    0x00010ec0 vaddr 0x00011ec0 paddr 0x00011ec0 align 2**0
         filesz 0x00000140 memsz 0x00000140 flags r--

Dynamic Section:
  NEEDED      libc.so.6
  SONAME      libnsl.so.1
  INIT        0x2a90
  FINI        0xee30
  HASH        0x102b8
  0x6ffffef5  0x154
  STRTAB      0x1794
  SYMTAB      0x7e4
  STRSZ       0xc48
  SYMENT      0x10
  PLTGOT      0x11ff4
  PLTRELSZ    0x318
  PLTREL      0x11
  JMPREL      0x2778
  REL         0x26e8
  RELSZ       0x90
  RELENT      0x8
  VERDEF      0x25d4
  VERDEFNUM   0x5
  VERNEED     0x2678
  VERNEEDNUM  0x1
  VERSYM      0x23dc
  RELCOUNT    0x2

Version definitions:
1 0x01 0x09a77941 libnsl.so.1
2 0x00 0x0d696910 GLIBC_2.0
3 0x00 0x0d696911 GLIBC_2.1
        GLIBC_2.0
4 0x00 0x0d696912 GLIBC_2.2
        GLIBC_2.1
5 0x00 0x0963cf85 GLIBC_PRIVATE
        GLIBC_2.2

Version References:
  required from libc.so.6:
    0x09691f73 0x00 11 GLIBC_2.1.3
    0x09691a73 0x00 10 GLIBC_2.2.3
    0x0d696913 0x00 09 GLIBC_2.3
    0x0d696912 0x00 08 GLIBC_2.2
    0x0d696911 0x00 07 GLIBC_2.1
    0x0d696910 0x00 06 GLIBC_2.0




More information about the lfs-support mailing list