Skip to content

undefined symbol: lua_newuserdatauv #104

@ahmads-dy

Description

@ahmads-dy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions