Complie Module Error: nginx-upload-module

Hello,

try to build the current nginx-upload-module, current version gives me
the following errors:

/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c: In
function ângx_http_upload_merge_loc_confâ:
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: ângx_garbage_collector_temp_handlerâ undeclared (first use in
this function)
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: (Each undeclared identifier is reported only once
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: for each function it appears in.)
cc1: warnings being treated as errors
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: passing argument 1 of ângx_conf_merge_path_valueâ from
incompatible pointer type
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: passing argument 2 of ângx_conf_merge_path_valueâ from
incompatible pointer type
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: passing argument 3 of ângx_conf_merge_path_valueâ from
incompatible pointer type
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: passing argument 4 of ângx_conf_merge_path_valueâ makes pointer
from integer without a cast
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1104:
error: too many arguments to function ângx_conf_merge_path_valueâ
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c: In
function ângx_http_upload_pass_form_fieldâ:
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1490:
error: passing argument 1 of ângx_regex_compileâ from incompatible
pointer type
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1490:
error: too many arguments to function ângx_regex_compileâ
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1490:
error: assignment makes pointer from integer without a cast
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1497:
error: implicit declaration of function ângx_regex_capture_countâ
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1501:
error: ângx_regex_capture_count_nâ undeclared (first use in this
function)
/build/nginx/module/nginx-upload-module/ngx_http_upload_module.c:1501:
error: expected â)â before string constant
make[1]: *** [objs/addon/nginx-upload-module/ngx_http_upload_module.o]
Error 1
make[1]: *** Waiting for unfinished jobs…
cc1: warnings being treated as errors
/build/nginx/module/nginx-upload-module/ngx_upload_unzip_filter_module.c:201:
error: ângx_http_unzip_errorâ declared âstaticâ but never defined
make[1]: ***
[objs/addon/nginx-upload-module/ngx_upload_unzip_filter_module.o] Error
1
make: *** [build] Error 2

This is my build script:

./configure
–conf-path=/etc/nginx/nginx.conf
–pid-path=/var/run/nginx.pid
–lock-path=/var/lock/nginx.lock
–error-log-path=/var/log/nginx/error.log
–http-log-path=/var/log/nginx/access.log
–http-client-body-temp-path=/var/lib/nginx/client
–http-proxy-temp-path=/var/lib/nginx/proxy
–http-fastcgi-temp-path=/var/lib/nginx/fastcgi
–http-uwsgi-temp-path=/var/lib/nginx/uwsgi
–with-http_dav_module
–with-http_stub_status_module
–with-http_realip_module
–with-http_secure_link_module
–with-http_ssl_module
–with-http_flv_module
–without-http_scgi_module
–without-http_autoindex_module
–without-http_empty_gif_module
–add-module=/build/nginx/module/nginx-upload-module
–with-cc-opt=‘-O3’

make -j2

Any ideas whats going wrong?

Thanks for your help.


Schon gehört? GMX hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://www.gmx.net/de/go/toolbar

Hi,

try to build the current nginx-upload-module, current version gives me the
following errors:

If by “current” you mean “master” branch from GitHub, then you’re wrong.
Try using “2.2” branch :wink:

btw Valery: you should really push “2.2” to “master”, this issue is
reported
over and over again.

Best regards,
Piotr S. < [email protected] >

The master branch contains some experimental code. I prefer to think
about master as experimental and keep stable code on branches.

Piotr S. wrote:

Hi,

try to build the current nginx-upload-module, current version gives me
the following errors:

If by “current” you mean “master” branch from GitHub, then you’re wrong.
Try using “2.2” branch :wink:

btw Valery: you should really push “2.2” to “master”, this issue is
reported over and over again.


Best regards,
Valery K.

Hi Valery,

The master branch contains some experimental code. I prefer to think about
master as experimental and keep stable code on branches.

I can understand such workflow, however your “master” branch (at least
on
GitHub) wasn’t updated in over 2 years. I doubt that there is any
experimental code there :wink:

Best regards,
Piotr S. < [email protected] >

On 18/02/11, Valery K. wrote:

If by “current” you mean “master” branch from GitHub, then
you’re wrong. Try using “2.2” branch :wink:

btw Valery: you should really push “2.2” to “master”, this
issue is reported over and over again.

The master branch contains some experimental code. I prefer
to think about master as experimental and keep stable code
on branches.

It should be the other way around, “always summer in trunk” where
master is reasonably stable and various experiments are done in
other branches and only merged to master when stabilised, possibly
channeled through a “next” branch.

Why? Because knowing which branch is stable requires special
knowledge about the project, and is a moving target, whereas the
master branch is a single persistent and canonical target that
newbies, and experts, can pull knowing it will always build and
most likely operate as advertised.

Stable code in branches is what tags are for.

–markc