Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
law-lee opened this issue Mar 23, 2018 · 0 comments
Open

Comments

@law-lee
Copy link

law-lee commented Mar 23, 2018

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant