Uploadprogress_module - ngx_http_reportuploads_handler

Hi how are you all?

I have an issue trying to install the upload progress module for nginx.
When I run “make” after “./compile
–add-module=path/to/nginx_uploadprogress_module”, I got this error:

... cc1: warnings being treated as errors [b]/etc/nginx/upload-progress-module//ngx_http_uploadprogress_module.c: In function 'ngx_http_reportuploads_handler': /etc/nginx/upload-progress-module//ngx_http_uploadprogress_module.c:400: error: implicit declaration of function [/b]'ngx_http_discard_request_body' make[1]: *** [objs/addon/upload-progress-module/ngx_http_uploadprogress_module.o] Error 1 make[1]: Leaving directory `/nginx-0.5.35' make: *** [build] Error 2

I’m using nginx version 0.5.35.

Thanks!

On Mon, 2009-04-27 at 06:48 +0200, Dario P. wrote:

/etc/nginx/upload-progress-module//ngx_http_uploadprogress_module.c:400:
error: implicit declaration of function
[/b]‘ngx_http_discard_request_body’
make[1]: ***
[objs/addon/upload-progress-module/ngx_http_uploadprogress_module.o]
Error 1
make[1]: Leaving directory `/nginx-0.5.35’
make: *** [build] Error 2[/code]

I’m using nginx version 0.5.35.

Try with a 0.6.x version, which is now the stable version, because this
module doesn’t support 0.5.x.

Brice F. wrote:

On Mon, 2009-04-27 at 06:48 +0200, Dario P. wrote:

/etc/nginx/upload-progress-module//ngx_http_uploadprogress_module.c:400:
error: implicit declaration of function
[/b]‘ngx_http_discard_request_body’
make[1]: ***
[objs/addon/upload-progress-module/ngx_http_uploadprogress_module.o]
Error 1
make[1]: Leaving directory `/nginx-0.5.35’
make: *** [build] Error 2[/code]

I’m using nginx version 0.5.35.

Try with a 0.6.x version, which is now the stable version, because this
module doesn’t support 0.5.x.

Hi Brice. Thanks for your answer!.

I try to upgrade nginx to 0.6.36 using:

./configure --prefix=/etc/nginx --conf-path=/etc/nginx
–add-module=/etc/nginx/upload-progress-module

Then “make install clean” (I try too with “make” and then “make
install”) but when I run “nginx -v”, after restart the server, I still
have the 0.5.35 version.

Any idea why?

(to clarify: I use the “–prefix and” and “–conf-path” in the
“configure” command to point where my current nginx files are -
http://wiki.nginx.org/NginxInstallOptions)