SPDY patch >= v55_1.3.11 breaks building nginx 1.3.11 + lua-nginx-module

pgndev pgnet.dev at gmail.com
Sun Jan 20 21:02:37 UTC 2013


from the nginx team on this

    ...

   it is clear from compilation error:
      /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c:444:18:
      error: ‘ngx_connection_t’ has no member named ‘single_connection’

    The "single_connection" flag was removed by the patch. The obvious fix is to
    remove it from line 444 of ngx_http_lua_socket_tcp.c too. But I
can't guarantee
    that this is the only fix required.

    ...

    main difference from the stable versions of nginx. So, some modules can be
    broken until the authors have updated their code.


On Sun, Jan 20, 2013 at 11:45 AM, pgndev <pgnet.dev at gmail.com> wrote:
> SPDY patch >= v55_1.3.11 breaks building nginx 1.3.11 + lua-nginx-module
>
> summary:
>
> (1) nginx 1.3.11 + spdy 54                                 `make -j10` OK
> (2) nginx 1.3.11 + spdy 58_1.3.11                          `make -j10` OK
> (3) nginx 1.3.11 + spdy 54        + lua-nginx-module/git   `make -j10` OK
> (4) nginx 1.3.11 + spdy 58_1.3.11 + lua-nginx-module/git   `make -j10` FAIL
>                                                            `make -j1`  FAIL
> (5) nginx 1.3.11 + spdy 58_1.3.11                          `make -j10` OK
>
>
> details:
>
> cd /usr/local/src/
> rm -rf nginx* patch.spdy*
>
> wget http://nginx.org/download/nginx-1.3.11.tar.gz
> wget http://nginx.org/patches/spdy/patch.spdy-54.txt
> wget http://nginx.org/patches/spdy/patch.spdy-58_1.3.11.txt
>
> tar zxvf nginx-1.3.11.tar.gz
> cp -af nginx-1.3.11 nginx-1.3.11.ORIG
>
> export LUAJIT_LIB="/usr/local/lib64/libluajit-5.1.so"
> export LUAJIT_INC="/usr/local/include/luajit-2.0"
>
>
> (1) nginx 1.3.11 + spdy 54
>
>     cd /usr/local/src/
>     rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11
>     cd /usr/local/src/nginx-1.3.11
>     patch -p0 < ../patch.spdy-54.txt
>     ./configure \
>     --with-debug --user=nobody --group=nobody --prefix=/usr/local/nginx-test
> --with-pcre=/usr/local/src/pcre --with-pcre-jit --with-ipv6 --with-md5-asm
> --with-sha1-asm --with-http_ssl_module --with-cc=/usr/bin/gcc-4.7
> --with-cpp=/usr/bin/cpp-4.7 --with-cc-opt='-O2 -mtune=amdfam10 -fPIC -DPIC
> -D_GNU_SOURCE -fno-strict-aliasing -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4'
> --with-ld-opt='-L/usr/local/ssl/lib64 -Wl,-rpath,/usr/local/ssl/lib64 -lssl
> -lcrypto -ldl -lz'
>     make -j10
>     objs/nginx -v
>         nginx version: nginx/1.3.11
>
>
> (2) nginx 1.3.11 + spdy 58_1.3.11
>
>     cd /usr/local/src/
>     rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11
>     cd /usr/local/src/nginx-1.3.11
>     patch -p1 < ../patch.spdy-58_1.3.11.txt
>     ./configure $( ... CONFIGURE OPTIONS as above ... )
>     make -j10
>     objs/nginx -v
>         nginx version: nginx/1.3.11
>
> (3) nginx 1.3.11 + spdy 54        + lua-nginx-module
>
>     cd /usr/local/src/
>     rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11
>     cd /usr/local/src/nginx-1.3.11
>     patch -p0 < ../patch.spdy-54.txt
>     ./configure $( ... CONFIGURE OPTIONS as above ... ) \
>     --add-module=/usr/local/src/lua-nginx-module
>     make -j10
>     objs/nginx -v
>         nginx version: nginx/1.3.11
>
> (4) nginx 1.3.11 + spdy 58_1.3.11 + lua-nginx-module
>
>     cd /usr/local/src/
>     rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11
>     cd /usr/local/src/nginx-1.3.11
>     patch -p1 < ../patch.spdy-58_1.3.11.txt
>     ./configure $( ... CONFIGURE OPTIONS as above ... ) \
>     --add-module=/usr/local/src/lua-nginx-module
>     make -j10
>         ...
>         /usr/bin/gcc-4.7 -c -fmessage-length=0 -O2 -march=amdfam10
> -mtune=amdfam10 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
> -fasynchronous-unwind-tables -O2 -mtune=amdfam10 -fPIC -DPIC -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -DNDK_SET_VAR  -I src/core -I
> src/event -I src/event/modules -I src/os/unix -I
> /usr/local/include/luajit-2.0 -I /usr/local/src/lua-nginx-module/src/api -I
> /usr/local/src/pcre -I objs -I src/http -I src/http/modules -I src/mail \
>                 -o objs/addon/src/ngx_http_lua_bodyfilterby.o \
>
> /usr/local/src/lua-nginx-module/src/ngx_http_lua_bodyfilterby.c
>         make[1]: *** [objs/addon/src/ngx_http_lua_socket_tcp.o] Error 1
>         make[1]: *** Waiting for unfinished jobs....
>         make[1]: Leaving directory `/usr/local/src/nginx-1.3.11'
>         make: *** [build] Error 2
>
>     make clean
>     ./configure $( ... CONFIGURE OPTIONS as above ... ) \
>     --add-module=/usr/local/src/lua-nginx-module
>     make -j1
>         ...
>         /usr/bin/gcc-4.7 -c -fmessage-length=0 -O2 -march=amdfam10
> -mtune=amdfam10 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
> -fasynchronous-unwind-tables -O2 -mtune=amdfam10 -fPIC -DPIC -D_GNU_SOURCE
> -fno-strict-aliasing -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -DNDK_SET_VAR  -I src/core -I
> src/event -I src/event/modules -I src/os/unix -I
> /usr/local/include/luajit-2.0 -I /usr/local/src/lua-nginx-module/src/api -I
> /usr/local/src/pcre -I objs -I src/http -I src/http/modules -I src/mail \
>                 -o objs/addon/src/ngx_http_lua_socket_tcp.o \
>
> /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c
>         /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c: In
> function ‘ngx_http_lua_socket_tcp_connect’:
>
> /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c:444:18: error:
> ‘ngx_connection_t’ has no member named ‘single_connection’
>         make[1]: *** [objs/addon/src/ngx_http_lua_socket_tcp.o] Error 1
>         make[1]: Leaving directory `/usr/local/src/nginx-1.3.11'
>         make: *** [build] Error 2
>
> (5) nginx 1.3.11 + spdy 58_1.3.11
>
>     cd /usr/local/src/
>     rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11
>     cd /usr/local/src/nginx-1.3.11
>     patch -p1 < ../patch.spdy-58_1.3.11
>     ./configure $( ... CONFIGURE OPTIONS as above ... )
>     make -j10
>     objs/nginx -v
>         nginx version: nginx/1.3.11
>



More information about the nginx-devel mailing list