Opened 10 years ago

Closed 10 years ago

#688 closed defect (invalid)

nginx 1.7.9 + passenger 4.0.53/4.0.56 фейл при компиляции

Reported by: electron17.ya.ru Owned by:
Priority: major Milestone: 1.7.9
Component: nginx-core Version: 1.7.x
Keywords: passenger, nginx1.7.9 Cc:
uname -a: Linux test.ru 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.7.9
built by gcc 4.7.2 (Debian 4.7.2-5)
TLS SNI support enabled
configure arguments: --prefix=/etc/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 --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --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_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_spdy_module --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,--as-needed' --with-ipv6

Description

Здравствуйте,

при попытке установки компиляции nginx 1.7.9 ( c 1.7.8 все нормально ) с passenger ( установлен при помощи gem install passenger возникает ошибка на этапе компиляции :

make -f objs/Makefile
make[1]: Entering directory `/usr/src/nginx-1.7.9'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Werror -Wno-unused-parameter -g -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /var/lib/gems/1.9.1/gems/passenger-4.0.56/ext -I objs -I src/http -I src/http/modules -I src/mail \
                -o objs/addon/nginx/Configuration.o \
                /var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c: In function ‘passenger_create_loc_conf’:
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:259:35: error: character constant too long for its type [-Werror]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:259:5: error: overflow in implicit constant conversion [-Werror=overflow]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c: In function ‘passenger_merge_loc_conf’:
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:524:5: error: comparison between pointer and integer [-Werror]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:524:5: error: comparison between pointer and integer [-Werror]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:524:5: error: pointer/integer type mismatch in conditional expression [-Werror]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:524:5: error: assignment makes integer from pointer without a cast [-Werror]
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:527:67: error: invalid type argument of ‘->’ (have ‘int’)
/var/lib/gems/1.9.1/gems/passenger-4.0.56/ext/nginx/Configuration.c:530:18: error: assignment makes pointer from integer without a cast [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [objs/addon/nginx/Configuration.o] Error 1
make[1]: Leaving directory `/usr/src/nginx-1.7.9'
make: *** [build] Error 2

Attachments (1)

Configuration.c (36.1 KB ) - added by electron17.ya.ru 10 years ago.
Файл конфигурации из ошибки

Download all attachments as: .zip

Change History (2)

by electron17.ya.ru, 10 years ago

Attachment: Configuration.c added

Файл конфигурации из ошибки

comment:1 by Valentin V. Bartenev, 10 years ago

Resolution: invalid
Status: newclosed

Проблема в стороннем модуле. В новой версии nginx настройка кэша претерпела изменения в связи с добавлением поддержки переменных в директивы, и данный модуль не совместим с ней.

Вам следует сообщить об ошибке авторам модуля.

Note: See TracTickets for help on using tickets.