Welcome to Centmin Mod Community
Register Now

Nginx 1.7.9 upgrade not working

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Tracy Perry, Dec 25, 2014.

  1. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    12:29 AM
    1.21.6
    MariaDB 10.3.36
    Running Centmin Mod 1.2.3-eva2000.07, which I believe is the latest on my CentMin v6.6 VPS.
    When trying to do option 4 and upgrade to nginx 1.7.9 this is what I get. I'm assuming this is the latest centMin Mod out and that ther eis something else going on?


    @eva2000 any suggestions?

    Code:
    cc1: warnings being treated as errors
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_conf’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:252: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:252: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:269: error: assignment makes integer from pointer without a cast
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:270: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_handler’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:301: error: invalid type argument of ‘->’ (have ‘int’)
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_conf’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:400: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:400: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:417: error: assignment makes integer from pointer without a cast
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:418: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_handler’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:449: error: invalid type argument of ‘->’ (have ‘int’)
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_scgi_cache_purge_conf’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:513: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:513: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:530: error: assignment makes integer from pointer without a cast
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:531: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_scgi_cache_purge_handler’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:562: error: invalid type argument of ‘->’ (have ‘int’)
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_uwsgi_cache_purge_conf’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:631: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:631: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:648: error: assignment makes integer from pointer without a cast
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:649: error: comparison between pointer and integer
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c: In function ‘ngx_http_uwsgi_cache_purge_handler’:
    ../ngx_cache_purge-2.1/ngx_cache_purge_module.c:680: error: invalid type argument of ‘->’ (have ‘int’)
    make[1]: *** [objs/addon/ngx_cache_purge-2.1/ngx_cache_purge_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.7.9'
    make: *** [build] Error 2
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    4,069
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    8:29 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Check this :

    Code:
    https://community.centminmod.com/threads/nginx-announce-nginx-1-7-9.2028/#post-9651
    :)
     
  3. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    12:29 AM
    1.21.6
    MariaDB 10.3.36
    Problem is that looks like it is applicable to Mod .08 beta01. I'm still running the stable version. It upgrades the 1.7.8 just fine.

    EDIT:
    Renamed the old CentMin directory and pulled it in again and trying with a new setup.

    EDIT 2:
    Small bug in the latest from the github repository. If you do NOT put the current version you want to use in, it fails to pull the nginx in for the default (which is set as 1.7.9). It tries to pull in nginx-.tar.gz.
     
    Last edited: Dec 25, 2014
  4. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    12:29 AM
    1.21.6
    MariaDB 10.3.36
  6. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    does the standard Debian Nginx package even have ngx_cache_purge module by default ?
     
  7. Tracy Perry

    Tracy Perry Active Member

    276
    115
    43
    Aug 24, 2014
    Texas
    Ratings:
    +205
    Local Time:
    12:29 AM
    1.21.6
    MariaDB 10.3.36
    Nope... but that's why it's easier.
    But it does have IPv6 turned on by default. :p

    configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed' --with-ipv6

    I got it to working on my Linux site and Lisa's site. Now I'm debating moving my motorcycle forum off of the Debian setup (which is working great) to CentOS... but leaning towards a "why fix what's not broke" outlook. :smuggrin:
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+