masterzen/nginx-upload-progress-module — Issue #18: Compilation error with nginx-1.0.10 and c7c663f on Ubuntu Lucid
Author: chrisdolby
Created: 2011-11-26 21:08:31+00:00
State: open

Hi there,

I've just tried to compile nginx with this module on Ubuntu (10.04.3) and I've received these errors when running a make:

-o objs/addon/masterzen-nginx-upload-progress-module-c7c663f/ngx_http_uploadprogress_module.o \
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c: In function ‘ngx_http_uploadprogress_event_handler’:
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c:452:50: error: variable ‘c’ set but not used [-Werror=unused-but-set-variable]
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c: In function ‘ngx_http_uploadprogress_cleanup’:
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c:1010:38: error: variable ‘ctx’ set but not used [-Werror=unused-but-set-variable]
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c: In function ‘ngx_http_uploadprogress_create_loc_conf’:
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c:1243:43: error: variable ‘t’ set but not used [-Werror=unused-but-set-variable]
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c: In function ‘ngx_http_uploadprogress_init_variables_and_templates’:
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c:1317:43: error: variable ‘n’ set but not used [-Werror=unused-but-set-variable]
/tmp/nginx-1.0.10/contrib/masterzen-nginx-upload-progress-module-c7c663f//ngx_http_uploadprogress_module.c:1315:43: error: variable ‘t’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[1]: *** [objs/addon/masterzen-nginx-upload-progress-module-c7c663f/ngx_http_uploadprogress_module.o] Error 1
make[1]: Leaving directory `/tmp/nginx-1.0.10'
make: *** [build] Error 2

Does anyone have any solutions to this?

Thanks in advance for any help you can provide.