Cannot compile with nginx 1.12.1 on Windows + gcc 7

Issue #34 new
Joseph created an issue

The build fails with the following errors:

#!

nginx/addon/nginx-sticky-module/ngx_http_sticky_module.o \
nginx/addon/nginx-sticky-module/ngx_http_sticky_misc.o \
nginx/ngx_modules.o \
-ladvapi32 -lws2_32 lib/pcre-8.41/.libs/libpcre.a lib/openssl-1.1.0f/.openssl/lib/libssl.a lib/openssl-1.1.0f/.openssl/lib/libcrypto.a -lgdi32 -lcrypt32 -lws2_32 lib/zlib-1.2.11/libz.a \
-Wl,--export-all-symbols -Wl,--out-implib=nginx/libnginx.a
nginx/addon/nginx-sticky-module/ngx_http_sticky_module.o: In function `ngx_http_init_sticky_peer':
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:209: undefined reference to `ngx_log_debug'
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:245: undefined reference to `ngx_log_debug'
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:232: undefined reference to `ngx_log_debug'
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:252: undefined reference to `ngx_log_debug'
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:257: undefined reference to `ngx_log_debug'
nginx/addon/nginx-sticky-module/ngx_http_sticky_module.o:C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_module.c:275: more undefined references to `ngx_log_debug' follow
nginx/addon/nginx-sticky-module/ngx_http_sticky_misc.o: In function `cookie_expires':
C:\MinGW64\7.1.0\mingw32\msys2\home\Joseph\nginx/modules/nginx-sticky-module/ngx_http_sticky_misc.c:32: undefined reference to `gmtime_r'
collect2.exe: error: ld returned 1 exit status
make: *** [nginx/Makefile:285: nginx/nginx] Error 1

Thank you in advance.

Comments (0)

  1. Log in to comment