v1.5.9 compiled size is 8x larger than v1.5.8

Jim Popovitch jimpop at gmail.com
Wed Jan 22 20:42:52 UTC 2014


On Wed, Jan 22, 2014 at 3:23 PM, Ruslan Ermilov <ru at nginx.com> wrote:
> Could it be that you lost some shared library that nginx uses?
>
> For the starters, compare the outputs of "file /usr/sbin/nginx"
> (are both binaries are stripped) and "ldd /usr/sbin/nginx" (do
> they show the same shared libs)?

Hmmm, the 2 environments (Production and Testbed) are identical,
Debian 7.3 x86_64.

Production (v1.5.8):
~$ file /usr/sbin/nginx
/usr/sbin/nginx: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.26,
BuildID[sha1]=0xe63406c0f961166e7b17abd320290fb2c8e976ee, stripped
~$ ldd /usr/sbin/nginx
linux-vdso.so.1 =>  (0x00007fffc67ff000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9e6d744000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f9e6d50d000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e6d2cf000)
libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007f9e6d06f000)
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007f9e6cc8b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9e6ca86000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f9e6c86f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9e6c4e5000)
/lib64/ld-linux-x86-64.so.2 (0x00007f9e6d965000)


Testbed (v1.5.9)
~$ file /usr/sbin/nginx
/usr/sbin/nginx: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.26,
BuildID[sha1]=0x38b6c11381d456bce11faaa5c5178f68886816a5, not stripped
~$ ldd /usr/sbin/nginx
linux-vdso.so.1 =>  (0x00007fff24d4a000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb3a7424000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fb3a71ed000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fb3a6faf000)
libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007fb3a6d4f000)
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007fb3a696b000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fb3a6766000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fb3a654f000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb3a61c5000)
/lib64/ld-linux-x86-64.so.2 (0x00007fb3a7645000)

-Jim P.



More information about the nginx-devel mailing list