Re: [ANN] LuaJIT-2.1.0-beta3

  • From: François Perrad <francois.perrad@xxxxxxxx>
  • To: luajit <luajit@xxxxxxxxxxxxx>
  • Date: Sat, 29 Jul 2017 20:17:04 +0200

2017-05-02 8:51 GMT+02:00 Andriy Kornatskyy <andriy.kornatskyy@xxxxxxxx>:

Looks like it breaks lua-cjson... used to be fine with beta2... works with
2.0.5.

# luarocks install lua-cjson
Installing https://luarocks.org/lua-cjson-2.1.0-1.src.rock
gcc -O2 -fPIC -I/usr/local/include -c lua_cjson.c -o lua_cjson.o
lua_cjson.c:1298:13: error: static declaration of 'luaL_setfuncs' follows
non-static declaration
 static void luaL_setfuncs (lua_State *l, const luaL_Reg *reg, int nup)
             ^~~~~~~~~~~~~
In file included from lua_cjson.c:44:0:
/usr/local/include/lauxlib.h:88:18: note: previous declaration of
'luaL_setfuncs' was here
 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int
nup);
                  ^~~~~~~~~~~~~
In file included from lua_cjson.c:47:0:
fpconv.h:15:20: warning: inline function 'fpconv_init' declared but never
defined
 extern inline void fpconv_init();
                    ^~~~~~~~~~~

Error: Build error: Failed compiling object lua_cjson.o


FYI, luaexpat has the same issue.

   $ luarocks install luaexpat
   Installing https://luarocks.org/luaexpat-1.3.0-1.src.rock
   gcc -O2 -fPIC -I/home/travis/build/fperrad/lua-Spore/HERE/include -c
src/lxplib.c -o src/lxplib.o -I/usr/include -Isrc/
   src/lxplib.c:593:13: error: static declaration of 'luaL_setfuncs'
follows non-static declaration
   /home/travis/build/fperrad/lua-Spore/HERE/include/lauxlib.h:88:18: note:
previous declaration of 'luaL_setfuncs' was here
   Error: Build error: Failed compiling object src/lxplib.o

François

Other related posts: