nginx @1.21.6+lua: undefined symbols
Building with the +lua variant fails if the pcre2 port is installed:
sudo port -n build nginx +lua -fancyindex -flv -http2 -mp4 -secure_link -ssl -stream
:info:build Undefined symbols for architecture x86_64:
:info:build "_pcre_assign_jit_stack", referenced from:
:info:build _ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ffi_compile_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build "_pcre_compile", referenced from:
:info:build _ngx_http_lua_regex_compile in ngx_http_lua_regex.o
:info:build "_pcre_dfa_exec", referenced from:
:info:build _ngx_http_lua_ffi_exec_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
:info:build "_pcre_exec", referenced from:
:info:build _ngx_http_lua_ffi_exec_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
:info:build "_pcre_free", referenced from:
:info:build _ngx_http_lua_pcre_malloc_init in ngx_http_lua_pcrefix.o
:info:build _ngx_http_lua_pcre_malloc_done in ngx_http_lua_pcrefix.o
:info:build "_pcre_free_study", referenced from:
:info:build _ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ffi_compile_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ffi_destroy_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_gmatch_cleanup in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
:info:build ...
:info:build "_pcre_fullinfo", referenced from:
:info:build _ngx_http_lua_ffi_compile_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_regex_compile in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
:info:build "_pcre_jit_stack_alloc", referenced from:
:info:build _ngx_http_lua_ffi_set_jit_stack_size in ngx_http_lua_regex.o
:info:build "_pcre_jit_stack_free", referenced from:
:info:build _ngx_http_lua_ffi_set_jit_stack_size in ngx_http_lua_regex.o
:info:build "_pcre_malloc", referenced from:
:info:build _ngx_http_lua_pcre_malloc_init in ngx_http_lua_pcrefix.o
:info:build _ngx_http_lua_pcre_malloc_done in ngx_http_lua_pcrefix.o
:info:build (maybe you meant: _ngx_http_lua_pcre_malloc_init, _ngx_http_lua_pcre_malloc_done )
:info:build "_pcre_study", referenced from:
:info:build _ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ffi_compile_regex in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_match_helper in ngx_http_lua_regex.o
:info:build _ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make[1]: *** [objs/nginx] Error 1
In b43fd96d1c1f09ae3c11c39e77218d38eba8296e/macports-ports (master):