lua-upstream-nginx-module icon indicating copy to clipboard operation
lua-upstream-nginx-module copied to clipboard

error: ‘ngx_http_upstream_server_t’ has no member named ‘name’

Open law-lee opened this issue 6 years ago • 0 comments

When i compile this module into nginx-1.6.3, it causes an error below:

../lua-upstream-nginx-module/src/ngx_http_lua_upstream_module.c: In function ‘ngx_http_lua_upstream_get_servers’:
../lua-upstream-nginx-module/src/ngx_http_lua_upstream_module.c:179:22: error: ‘ngx_http_upstream_server_t’ has no member named ‘name’
         if (server[i].name.len) {
                      ^
../lua-upstream-nginx-module/src/ngx_http_lua_upstream_module.c:193:22: error: ‘ngx_http_upstream_server_t’ has no member named ‘name’
         if (server[i].name.len) {
                      ^
../lua-upstream-nginx-module/src/ngx_http_lua_upstream_module.c:195:50: error: ‘ngx_http_upstream_server_t’ has no member named ‘name’
             lua_pushlstring(L, (char *) server[i].name.data,
                                                  ^
../lua-upstream-nginx-module/src/ngx_http_lua_upstream_module.c:196:38: error: ‘ngx_http_upstream_server_t’ has no member named ‘name’
                             server[i].name.len);
                                      ^
make[1]: *** [objs/addon/src/ngx_http_lua_upstream_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/root/nginx_mon/nginx-1.6.3'
make: *** [build] Error 2

I've tried different versions of this module, it is the same error. nginx-1.6.x should still be supported. @agentzh Could you help me out here ?

law-lee avatar Mar 23 '18 07:03 law-lee