You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2018/11/28 11:28:56 UTC

[Bug 61963] mod_deflate: Links wrong libz.so

https://bz.apache.org/bugzilla/show_bug.cgi?id=61963

--- Comment #3 from Bernard Spil <br...@freebsd.org> ---
Long delay, sorry. Spotted this again and ran into my own PR when looking for
an answer.
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Apache 2.4.37 

$ objdump -p /usr/local/libexec/apache2/mod_deflate.so                         
                                                                               
                          [26/1540]
/usr/local/libexec/apache2/mod_deflate.so:     file format elf64-x86-64

Program Header:
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr
0x0000000000000000 align 2**21
         filesz 0x0000000000006f64 memsz 0x0000000000006f64 flags r-x
    LOAD off    0x0000000000007c08 vaddr 0x0000000000207c08 paddr
0x0000000000207c08 align 2**21
         filesz 0x00000000000005e8 memsz 0x00000000000005f8 flags rw-
 DYNAMIC off    0x0000000000007d90 vaddr 0x0000000000207d90 paddr
0x0000000000207d90 align 2**3
         filesz 0x00000000000001f0 memsz 0x00000000000001f0 flags rw-
    NOTE off    0x00000000000001c8 vaddr 0x00000000000001c8 paddr
0x00000000000001c8 align 2**2
         filesz 0x0000000000000024 memsz 0x0000000000000024 flags r--
EH_FRAME off    0x0000000000006a24 vaddr 0x0000000000006a24 paddr
0x0000000000006a24 align 2**2
         filesz 0x00000000000000bc memsz 0x00000000000000bc flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr
0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x0000000000007c08 vaddr 0x0000000000207c08 paddr
0x0000000000207c08 align 2**0
         filesz 0x00000000000003f8 memsz 0x00000000000003f8 flags r--

Dynamic Section:
  NEEDED               libz.so.1
  NEEDED               libpthread.so.0
  NEEDED               libc.so.6
  SONAME               mod_deflate.so
  INIT                 0x0000000000001550
  FINI                 0x0000000000005c28
  INIT_ARRAY           0x0000000000207c08
  INIT_ARRAYSZ         0x0000000000000008
  FINI_ARRAY           0x0000000000207c10
  FINI_ARRAYSZ         0x0000000000000008
  GNU_HASH             0x00000000000001f0
  STRTAB               0x0000000000000818
  SYMTAB               0x0000000000000230
  STRSZ                0x000000000000041e
  SYMENT               0x0000000000000018
  PLTGOT               0x0000000000208000
  PLTRELSZ             0x0000000000000420
  PLTREL               0x0000000000000007
  JMPREL               0x0000000000001130
  RELA                 0x0000000000000cf8
  RELASZ               0x0000000000000438
  RELAENT              0x0000000000000018
  VERNEED              0x0000000000000cb8
  VERNEEDNUM           0x0000000000000001
  VERSYM               0x0000000000000c36
  RELACOUNT            0x0000000000000020

Version References:
  required from libc.so.6:
    0x0d696913 0x00 04 GLIBC_2.3
    0x06969194 0x00 03 GLIBC_2.14
    0x09691a75 0x00 02 GLIBC_2.2.5


$ ldd -v /usr/local/libexec/apache2/mod_deflate.so
        linux-vdso.so.1 =>  (0x00007ffe035f4000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f55c7617000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f55c73fb000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f55c702e000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f55c7a36000)

        Version information:
        /usr/local/libexec/apache2/mod_deflate.so:
                libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libz.so.1:
                libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libpthread.so.0:
                ld-linux-x86-64.so.2 (GLIBC_2.2.5) =>
/lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) =>
/lib64/ld-linux-x86-64.so.2
                libc.so.6 (GLIBC_2.14) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
                libc.so.6 (GLIBC_PRIVATE) => /lib64/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
        /lib64/libc.so.6:
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) =>
/lib64/ld-linux-x86-64.so.2


$ /usr/local/build-1/libtool --mode=link gcc -std=gnu99  -g -O2 -pthread -o
mod_deflate.la -rpath /usr/local/libexec/apache2 -module -avoid-version 
mod_deflate.lo -L/usr/local/lib -lz
libtool: link: rm -fr  .libs/mod_deflate.a .libs/mod_deflate.la
.libs/mod_deflate.lai .libs/mod_deflate.so
libtool: link: gcc -shared  -fPIC -DPIC  .libs/mod_deflate.o   -L/usr/local/lib
-lz  -g -O2 -pthread   -pthread -Wl,-soname -Wl,mod_deflate.so -o
.libs/mod_deflate.so
libtool: link: ar cru .libs/mod_deflate.a  mod_deflate.o
libtool: link: ranlib .libs/mod_deflate.a
libtool: link: ( cd ".libs" && rm -f "mod_deflate.la" && ln -s
"../mod_deflate.la" "mod_deflate.la" )

No change to lld or objdump output for .libs/mod_deflate.so

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org