nginx-1.22 lua-resty-core-0.1.23 not working.

Maxim Dounin mdounin на mdounin.ru
Ср Май 25 20:43:18 UTC 2022


Hello!

On Wed, May 25, 2022 at 02:33:10AM -0400, bagas wrote:

> Hello.
> nginx-1.22 lua-resty-core-0.1.23 not working.
> 
> My system FreeBSD 12.3-RELEASE-p5 amd64.
> Installed ports:
> nginx-1.22.0,2
> lua-resty-core-0.1.23
> pcre-8.45_1
> pcre2-10.40
> 
> Error:
> nginx -t
> nginx: [emerg] dlopen() "/usr/local/libexec/nginx/ngx_http_lua_module.so"
> failed (/usr/local/libexec/nginx/ngx_http_lua_module.so: Undefined symbol
> "pcre_free") in /usr/local/etc/nginx/nginx.conf:2
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed

This looks like a lua module issue, it tries to use pcre_free() 
directly instead of using nginx interfaces, and fails because 
nginx was compiled with PCRE2 instead of PCRE.  Try to recompile 
nginx with PCRE instead of PCRE2, this should work till the issue 
in the lua module is fixed.

(The nginx-devel port provides explicit options to do PCRE vs. 
PCRE2 selection.  The nginx port maintainer probably should copy 
this.)

-- 
Maxim Dounin
http://mdounin.ru/



Подробная информация о списке рассылки nginx-ru