nginx_upstream_check_module icon indicating copy to clipboard operation
nginx_upstream_check_module copied to clipboard

nginx1.16.1安装make时出错,求助!

Open justfy123 opened this issue 5 years ago • 1 comments

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 /root/nginx-1.16.1/nginx_upstream_check_module-master -I objs -I src/http -I src/http/modules
-o objs/src/http/ngx_http_upstream_round_robin.o
src/http/ngx_http_upstream_round_robin.c src/http/ngx_http_upstream_round_robin.c: In function ‘ngx_http_upstream_init_round_robin’: src/http/ngx_http_upstream_round_robin.c:109:28: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’ peer[n].check_index = ^ src/http/ngx_http_upstream_round_robin.c:112:28: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’ peer[n].check_index = (ngx_uint_t) NGX_ERROR; src/http/ngx_http_upstream_round_robin.c: In function ‘ngx_http_upstream_free_round_robin_peer’: src/http/ngx_http_upstream_round_robin.c:692:51: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’ if (ngx_http_upstream_check_peer_down(peer->check_index)) { ^ src/http/ngx_http_upstream_round_robin.c:693:13: error: label ‘failed’ used but not defined goto failed; ^ make[1]: *** [objs/src/http/ngx_http_upstream_round_robin.o] Error 1 make[1]: Leaving directory `/root/nginx-1.16.1

justfy123 avatar Dec 12 '19 11:12 justfy123

我也遇到了,这个是因为这个补丁包和nginx版本不匹配吗?我用的nginx是1.26.2

dkisser avatar Aug 25 '24 08:08 dkisser