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

Failed to build on Win32

Open mhoran opened this issue 6 years ago • 0 comments

I tried following some combination of openresty/README-windows.md and stream-lua-nginx-module/README.md to build this module (before discovering the the RC version of openresty with support for ssl_certificate_by_lua_block). While I no longer need to build this module by source, I thought the maintainers may want to know about this error.

mingw32-make[1]: *** No rule to make target '/c/build/stream-lua-nginx-module-0.0.7rc1/src/ddebug.h', needed by 'objs/addon/src/ngx_stream_lua_api.o'.  Stop.
mingw32-make[1]: Leaving directory 'C:/build/nginx-release-1.13.6'
mingw32-make: *** [Makefile:8: build] Error 2

I ran auto/configure with the following arguments:

auto/configure --with-stream --with-stream_ssl_module --add-module=/c/build/stream-lua-nginx-module-0.0.7rc1 --without-http --with-openssl=objs/lib/openssl-1.1.1b

I downloaded nginx 1.13.6 as specified in the README. I also had to patch src/stream/ngx_stream_script.c as per https://trac.nginx.org/nginx/changeset/9e25a5380a21240cdb66646f1e20ef7247b646a1/nginx. I'm using the MinGW-w64 toolchain.

mhoran avatar Apr 30 '19 14:04 mhoran