compilation error for gcc v4.3.4 #80

bigplum opened this Issue Jan 29, 2012 · 2 comments


None yet

2 participants

bigplum commented Jan 29, 2012

make -f objs/Makefile
make[1]: Entering directory `/root/nppkg/nginx_src/nginx-1.1.13'
gcc -c -pipe -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g -DNDK_SET_VAR -I src/core -I src/event -I src/event/modules -I src/os/unix -I ./addon/ngx_devel_kit-833abe6/objs -I objs/addon/ndk -I ./addon/nginx-http-nphase-module/src -I /usr/local/include/luajit-2.0 -I objs -I src/http -I src/http/modules -I ./addon/ngx_devel_kit-833abe6/src -I src/mail
-o objs/addon/src/ngx_http_lua_module.o
cc1: warnings being treated as errors
./addon/lua-nginx-module-dc37474/src/ngx_http_lua_module.c: In function ‘ngx_http_lua_init’:
./addon/lua-nginx-module-dc37474/src/ngx_http_lua_module.c:251: error: call to function ‘ngx_http_lua_header_filter_init’ without a real prototype
./addon/lua-nginx-module-dc37474/src/ngx_http_lua_headerfilterby.h:13: note: ‘ngx_http_lua_header_filter_init’ was declared here

hadoop3:~/nppkg/nginx_src/nginx-1.1.13 # gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl= --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973](SUSE Linux)

@agentzh agentzh added a commit that referenced this issue Jan 29, 2012
@agentzh agentzh bugfix: ngx_http_lua_header_filter_init was called with an argument w…
…hich actually accepts none. this could cause compilation errors at least with gcc 4.3.4 as reported in github issue #80. thanks bigplum (Simon).
agentzh commented Jan 29, 2012

Thank you very much for the bug report. I've fixed it in the v0.4.1rc4 release:

Could you please try it out? Thanks!

bigplum commented Jan 30, 2012

Well done, I've test it, It's ok now.

@bigplum bigplum closed this Jan 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment