Welcome! Log In Create A New Profile

Advanced

nginx 8.0.26 + nginx_upload_module error

Posted by Денис 
nginx 8.0.26 + nginx_upload_module error
November 17, 2009 05:10AM
Собираю rpm пакет Nginx.

[code]
./configure --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_secure_link_module --with-http_random_index_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module '--with-cc-opt=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables ' --add-module=/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx-upstream-fair --add-module=/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1 --add-module=/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx-upload-progress-module --add-module=/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/mod_zip-1.1.5
[/code]

получаю ошибку
[code]
gcc -c -O -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -g -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -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/http/modules/perl -I /home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1 -I src/mail \
-o objs/addon/nginx_upload_module-2.1.1/ngx_http_upload_module.o \
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_http_upload_merge_loc_conf':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: error: 'ngx_garbage_collector_temp_handler' undeclared (first use in this function)
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: error: (Each undeclared identifier is reported only once
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: error: for each function it appears in.)
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: warning: passing argument 1 of 'ngx_conf_merge_path_value' from incompatible pointer type
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: warning: passing argument 2 of 'ngx_conf_merge_path_value' from incompatible pointer type
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: warning: passing argument 3 of 'ngx_conf_merge_path_value' from incompatible pointer type
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: warning: passing argument 4 of 'ngx_conf_merge_path_value' makes pointer from integer without a cast
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1104: error: too many arguments to function 'ngx_conf_merge_path_value'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_http_upload_pass_form_field':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1490: warning: passing argument 1 of 'ngx_regex_compile' from incompatible pointer type
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1490: error: too many arguments to function 'ngx_regex_compile'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1490: warning: assignment makes pointer from integer without a cast
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1497: warning: implicit declaration of function 'ngx_regex_capture_count'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1501: error: 'ngx_regex_capture_count_n' undeclared (first use in this function)
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1501: error: expected ')' before string constant
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1463: warning: unused parameter 'cmd'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_http_upload_cleanup':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1516: warning: unused parameter 'cmd'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_http_upload_filter_block':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1643: warning: unused parameter 'cmd'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_http_upload_pass':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1725: warning: unused parameter 'cmd'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_upload_get_next_field_filter':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:1745: warning: unused parameter 'ctx'
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c: In function 'ngx_upload_set_exten':
/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26/nginx_upload_module-2.1.1/ngx_http_upload_module.c:2211: warning: unused parameter 'u'
make[1]: *** [objs/addon/nginx_upload_module-2.1.1/ngx_http_upload_module.o] Error 1
make[1]: Leaving directory `/home/mock/BUILD_ROOT/BUILD/nginx-0.8.26'
make: *** [build] Error 2

[/code]

Проблемы начались с версии Nginx 0.8.26 т. к. nginx_upload_module прекрасно собирался с nginx 0.8.24

Как лечить ?
Re: nginx 8.0.26 + nginx_upload_module error
November 17, 2009 05:12AM
Модераторы перенесите в nginx пожалуйста.
Re: nginx 8.0.26 + nginx_upload_module error
February 17, 2010 03:50AM
hi im new here too
Re: nginx 8.0.26 + nginx_upload_module error
September 17, 2010 10:32AM
[code]
make -f objs/Makefile
cc -c -O2 -pipe -fno-strict-aliasing -I /usr/local/include -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_upload_module-2.0.12/ngx_http_upload_module.o /usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c: In function 'ngx_http_upload_merge_loc_conf':
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: error: 'ngx_garbage_collector_temp_handler' undeclared (first use in this function)
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: error: (Each undeclared identifier is reported only once
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: error: for each function it appears in.)
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: warning: passing argument 1 of 'ngx_conf_merge_path_value' from incompatible pointer type
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: warning: passing argument 2 of 'ngx_conf_merge_path_value' from incompatible pointer type
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: warning: passing argument 3 of 'ngx_conf_merge_path_value' from incompatible pointer type
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: warning: passing argument 4 of 'ngx_conf_merge_path_value' makes pointer from integer without a cast
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1212: error: too many arguments to function 'ngx_conf_merge_path_value'
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c: In function 'ngx_http_upload_pass_form_field':
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1644: warning: passing argument 1 of 'ngx_regex_compile' from incompatible pointer type
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1644: error: too many arguments to function 'ngx_regex_compile'
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1644: warning: assignment makes pointer from integer without a cast
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1655: error: 'ngx_regex_capture_count_n' undeclared (first use in this function)
/usr/ports/www/nginx-devel/work/nginx_upload_module-2.0.12/ngx_http_upload_module.c:1655: error: expected ')' before string constant
*** Error code 1

Stop in /usr/ports/www/nginx-devel/work/nginx-0.8.50.
*** Error code 1

Stop in /usr/ports/www/nginx-devel/work/nginx-0.8.50.
*** Error code 1

Stop in /usr/ports/www/nginx-devel.
*** Error code 1

Stop in /usr/ports/www/nginx-devel.

[/code]

I got this error in freebsd ports,please help
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 79
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready