lunarmodules/lua-compat-5.3

Compiling with Lua 5.3 fails

RyanSquared opened this issue · 1 comments

http 0.2-0 depends on compat53 >= 0.3 (not installed)
Installing https://luarocks.org/compat53-0.4-1.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.3 -c lutf8lib.c -o lutf8lib.o
gcc -shared -o compat53/utf8.so -L/usr/lib lutf8lib.o
gcc -O2 -fPIC -I/usr/include/lua5.3 -c ltablib.c -o ltablib.o
gcc -shared -o compat53/table.so -L/usr/lib ltablib.o
gcc -O2 -fPIC -I/usr/include/lua5.3 -c lstrlib.c -o lstrlib.o
lstrlib.c: In function ‘str_format’:
lstrlib.c:1019:59: error: macro "lua_number2strx" passed 5 arguments, but takes just 4
                                   luaL_checknumber(L, arg));
                                                           ^
lstrlib.c:1018:16: error: ‘lua_number2strx’ undeclared (first use in this function)
           nb = lua_number2strx(L, buff, MAX_ITEM, form,
                ^
lstrlib.c:1018:16: note: each undeclared identifier is reported only once for each function it appears in

Error: Failed installing dependency: https://luarocks.org/http-0.2-0.all.rock - Failed installing dependency: https://luarocks.org/compat53-0.4-1.src.rock - Build error: Failed compiling object lstrlib.o
ryan@hammerlock ~ 19:23:58 % objdump -TC /usr/lib/x86_64-linux-gnu/liblua5.3.so.0 | grep lua_number2strx
<1> ryan@hammerlock ~ 19:24:05 %