lua-cjson icon indicating copy to clipboard operation
lua-cjson copied to clipboard

undefined symbol: lua_newuserdatauv

Open ahmads-dy opened this issue 1 year ago • 1 comments

hey I getting this error while trying to start nginx:

undefined symbol: lua_newuserdatauv stack traceback: [C]: at 0x7fd2c07ac720 [C]: in function 'require' /etc/nginx/ljbc/load_modules.ljbc: in function </etc/nginx/ljbc/load_modules.ljbc:0>

nginx.conf: lua_package_path "/etc/nginx/ljbc/?.ljbc;/usr/local/share/lua/5.4/?.lua"; # ";;" omitted on purpose lua_package_cpath "/usr/local/lib/lua/5.4/?.so"; # ";;" omitted on purpose

in load_modules i do: require('cjson')

lua version: Lua 5.4.4

lua-cjson is installed via luarocks5.4: lua-cjson 2.1.0.10-1 (installed) - /usr/local/lib/luarocks/rocks-5.4

is this a compatible issue? I only can use lua 5.4.4 since it's the only lua version that is supported in AL2023 (Amazon Linux 2023)

installing the latest version of lua-cjson(2.1.0.14) didn't help

the usage of lua_newuserdata in here -> link

should be migrated to lua_newuserdatauv -> link

ahmads-dy avatar Jun 29 '24 16:06 ahmads-dy

Go to https://openresty.org/en/using-luarocks.html for more details.

zhuizhuhaomeng avatar Aug 06 '24 15:08 zhuizhuhaomeng