Welcome! Log In Create A New Profile

Advanced

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

pgndev
January 20, 2013 02:48PM
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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

pgndev 1243 January 20, 2013 02:48PM

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

pgndev 794 January 20, 2013 04:04PM

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

agentzh 526 January 20, 2013 04:46PM

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

António P. P. Almeida 578 January 20, 2013 05:28PM

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

agentzh 617 January 28, 2013 03:20PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 327
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready