Want more timely Centmin Mod News Updates?
Become a Member

Nginx 1.17.0 and 1.15.12 compile error

Discussion in 'Bug Reports' started by EckyBrazzz, May 22, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    532
    112
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +203
    Local Time:
    3:07 PM
    1.17.x
    10.3.x
    Code (Text):
    MARCH_TARGETNATIVE='n'
    ALERTEMAIL='[email protected]'
    WP_FASTCGI <hidden>
    #####################################################
    # Timestamp Install
    TIME_NGINX='y'
    TIME_PHPCONFIGURE='y'
    TIME_MEMCACHED='y'
    TIME_IMAGEMAGICK='y'
    TIME_REDIS='y'
    #####################################################
    
    
    #####################################################
    # Nginx Dynamic Module Switches
    NGINX_DYNAMICTLS='y'
    NGXDYNAMIC_GEOIPTWOLITE='y'
    NGXDYNAMIC_BROTLI='y'
    NGXDYNAMIC_NGXPAGESPEED='n'     # PageSpeed
    NGXDYNAMIC_HEADERSMORE='y'
    NGXDYNAMIC_SETMISC='y'
    NGXDYNAMIC_ECHO='y'
    NGXDYNAMIC_IMAGEFILTER='y'
    NGXDYNAMIC_VHOSTSTATS='n'
    #####################################################
    
    
    #####################################################
    NGINX_HPACK='y'
    NGINX_GEOIPTWOLITE='y'          # https://github.com/leev/ngx_http_geoip2_module
    NGINX_REALIP='y'                # http://nginx.org/en/docs/http/ngx_http_realip_module.html
    NGINX_LIBBROTLI='y'
    NGINX_MODSECURITY='y'           # https://community.centminmod.com/threads/update-prep-for-modsecurity-v3-0.12453/
    NGINX_MODSECURITY_MAXMIND='y'   # https://community.centminmod.com/threads/update-inc-mod_security-inc-fix-for-geoip2-conflict-in-123-09beta01.17370/
    NGINX_VHOSTSTATS='n'            #
    STRIPNGINX='y'                  # set 'y' to strip nginx binary to reduce size
    NGINX_ZLIBCUSTOM='y'            # Use custom zlib instead of system version
    NGINX_ZLIBVER='1.2.11'          # http://www.zlib.net/ Latest 1.2.11 ZLIB, January 15, 2017
    NGINX_ZERODT='y'                # enable nginx zero downtime on the fly nginx binary upgrades
    NGINX_DYNAMICTLS='n'            # set 'y' and recompile nginx https://blog.cloudflare.com/optimizing-tls-over-tcp-to-reduce-latency/
    #####################################################
    
    AUTOTUNE_CLIENTMAXBODY='y'      # auto tune client_max_body_size option in nginx.conf
    
    #------nginx pagespeed
    NGINX_PAGESPEED='n'
    NGINX_PAGESPEEDGITMASTER='n'
    
    
    #####################################################
    # MariaDB
    MARIADB_INSTALLTENTWO='n'       # MariaDB 10.2 YUM default install if set to yes
    MARIADB_INSTALLTENTHREE='y'     # MariaDB 10.3 YUM default install if set to yes
    MARIADB_INSTALLTENFOUR='n'      # MariaDB 10.4 YUM default install if set to yes
    #####################################################
    
    
    #####################################################
    # PHP
    PHP_PGO='y'
    STRIPPHP='y'                    # set 'y' to strip PHP binary to reduce size
    PHP_INSTALL='y'                 # Install PHP /w Fast Process Manager
    PHP_MEMCACHE='y'                # memcache PHP extension
    PHP_PATCH='y'                   # Apply PHP patches if they exist
    PHP_TUNING='y'                  # initial php-fpm install auto tuning
    PHP_BROTLI='y'                  # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y'                  # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y'                     # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y'                    # zstd php extension https://github.com/kjdev/php-ext-zstd
    PHP_CUSTOMSSL='y'               # compile php-fpm against openssl 1.0.2+ or libressl 2.3+ whichever nginx uses
    PHPFINFO='y'                    # Disable or Enable PHP File Info extension
    PHPPCNTL='y'                    # Disable or Enable PHP Process Control extension
    PHPINTL='y'                     # Disable or Enable PHP intl extension
    PHPRECODE=n                     # Disable or Enable PHP Recode extension
    PHPIMAGICK='y'                  # Disable or Enable PHP ImagicK extension
    PHPMAKETEST='y'                 # set to y to enable make test after PHP make for diagnostic purposes
    AUTODETECPHP_OVERRIDE='y'       # when enabled, php updates will always reinstall all php extensions even if minor php version
    PHPIONCUBE='y'                  #
    MEMCACHED_INSTALL='y'           # Install Memcached
    PHPREDIS='y'                    # redis PHP extension install
    AUTODETECPHP_OVERRIDE='n'       # skip recompiles for minor versions set to'y' when compile to majoir version updates
    #####################################################
    
    #####################################################
    NGINX_UPDATEMAINTENANCE=y
    PHP_UPDATEMAINTENANCE=y
    MARIADB_UPDATEMAINTENANCE=y
    #####################################################
    
    #####################################################
    # Open SSL
    DISABLE_TLSONEZERO_PROTOCOL='y' # disable TLS 1.0 protocol by default industry is moving to deprecate for security
    NOSOURCEOPENSSL='n'             # set to 'y' to disable OpenSSL source compile for system default YUM package setup
    OPENSSL_TLSONETHREE='y'         # whether OpenSSL 1.1.1 builds enable TLSv1.3
    #####################################################
    
    
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'                   # dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
    
    WP_AUTOPTIMIZE_GZIP='y'         # https://community.centminmod.com/threads/15314/
    CUSTOM_CURLRPM='y'
    
    #####################################################
    # GCC Compilers Dev Tools
    GCCINTEL_PHP='y'                # enable PHP-FPM GCC compiler with Intel cpu optimizations
    DEVTOOLSET_PHP='y'              # use devtoolset GCC for GCCINTEL_PHP='y'
    NGINX_DEVTOOLSETGCC='y'
    #####################################################
    


    Noticed on nginx: download that version 1.17.0 was availble and wanted to give it a try. Also noticed that CMM was aware of this so compiled nginx with 1.17.0 but gave a error
    Code (Text):
    gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
    gcc: error: unrecognized command line option ‘-fcode-hoisting’
    gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
    gcc: error: unrecognized command line option ‘-fcode-hoisting’
    make[1]: *** [objs/src/core/nginx.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [objs/src/core/ngx_palloc.o] Error 1
    gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=0’
    gcc: error: unrecognized command line option ‘-fcode-hoisting’
    make[1]: *** [objs/src/core/ngx_log.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.17.0'
    make: *** [build] Error 2
    


    The exact same error appeared when I re-compiled nginx with the 1.15.12 version. So the message make[1]: Leaving directory `/svr-setup/nginx-1.17.0' when compiling version 1.15.12 doesn't make sense.

    I don't know if I have anything conflicting inside my custom config file. Just noticed the error now, I did some re-compiles of ngixn before, but the lightbulp went on when I checked the version of nginx with nginx -V.

    Also, with a system reboot nginx won't start automaticly as before. I always have to give it a manual startup
     
    Last edited: May 22, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,188
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,097
    Local Time:
    4:07 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    I did do a nginx 1.17.0 update for 123.09beta01 https://community.centminmod.com/threads/updates-for-nginx-1-17-0-in-123-09beta01.17536/ but it isn't related to anything that you experienced

    To troubleshoot, you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log
     
  3. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,188
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,097
    Local Time:
    4:07 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you can also try commenting out these
    Code (Text):
    TIME_NGINX='y'
    TIME_PHPCONFIGURE='y'
    TIME_MEMCACHED='y'
    TIME_IMAGEMAGICK='y'
    TIME_REDIS='y'
    
     
  4. EckyBrazzz

    EckyBrazzz Active Member

    532
    112
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +203
    Local Time:
    3:07 PM
    1.17.x
    10.3.x
    @eva2000 saved my day, debugging time and some server setup.. :)
    Code (Text):
    #TIME_NGINX='y'
    #TIME_PHPCONFIGURE='y'
    #TIME_MEMCACHED='y'
    #TIME_IMAGEMAGICK='y'
    #TIME_REDIS='y'
    

     
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,188
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,097
    Local Time:
    4:07 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks like i need to re-test those optional non-default variables later on :)
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    532
    112
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +203
    Local Time:
    3:07 PM
    1.17.x
    10.3.x
    Only not so very happy with the result of https://www.webpagetest.org ... Guess I have to drop option 4, warm up did not resolve my issue.
     
  7. eva2000

    eva2000 Administrator Staff Member

    41,080
    9,188
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,097
    Local Time:
    4:07 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  8. EckyBrazzz

    EckyBrazzz Active Member

    532
    112
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +203
    Local Time:
    3:07 PM
    1.17.x
    10.3.x
    Without any changes to the setting, before option 4 I had about 750-800ms and it started to slowly grow. First I mention in a Conversion to good new, but was a little to happy with the first results. Guess I gona give redis (not using ngx_pagespeed anymore) a try, and if that won't improve I will continue with option 1. Just checked some old results and noticed the increase of the loading time. http://nginx.org/en/CHANGES didn`t mention anything specail