openresty / openresty/stream-lua-nginx-module

Failed to build on Win32

Open
#162 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
749
Forks
210
Avg merge
4h 31m
Merged PRs (30d)
3

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with openresty/README-windows.md and stream-lua-nginx-module/README.md, then reproduce the reported MinGW-w64 build using the shown auto/configure arguments and nginx 1.13.6. Investigate the missing src/ddebug.h dependency and the required ngx_stream_script.c patch. Done means the module builds successfully on Win32 with the documented steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, nginx
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.