Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ngx_http_lua_module 0.10.15 required" issue when starting Openresty #329

Open
sumikum7 opened this issue Nov 16, 2020 · 1 comment
Open

Comments

@sumikum7
Copy link

I am able to compile Openresty for PPC platforms but unable to start the same due the following issue :

lua_load_resty_core failed to load the resty.core module from https://github.com/openresty/lua-resty-core; ensure you are using an OpenResty release from https://openresty.org/en/download.html (rc: 2, reason: /usr/binos/openresty/lualib/resty/core/base.lua:23: ngx_http_lua_module 0.10.15 required)

OpenResty version : openresty/1.15.8.3
OS version : Linux ztp_RP_1 4.9.238 #1 SMP Mon Oct 12 17:19:38 UTC 2020 ppc ppc ppc GNU/Linux
Since, Nginx doesn't even start so nothing to share with Nginx error logs here.

The base.lua seems to be failing around this check :

if subsystem == 'http' then
    if not ngx.config
       or not ngx.config.ngx_lua_version
       or ngx.config.ngx_lua_version ~= 10015
    then
        error("ngx_http_lua_module 0.10.15 required")
    end

I broke the three conditions to see the variable's status here and I found that ngx.config.ngx_lua_version is not set to anything. As per my finding till now, the variable should have been set in build/ngx_lua-0.10.15/src/ngx_http_lua_config.c.
I am unsure why this is not set properly.

Please, note that we do compile the same Openresty for other type of platforms(ARM/X86_64) and it does come up fine.
Also, Kindly note the flags used for building Luajit for this:

else ifneq ($(filter $(PPC_ALL_TARGETS),$(TARGET)),)
        $(Nx)HOST_CC := \
               $($(Nx)LUAJIT_HOST_CC) \
               -m32 \
               -DLJ_HASJIT=0 \
               -LJ_ABI_SOFTFP=1 \
               -DLUAJIT_TARGET=LUAJIT_ARCH_PPC \
               -LJ_TARGET_PPC=1 \

             $(Nx)DASM_ARCH := ppc

             $(Nx)DASM_FLAGS := -D FFI -D FPU -D HFABI -D VER=

             $(Nx)DASM_DASC := vm_ppc.dasc

Any kind of help here would be much appreciated!

@zhujintao
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants