RGW Lua Compilation error
Hello everyone, When I rebased my branch with master, and tried to build it I m getting this error /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:79:5: error: ‘lua_seti’ was not declared in this scope; did you mean ‘luaL_setn’? 79 | lua_seti(L, -2, i); | ^~~~~~~~ | luaL_setn /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:86:32: error: ‘LUA_OK’ was not declared in this scope; did you mean ‘LUA_QS’? 86 | if (lua_pcall(L, 0, 1, 0) != LUA_OK) { | ^~~~~~ | LUA_QS /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:100:10: error: ‘lua_isinteger’ was not declared in this scope; did you mean ‘lua_tointeger’? 100 | if (!lua_isinteger(L, -2) || !lua_isnumber(L, -1)) { | ^~~~~~~~~~~~~ | lua_tointeger /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc: In constructor ‘Mantle::Mantle()’: /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:123:21: error: ‘luaopen_coroutine’ was not declared in this scope; did you mean ‘luaopen_string’? 123 | {LUA_COLIBNAME, luaopen_coroutine}, | ^~~~~~~~~~~~~~~~~ | luaopen_string /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:127:6: error: ‘LUA_UTF8LIBNAME’ was not declared in this scope; did you mean ‘LUA_STRLIBNAME’? 127 | {LUA_UTF8LIBNAME, luaopen_utf8}, | ^~~~~~~~~~~~~~~ | LUA_STRLIBNAME /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:127:23: error: ‘luaopen_utf8’ was not declared in this scope; did you mean ‘luaopen_math’? 127 | {LUA_UTF8LIBNAME, luaopen_utf8}, | ^~~~~~~~~~~~ | luaopen_math /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:133:7: error: ‘luaL_requiref’ was not declared in this scope; did you mean ‘luaL_unref’? 133 | luaL_requiref(L, lib->name, lib->func, 1); OS - ubuntu 18.04 Lua &Lua dev - 5.1 ceph 16.0.0-6381-g4304ebeca8 (4304ebeca8a7c55b7c583eaf35a0aede807692be) pacific (dev) Thank You, Abhinav Singh
Hey Abhinav, That might be because lua submodule was removed in commit: https://github.com/ceph/ceph/commit/df43069c426e7ef7f0e53ff49a03bf847c754f63 and is using lua 5.3 maybe removing lua submodule and then doing `git submodule update --init --recursive` should help, along with right version of lua. On Fri, Nov 20, 2020 at 5:59 PM Abhinav Singh <singhabhinav0796@gmail.com> wrote:
Hello everyone, When I rebased my branch with master, and tried to build it I m getting this error
/home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:79:5: error: ‘lua_seti’ was not declared in this scope; did you mean ‘luaL_setn’? 79 | lua_seti(L, -2, i); | ^~~~~~~~ | luaL_setn /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:86:32: error: ‘LUA_OK’ was not declared in this scope; did you mean ‘LUA_QS’? 86 | if (lua_pcall(L, 0, 1, 0) != LUA_OK) { | ^~~~~~ | LUA_QS /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:100:10: error: ‘lua_isinteger’ was not declared in this scope; did you mean ‘lua_tointeger’? 100 | if (!lua_isinteger(L, -2) || !lua_isnumber(L, -1)) { | ^~~~~~~~~~~~~ | lua_tointeger /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc: In constructor ‘Mantle::Mantle()’: /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:123:21: error: ‘luaopen_coroutine’ was not declared in this scope; did you mean ‘luaopen_string’? 123 | {LUA_COLIBNAME, luaopen_coroutine}, | ^~~~~~~~~~~~~~~~~ | luaopen_string /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:127:6: error: ‘LUA_UTF8LIBNAME’ was not declared in this scope; did you mean ‘LUA_STRLIBNAME’? 127 | {LUA_UTF8LIBNAME, luaopen_utf8}, | ^~~~~~~~~~~~~~~ | LUA_STRLIBNAME /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:127:23: error: ‘luaopen_utf8’ was not declared in this scope; did you mean ‘luaopen_math’? 127 | {LUA_UTF8LIBNAME, luaopen_utf8}, | ^~~~~~~~~~~~ | luaopen_math /home/abhinav/GSOC/PR/ceph/src/mds/Mantle.cc:133:7: error: ‘luaL_requiref’ was not declared in this scope; did you mean ‘luaL_unref’? 133 | luaL_requiref(L, lib->name, lib->func, 1);
OS - ubuntu 18.04 Lua &Lua dev - 5.1 ceph 16.0.0-6381-g4304ebeca8 (4304ebeca8a7c55b7c583eaf35a0aede807692be) pacific (dev)
Thank You, Abhinav Singh _______________________________________________ Dev mailing list -- dev@ceph.io To unsubscribe send an email to dev-leave@ceph.io
participants (2)
-
Abhinav Singh
-
Deepika Upadhyay