Join the community today
Register Now

Nginx [PATCH] Fix error when building a Nginx source RPM with custom Zlib - Nginx 1.13.7

Discussion in 'Nginx and PHP-FPM news & discussions' started by buik, Dec 12, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    48,881
    11,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,421
    Local Time:
    5:12 PM
    Nginx 1.21.x
    MariaDB 10.x
    Use ldd on nginx binary

     
  2. Revenge

    Revenge Active Member

    467
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    8:12 AM
    1.9.x
    10.1.x
    Against the compiled nginx binary:

    Code (Text):
    ldd /opt/sbin/nginx
            linux-vdso.so.1 =>  (0x00007ffe9ea75000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007f7072046000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7071e2a000)
            libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f7071bf3000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f7071830000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f707224a000)
            libfreebl3.so => /lib64/libfreebl3.so (0x00007f707162d000)


    Against the Nginx installed with Yum:

    Code (Text):
    ldd /usr/sbin/nginx
            linux-vdso.so.1 =>  (0x00007ffdb31b9000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007fe129bcb000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe1299af000)
            libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fe129778000)
            libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fe129516000)
            libssl.so.10 => /lib64/libssl.so.10 (0x00007fe1292a4000)
            libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fe128e43000)
            libz.so.1 => /lib64/libz.so.1 (0x00007fe128c2d000)
            libc.so.6 => /lib64/libc.so.6 (0x00007fe12886a000)
            /lib64/ld-linux-x86-64.so.2 (0x00007fe12a122000)
            libfreebl3.so => /lib64/libfreebl3.so (0x00007fe128667000)
            libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fe12841a000)
            libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fe128132000)
            libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fe127f2e000)
            libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fe127cfb000)
            libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fe127aed000)
            libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fe1278e9000)
            libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fe1276cf000)
            libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fe1274a8000)
     
  3. eva2000

    eva2000 Administrator Staff Member

    48,881
    11,187
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,421
    Local Time:
    5:12 PM
    Nginx 1.21.x
    MariaDB 10.x
    Yeah IIRC now, you won't see it as Cloudflare zlib is statically compiled into Nginx binary now. You can easily verify if Cloudflare zlib is working with Nginx through benchmarking/load testing Nginx via wrk, siege etc testing compressed HTTP(S) requests with header Accept-Encoding: gzip like I did at 123.09beta01 Updated Nginx zlib routine with optional Cloudflare zlib support. Do a before and after test to see the difference.
     
  4. Revenge

    Revenge Active Member

    467
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    8:12 AM
    1.9.x
    10.1.x
    Ya, i will do a test later today. But its what i thought, its built in nginx and because of that does not show in ldd.