无法使用 MSYS2 为 Win32 构建模块
In file included from ../ngx_devel_kit/objs/ndk_includes.h:53, from ../ngx_devel_kit/src/ndk.h:47, from ../lua-nginx-module/src/ngx_http_lua_common.h:50, from ../lua-nginx-module/src/ngx_http_lua_socket_tcp.h:11, from ../lua-nginx-module/src/ngx_http_lua_socket_tcp.c:13: ../ngx_devel_kit/src/ndk_log.h:163:9: note: '#pragma message: Nginx Devel Kit logging without variadic macros not yet implemented' 163 | #pragma message("Nginx Devel Kit logging without variadic macros not yet implemented") ^~~~~~~ In file included from src/core/ngx_core.h:82, from ../lua-nginx-module/src/ddebug.h:13, from ../lua-nginx-module/src/ngx_http_lua_socket_tcp.c:10: ../lua-nginx-module/src/ngx_http_lua_socket_tcp.c: In function 'ngx_http_lua_socket_tcp_log_error': src/core/ngx_inet.h:21:13: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_un' 21 | sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path)) ^~~~~~ ../lua-nginx-module/src/ngx_http_lua_socket_tcp.c:453:26: note: in expansion of macro 'NGX_UNIX_ADDRSTRLEN' 453 | u_char addr_text[NGX_UNIX_ADDRSTRLEN]; ^~~~~~~~~~~~~~~~~~~ In file included from M:/Installations/MSY2/ucrt64/lib/gcc/x86_64-w64-mingw32/16.1.0/include/stddef.h:1, from M:/Installations/MSY2/ucrt64/include/inttypes.h:14, from ./pcre2-10.47/src/pcre2.h:89, from src/core/ngx_regex.h:19, from src/core/ngx_core.h:75: src/core/ngx_inet.h:21:35: error: invalid use of undefined type 'struct sockaddr_un' 21 | sizeof(struct sockaddr_un) - offsetof(struct sockaddr_un, sun_path)) ^~~~~~~~ ../lua-nginx-module/src/ngx_http_lua_socket_tcp.c:453:26: note: in expansion of macro 'NGX_UNIX_ADDRSTRLEN' 453 | u_char addr_text[NGX_UNIX_ADDRSTRLEN]; ^~~~~~~~~~~~~~~~~~~ src/core/ngx_inet.h:21:13: error: invalid application of 'sizeof' to
内容来源: openresty/lua-nginx-module