February 07, 2019 02:22PM
Vadim Lazovskiy Wrote:
-------------------------------------------------------
> >
> > cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter
> -Werror -g
> > -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs
> -I
> > src/http -I src/http/modules \
> > -o objs/src/http/ngx_http_core_module.o \
> > src/http/ngx_http_core_module.c
> > src/http/ngx_http_core_module.c: В функции «ngx_http_subrequest»:
> > src/http/ngx_http_core_module.c:2368:5: ошибка: неявное приведение
> большого
> > целого значения к беззнаковому типу [-Werror=overflow]
> > sr->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1;
> > ^
> > cc1: all warnings being treated as errors
> > make[1]: *** [objs/src/http/ngx_http_core_module.o] Ошибка 1
> > make[1]: Выход из каталога '/*****/nginx-1.15.8'
> > make: *** [build] Ошибка 2
> >
> >
> Здравствуйте.
>
> Под поле uri_changes в ngx_http_request_t
> (src/http/ngx_http_request.h)
> отведено 4 бита:
> unsigned uri_changes:4;
>
> Можете попробовать увеличить до 8 или поменять тип на uint8_t

Владимир,
помогло увеличение поля uri_changes до 8 бит, сборка успешная.
Большое спасибо!
Subject Author Posted

решение ограничения в 10 перенаправлений c помощью пересборки nginx

314zd271c February 06, 2019 02:30PM

Re: решение ограничения в 10 перенаправлений c помощью пересборки nginx

Vadim Lazovskiy February 07, 2019 06:44AM

Re: решение ограничения в 10 перенаправлений c помощью пересборки nginx

314zd271c February 07, 2019 02:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 261
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready