nginx版本1.6.2
sticky 1.1
./configure --prefix=/usr/local/nginx --with-http_st
ub_status_module --with-http_ssl_module --with-http_realip_module --add-module=/
tmp/soft/nginx-sticky-module-1.1
再执行make && make install时报如下错误
/tmp/soft/nginx-sticky-module-1.1/ngx_http_sticky_misc.c:281: error: too few arg
uments to function ‘ngx_sock_ntop’
make[1]: *** [objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o] Error 1
make[1]: Leaving directory `/tmp/soft/nginx-1.6.2'
make: *** [build] Error 2
根据资料 把ngx_http_sticky_misc.c 的281行修改如下即可解决问题
原digest->len = ngx_sock_ntop(in,digest
->data, len, 1);
改后digest->len = ngx_sock_ntop(in,sizeof(struct sockaddr_in),digest
->data, len, 1);
阅读(9448) | 评论(0) | 转发(0) |