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

Already on GitHub? Sign in to your account

Fails to build on Ubuntu 11.10 gcc 4.6 #3

Closed
pkwarren opened this Issue Dec 6, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

pkwarren commented Dec 6, 2011

I am getting a build failure attempting to build the module on Ubuntu 11.10 (gcc 4.6).

gcc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value
-Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules -I src/mail 
-o objs/addon/nginx-upstream-fair-7171df84c5/ngx_http_upstream_fair_module.o

These are the build errors I'm getting:

ngx_http_upstream_fair_module.c: In function ‘ngx_http_upstream_fair_update_nreq’:
ngx_http_upstream_fair_module.c:649:16: error: variable ‘total_nreq’ set but not used [-Werror=unused-but-set-variable]
ngx_http_upstream_fair_module.c:648:16: error: variable ‘nreq’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

It only appears to occur if '--enable-debug' is not passed as a command-line option when building nginx.

Contributor

pkwarren commented Dec 11, 2011

This is now resolved - thanks for pulling the fix!

@pkwarren pkwarren closed this Dec 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment