Discussion:
[Bug 61963] New: mod_deflate: Links wrong libz.so
b***@apache.org
2018-01-03 20:06:31 UTC
Permalink
https://bz.apache.org/bugzilla/show_bug.cgi?id=61963

Bug ID: 61963
Summary: mod_deflate: Links wrong libz.so
Product: Apache httpd-2
Version: 2.4.29
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Build
Assignee: ***@httpd.apache.org
Reporter: ***@freebsd.org
Target Milestone: ---

Created attachment 35646
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35646&action=edit
config.log

System CentOS 7 x64
zlib 1.2.11 installed in /usr/local
apr 1.6.1 and apr-util 1.6.3 installed in /usr/local

configured with --with-z=/usr/local
$ ./configure --prefix=/usr/local --with-z=/usr/local --disable-v4-mapped --without-lua --with-ssl=/usr/local --with-mpm=event --with-nghttp2=/usr/local --with
-port=80 --with-sslport=443 --with-expat=/usr/local --with-iconv=/usr --enable-http --with-pcre=/usr/local --with-apr=/usr/local/bin/apr-1-config --with-apr-util
=/usr/local/bin/apu-1-config --enable-so --enable-mods-shared=all --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/ --build=x86_64-unknown-
linux-gnu --enable-layout=FreeBSD --disable-access_compat --disable-authn_dbd --disable-authn_dbm --disable-authn_socache --disable-authnz_fcgi --disable-authnz_
ldap --disable-authz_dbd --disable-authz_dbm --disable-bucketeer --disable-buffer --disable-case_filter --disable-case_filter_in --disable-cern_meta --disable-cg
i --disable-cgid --disable-charset_lite --disable-data --disable-dialup --disable-dumpio --disable-echo --disable-example_hooks --disable-example_ipc --disable-e
xt_filter --disable-file_cache --disable-heartbeat --disable-ident --disable-imagemap --disable-ldap --disable-log_debug --disable-log_forensic --disable-logio -
-disable-lua --disable-optional_fn_export --disable-optional_fn_import --disable-optional_hook_export --disable-optional_hook_import --disable-proxy_ajp --disabl
e-proxy_fdpass --disable-proxy_ftp --disable-proxy_html --disable-proxy_scgi --disable-reflector --disable-request --disable-sed --disable-session --disable-sess
ion_cookie --disable-session_crypto --disable-session_dbd --disable-slotmem_plain --disable-socache_dbm --disable-socache_dc --disable-speling --disable-substitu
te --disable-suexec --disable-unique_id --disable-userdir --disable-usertrack --disable-version --disable-xml2enc --enable-actions --enable-alias --enable-allowm
ethods --enable-asis --enable-authn_anon --enable-authn_core --enable-authn_file --enable-authn_socache --enable-authz_core --enable-authz_groupfile --enable-aut
hz_host --enable-authz_owner --enable-authz_user --enable-auth_basic --enable-auth_digest --enable-auth_form --enable-autoindex --enable-cache --enable-cache_dis
k --enable-cache_socache --enable-cgid --enable-dav --enable-dav_fs --enable-dav_lock --enable-dbd --enable-deflate --enable-dir --enable-env --enable-expires --
enable-filter --enable-headers --enable-heartmonitor --enable-http2 --enable-include --enable-info --enable-lbmethod_bybusyness --enable-lbmethod_byrequests --en
able-lbmethod_bytraffic --enable-lbmethod_heartbeat --enable-macro --enable-mime --enable-mime_magic --enable-negotiation --enable-proxy --enable-proxy_balancer
--enable-proxy_connect --enable-proxy_express --enable-proxy_fcgi --enable-proxy_hcheck --enable-proxy_http --enable-proxy_http2 --enable-proxy_wstunnel --enable
-ratelimit --enable-remoteip --enable-reqtimeout --enable-rewrite --enable-setenvif --enable-slotmem_shm --enable-socache_memcache --enable-socache_shmcb --enabl
e-ssl --enable-status --enable-vhost_alias --enable-watchdog
from config.log
checking whether to enable mod_deflate... checking dependencies^M
setting MOD_INCLUDES to "-I/usr/local/include"^M
adding "-L/usr/local/lib" to LDFLAGS^M
setting ap_zlib_ldflags to "-L/usr/local/lib"^M
setting LIBS to "-lz"^M
checking for zlib library... found^M
setting MOD_DEFLATE_LDADD to "-L/usr/local/lib -lz"^M
nulling LIBS^M
checking whether to enable mod_deflate... shared^M
from the build output
make[3]: Entering directory `/home/build/src/httpd-2.4.29/modules/filters'^M
Building shared: mod_ratelimit.la mod_reqtimeout.la mod_include.la mod_filter.la mod_deflate.la^M
/usr/local/build-1/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/local/include -I. -I/home/build/src/httpd-2.4.29/os/unix -I/home/build/src/httpd-2.4.29/include -I/usr/local/include/apr-1 -I/usr/local/include -I/home/build/src/httpd-2.4.29/modules/aaa -I/home/build/src/httpd-2.4.29/modules/cache -I/home/build/src/httpd-2.4.29/modules/core -I/home/build/src/httpd-2.4.29/modules/database -I/home/build/src/httpd-2.4.29/modules/filters -I/home/build/src/httpd-2.4.29/modules/ldap -I/home/build/src/httpd-2.4.29/modules/loggers -I/home/build/src/httpd-2.4.29/modules/lua -I/home/build/src/httpd-2.4.29/modules/proxy -I/home/build/src/httpd-2.4.29/modules/session -I/home/build/src/httpd-2.4.29/modules/ssl -I/home/build/src/httpd-2.4.29/modules/test -I/home/build/src/httpd-2.4.29/server -I/home/build/src/httpd-2.4.29/modules/arch/unix -I/home/build/src/httpd-2.4.29/modules/dav/main -I/home/build/src/httpd-2.4.29/modules/generators -I/home/build/src/httpd-2.4.29/modules/mappers -prefer-pic -c mod_deflate.c && touch mod_deflate.slo^M
/usr/local/build-1/libtool --silent --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^M
/usr/local/build-1/libtool --silent --mode=install install mod_deflate.la /home/build/src/httpd-2.4.29/stage/usr/local/libexec/apache2/^M
Resulting shared lib (after executing libtool --finish
/usr/local/libexec/apache2)
$ ldd /usr/local/libexec/apache2/mod_deflate.so
linux-vdso.so.1 => (0x00007ffc507fe000)
libz.so.1 => /lib64/libz.so.1 (0x00007f4ff161a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f4ff13fe000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4ff103c000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4ff1a45000)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org
b***@apache.org
2018-01-03 20:07:26 UTC
Permalink
https://bz.apache.org/bugzilla/show_bug.cgi?id=61963

--- Comment #1 from Bernard Spil <***@freebsd.org> ---
Created attachment 35647
--> https://bz.apache.org/bugzilla/attachment.cgi?id=35647&action=edit
output of build
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org
b***@apache.org
2018-01-04 10:45:37 UTC
Permalink
https://bz.apache.org/bugzilla/show_bug.cgi?id=61963

Rainer Jung <***@kippdata.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
OS| |All

--- Comment #2 from Rainer Jung <***@kippdata.de> ---
What is the output of

objdump -p /usr/local/libexec/apache2/mod_deflate.so

and of

ldd -v /usr/local/libexec/apache2/mod_deflate.so

What is the output of

cd /home/build/src/httpd-2.4.29/modules/filters
/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

(the original libtool link command without the --silent flag).

Does the output of the above two command "objdump -p and ldd -v) differ for the
newl created mod_deflate.so (lacated either in the currentdorectory or the
.libs sub directory).

Regards,

Rainer
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org
b***@apache.org
2018-11-28 11:28:56 UTC
Permalink
https://bz.apache.org/bugzilla/show_bug.cgi?id=61963

--- Comment #3 from Bernard Spil <***@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-***@httpd.apache.org
For additional commands, e-mail: bugs-***@httpd.apache.org
Loading...