nginx-upsync-module icon indicating copy to clipboard operation
nginx-upsync-module copied to clipboard

tengine2.10(nginx的版本应该是1.62)编译失败

Open workhardcc opened this issue 10 years ago • 1 comments

hi 在tengine 2.10(nginx的版本应该是1.62)上编译有如下报错:

In file included from /search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c:11:0:
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.h: In function ‘ngx_http_upsync_chash’:
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.h:209:19: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘server’
     server = &peer->server;
                   ^
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c: In function ‘ngx_http_upsync_server’:
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c:502:16: error: ‘ngx_http_upstream_server_t’ has no member named ‘name’
     conf_server->name = u.url;
                ^
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c: In function ‘ngx_http_upsync_add_peers’:
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c:827:17: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘next’
             peer->next = peers->peer;
                 ^
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c:828:25: error: incompatible types when assigning to type ‘struct ngx_http_upstream_rr_peer_t[1]’ from type ‘struct ngx_http_upstream_rr_peer_t *’
             peers->peer = peer;
                         ^
/search/xiaoju/nginx/builds/nginx-upsync-module/src/ngx_http_upsync_module.c:847:17: error: ‘ngx_http_upstream_rr_peer_t’ has no member named ‘check_index’
             peer->check_index = index;

nginx_upstream_check_module 和 nginx-upsync-module 都编译进去了,是否1.62版本过低?

workhardcc avatar Jul 06 '16 08:07 workhardcc

是的, 不支持版本低于1.8.0(nginx) 的

xiaokai-wang avatar Jul 06 '16 09:07 xiaokai-wang