Project

General

Profile

Bug #48312

compilation fails if earlier version of lua is present

Added by Deepika Upadhyay over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

/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);

History

#1 Updated by Deepika Upadhyay over 3 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 38217

#2 Updated by Deepika Upadhyay over 3 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF