nginx 1.9 --with-stream module conflict ?

Issue #17 closed
GEORGE LIU created an issue

Trying to compile nginx-sticky-module-ng with Nginx 1.9.0 with new --with-stream option gives an error https://community.centminmod.com/threads/nginx-1-9-0-released.2842/#post-13074

nux/x64/include -I ../ngx_pagespeed-release-1.9.32.3-beta/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I ../pcre-8.36 -I ../openssl-1.0.2a/.openssl/include -I objs -I src/http -I src/http/modules -I src/mail -I src/stream \
                -o objs/addon/nginx-sticky-module-1.2.5/ngx_http_sticky_module.o \
                ../nginx-sticky-module-1.2.5/ngx_http_sticky_module.c
cc1: warnings being treated as errors
../nginx-sticky-module-1.2.5/ngx_http_sticky_module.c: In function ngx_http_get_sticky_peer’:
../nginx-sticky-module-1.2.5/ngx_http_sticky_module.c:340: error: assignment makes pointer from integer without a cast
make[1]: *** [objs/addon/nginx-sticky-module-1.2.5/ngx_http_sticky_module.o] Error 1
make[1]: Leaving directory `/svr-setup/nginx-1.9.0'
make: *** [install] Error 2

if I do not compile --with-stream http://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream there's no problems or errors

Comments (5)

  1. Oscar Carballal Prego

    Facing this issue as well on Ubuntu 14.04 with nginx 1.9.3

    make[1]: Entering directory `/tmp/nginx-1.9.3'
    cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I /tmp/zlib-1.2.8 -I objs -I src/http -I src/http/modules -I src/mail -I src/stream \
                    -o objs/addon/nginx-sticky-module-ng/ngx_http_sticky_module.o \
                    /tmp/nginx-sticky-module-ng/ngx_http_sticky_module.c
    /tmp/nginx-sticky-module-ng/ngx_http_sticky_module.c: In function 'ngx_http_get_sticky_peer':
    /tmp/nginx-sticky-module-ng/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-sticky-module-ng/ngx_http_sticky_module.o] Error 1
    make[1]: Leaving directory `/tmp/nginx-1.9.3'
    make: *** [build] Error 2
    
  2. Log in to comment