won't compile on nginx-1.9.0
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)
-
-
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.
-
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 ?
-
Facing the same issue with 1.9.3. Can anyone suggest a workaround for this issue please?
-
- changed status to open
-
-
assigned issue to
-
assigned issue to
-
Issue
#17was marked as a duplicate of this issue. -
I've fixed the problem in https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/commits/51efa124a4330e194ef651e597a6038a6f7979dc. Nginx 1.9+ changed the definition of the rr_peer struct.
Please confirm that it is working for you, so I can close the ticket.
-
@Femaref Thank you so much for fixing this. I confirm that this has been fixed. Please feel free to close this.
-
- changed status to resolved
fixed
-
Thanks Femaref and Lazy DogTown! VERY late reply, but I just got around to compiling it with 1.9.7, and everything works perfect!
- Log in to comment
edit: wrong button
yup, same issue