/www/server/nginx/src/nginx-sticky-module/ngx_http_sticky_module.c: In function ‘ngx_http_get_sticky_peer’:
/www/server/nginx/src/nginx-sticky-module/ngx_http_sticky_module.c:295:42: error: ‘iphp’ undeclared (first use in this function)
ngx_http_sticky_srv_conf_t *conf = iphp->sticky_conf;
^
/www/server/nginx/src/nginx-sticky-module/ngx_http_sticky_module.c:295:42: note: each undeclared identifier is reported only once for each function it appears in
/www/server/nginx/src/nginx-sticky-module/ngx_http_sticky_module.c:391:27: warning: assignment makes pointer from integer without a cast [enabled by default]
iphp->rrp.current = iphp->selected_peer;
^
make[1]: *** [objs/addon/nginx-sticky-module/ngx_http_sticky_module.o] Error 1
make[1]: Leaving directory `/root/nginx-1.15.10'
make: *** [build] Error 2
/www/server/nginx/src/nginx-sticky-module/ngx_http_sticky_module.c 295 行左右的代码如下:
static ngx_int_t
288 ngx_http_get_sticky_peer(ngx_peer_connection_t *pc, void *data)
289 {
290 time_t now = ngx_time();
291 uintptr_t m;
292 ngx_str_t route;
293 ngx_int_t ret, selected_peer = -1;
294 ngx_uint_t tmp, n, i;
295 ngx_http_sticky_srv_conf_t *conf = iphp->sticky_conf;
296 ngx_http_upstream_rr_peer_t *peer = NULL;
297 ngx_http_sticky_peer_data_t *iphp = data;