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

so much error.some function have not be defined.

Open teahouse opened this issue 6 years ago • 0 comments

20181017215224 /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:33: error: ‘NGX_CONF_MULTI’ undeclared here (not in a function) /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c: In function ‘ngx_tcp_add_addrs’: /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:425: warning: passing argument 2 of ‘ngx_sock_ntop’ makes integer from pointer without a cast src/core/ngx_inet.h:113: note: expected ‘socklen_t’ but argument is of type ‘u_char *’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:425: warning: passing argument 3 of ‘ngx_sock_ntop’ makes pointer from integer without a cast src/core/ngx_inet.h:113: note: expected ‘u_char *’ but argument is of type ‘long unsigned int’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:425: error: too few arguments to function ‘ngx_sock_ntop’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c: In function ‘ngx_tcp_add_addrs6’: /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:483: warning: passing argument 2 of ‘ngx_sock_ntop’ makes integer from pointer without a cast src/core/ngx_inet.h:113: note: expected ‘socklen_t’ but argument is of type ‘u_char *’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:483: warning: passing argument 3 of ‘ngx_sock_ntop’ makes pointer from integer without a cast src/core/ngx_inet.h:113: note: expected ‘u_char *’ but argument is of type ‘long unsigned int’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp.c:483: error: too few arguments to function ‘ngx_sock_ntop’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c: In function ‘ngx_tcp_core_listen’: /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:512: error: cannot convert to a pointer type /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:532: error: incompatible type for argument 2 of ‘memcpy’ /usr/include/string.h:44: note: expected ‘const void * restrict’ but argument is of type ‘ngx_sockaddr_t’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:576: warning: passing argument 2 of ‘ngx_sock_ntop’ makes integer from pointer without a cast src/core/ngx_inet.h:113: note: expected ‘socklen_t’ but argument is of type ‘u_char *’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:576: warning: passing argument 3 of ‘ngx_sock_ntop’ makes pointer from integer without a cast src/core/ngx_inet.h:113: note: expected ‘u_char *’ but argument is of type ‘long unsigned int’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:576: error: too few arguments to function ‘ngx_sock_ntop’ /home/ffy/openresty/build/nginx-tcp-lua-module-master/src/ngx_tcp_core_module.c:576: warning: assignment makes integer from pointer without a cast make[2]: *** [objs/addon/src/ngx_tcp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [objs/addon/src/ngx_tcp_core_module.o] Error 1

teahouse avatar Oct 17 '18 13:10 teahouse