Forum: NGINX uploadprogress_module - ngx_http_reportuploads_handler

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dario P. (Guest)
on 2009-04-27 08:48
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:

[code]...
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[/code]

I'm using nginx version 0.5.35.

Thanks!
Brice F. (Guest)
on 2009-04-27 12:38
(Received via mailing list)
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.
Dario P. (Guest)
on 2009-04-27 22:56
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)
This topic is locked and can not be replied to.