won't compile on nginx-1.9.0

Issue #18 resolved
Former user created an issue

I'm getting:

    /tmp/nginx-goodies-nginx-sticky-module-ng-1e96371de59f/ngx_http_sticky_module.c

/root/nginx-goodies-nginx-sticky-module-ng-1e96371de59f/ngx_http_sticky_module.c: In function ‘ngx_http_get_sticky_peer’: /tmp/nginx-goodies-nginx-sticky-module-ng-1e96371de59f/ngx_http_sticky_module.c:340:21: error: assignment makes pointer from integer without a cast [-Werror] iphp->rrp.current = iphp->selected_peer; ^ cc1: all warnings being treated as errors make[1]: [objs/addon/nginx-goodies-nginx-sticky-module-ng-1e96371de59f/ngx_http_sticky_module.o] Error 1 make[1]: Leaving directory `/tmp/nginx-1.9.0' make: [build] Error 2

My configure options are: ./configure \ --user=nginx \ --group=nginx \ --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --pid-path=/var/run/nginx.pid \ --lock-path=/var/run/nginx.lock \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --with-http_gzip_static_module \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-pcre \ --with-file-aio \ --with-http_realip_module \ --with-http_geoip_module \ --with-google_perftools_module \ --without-http_scgi_module \ --without-http_uwsgi_module \ --without-http_fastcgi_module \ --add-module=/root/nginx-goodies-nginx-sticky-module-ng-1e96371de59f \ --with-http_spdy_module

This is on CentOS Linux release 7.1.1503

Comments (11)

  1. Greg Green

    edit: wrong button

    yup, same issue

    /usr/src/nginx-sticky-module-ng/ngx_http_sticky_module.c
    cc1: warnings being treated as errors
    /usr/src/nginx-sticky-module-ng/ngx_http_sticky_module.c: In function ngx_http_get_sticky_peer:
    /usr/src/nginx-sticky-module-ng/ngx_http_sticky_module.c:340: error: assignment makes pointer from integer without a cast
    make[1]: *** [objs/addon/nginx-sticky-module-ng/ngx_http_sticky_module.o] Error 1
    make[1]: Leaving directory `/usr/src/nginx-1.9.0'
    make: *** [build] Error 2
    
    ./configure --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --sbin-path=/usr/sbin/nginx --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --with-stream --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_ssl_module --with-pcre-jit --with-http_spdy_module --with-http_ssl_module --with-file-aio --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_flv_module --with-http_geoip_module --with-http_gzip_static_module --with-http_stub_status_module --with-openssl=/usr/src/openssl-1.0.2a --add-module=/usr/src/ngx_http_accounting_module --add-module=/usr/src/nginx-sticky-module-ng --add-module=/usr/src/naxsi/naxsi_src --add-module=/usr/src/testcookie-nginx-module --add-module=/usr/src/ngx_pagespeed-release-${NPS_VERSION}-beta
    
  2. nickwhite

    Any progress made on this issue? I'd really like to test this out on Nginx 1.9.0, but currently stuck on 1.8 due to nginx-sticky-module-ng not compiling with it. Any workarounds to get it to compile? Thanks.

  3. vikas027

    I too faced this issue on CentOS 6.6 while compiling v1.9.3, no issues with v1.8.0 though. Anyone found a solution ?

  4. vikas027

    @Femaref Thank you so much for fixing this. I confirm that this has been fixed. Please feel free to close this.

  5. nickwhite

    Thanks Femaref and Lazy DogTown! VERY late reply, but I just got around to compiling it with 1.9.7, and everything works perfect!

  6. Log in to comment