Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error for gcc v4.3.4 #80

Closed
bigplum opened this issue Jan 29, 2012 · 2 comments
Closed

compilation error for gcc v4.3.4 #80

bigplum opened this issue Jan 29, 2012 · 2 comments

Comments

@bigplum
Copy link

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
./addon/lua-nginx-module-dc37474/src/ngx_http_lua_module.c
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=http://bugs.opensuse.org/ --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 added a commit that referenced this issue Jan 29, 2012
…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
Copy link
Member

agentzh commented Jan 29, 2012

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

https://github.com/chaoslawful/lua-nginx-module/tags

Could you please try it out? Thanks!

@bigplum
Copy link
Author

bigplum commented Jan 30, 2012

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

@bigplum bigplum closed this as completed Jan 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants