<div dir="ltr">SPDY patch >= v55_1.3.11 breaks building nginx 1.3.11 + lua-nginx-module<br><br>summary:<br><br>(1) nginx 1.3.11 + spdy 54 `make -j10` OK<br>(2) nginx 1.3.11 + spdy 58_1.3.11 `make -j10` OK<br>
(3) nginx 1.3.11 + spdy 54 + lua-nginx-module/git `make -j10` OK<br>(4) nginx 1.3.11 + spdy 58_1.3.11 + lua-nginx-module/git `make -j10` FAIL<br> `make -j1` FAIL<br>
(5) nginx 1.3.11 + spdy 58_1.3.11 `make -j10` OK<br><br><br>details:<br><br>cd /usr/local/src/<br>rm -rf nginx* patch.spdy*<br><br>wget <a href="http://nginx.org/download/nginx-1.3.11.tar.gz">http://nginx.org/download/nginx-1.3.11.tar.gz</a><br>
wget <a href="http://nginx.org/patches/spdy/patch.spdy-54.txt">http://nginx.org/patches/spdy/patch.spdy-54.txt</a><br>wget <a href="http://nginx.org/patches/spdy/patch.spdy-58_1.3.11.txt">http://nginx.org/patches/spdy/patch.spdy-58_1.3.11.txt</a><br>
<br>tar zxvf nginx-1.3.11.tar.gz<br>cp -af nginx-1.3.11 nginx-1.3.11.ORIG<br><br>export LUAJIT_LIB="/usr/local/lib64/<a href="http://libluajit-5.1.so">libluajit-5.1.so</a>"<br>export LUAJIT_INC="/usr/local/include/luajit-2.0"<br>
<br><br>(1) nginx 1.3.11 + spdy 54<br><br> cd /usr/local/src/<br> rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11<br> cd /usr/local/src/nginx-1.3.11<br> patch -p0 < ../patch.spdy-54.txt<br>
./configure \<br> --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'<br>
make -j10<br> objs/nginx -v<br> nginx version: nginx/1.3.11<br><br><br>(2) nginx 1.3.11 + spdy 58_1.3.11<br><br> cd /usr/local/src/<br> rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11<br>
cd /usr/local/src/nginx-1.3.11<br> patch -p1 < ../patch.spdy-58_1.3.11.txt<br> ./configure $( ... CONFIGURE OPTIONS as above ... )<br> make -j10<br> objs/nginx -v<br> nginx version: nginx/1.3.11<br>
<br>(3) nginx 1.3.11 + spdy 54 + lua-nginx-module<br><br> cd /usr/local/src/<br> rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11<br> cd /usr/local/src/nginx-1.3.11<br> patch -p0 < ../patch.spdy-54.txt<br>
./configure $( ... CONFIGURE OPTIONS as above ... ) \<br> --add-module=/usr/local/src/lua-nginx-module<br> make -j10<br> objs/nginx -v<br> nginx version: nginx/1.3.11<br><br>(4) nginx 1.3.11 + spdy 58_1.3.11 + lua-nginx-module<br>
<br> cd /usr/local/src/<br> rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11<br> cd /usr/local/src/nginx-1.3.11<br> patch -p1 < ../patch.spdy-58_1.3.11.txt<br> ./configure $( ... CONFIGURE OPTIONS as above ... ) \<br>
--add-module=/usr/local/src/lua-nginx-module<br> make -j10<br> ...<br> /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 \<br>
-o objs/addon/src/ngx_http_lua_bodyfilterby.o \<br> /usr/local/src/lua-nginx-module/src/ngx_http_lua_bodyfilterby.c<br> make[1]: *** [objs/addon/src/ngx_http_lua_socket_tcp.o] Error 1<br>
make[1]: *** Waiting for unfinished jobs....<br> make[1]: Leaving directory `/usr/local/src/nginx-1.3.11'<br> make: *** [build] Error 2<br><br> make clean<br> ./configure $( ... CONFIGURE OPTIONS as above ... ) \<br>
--add-module=/usr/local/src/lua-nginx-module<br> make -j1<br> ...<br> /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 \<br>
-o objs/addon/src/ngx_http_lua_socket_tcp.o \<br> /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c<br> /usr/local/src/lua-nginx-module/src/ngx_http_lua_socket_tcp.c: In function ‘ngx_http_lua_socket_tcp_connect’:<br>
/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’<br> make[1]: *** [objs/addon/src/ngx_http_lua_socket_tcp.o] Error 1<br>
make[1]: Leaving directory `/usr/local/src/nginx-1.3.11'<br> make: *** [build] Error 2<br><br>(5) nginx 1.3.11 + spdy 58_1.3.11<br><br> cd /usr/local/src/<br> rm -rf nginx-1.3.11 && cp -af nginx-1.3.11.ORIG nginx-1.3.11<br>
cd /usr/local/src/nginx-1.3.11<br> patch -p1 < ../patch.spdy-58_1.3.11<br> ./configure $( ... CONFIGURE OPTIONS as above ... )<br> make -j10<br> objs/nginx -v<br> nginx version: nginx/1.3.11<br><br>
</div>