lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 31.12.2013 11:58 schröbte Eduardo Tongson:
On Tue, Dec 31, 2013 at 5:32 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:

$ sudo luarocks install luacurl
...
gcc -O2 -fPIC -I/usr/local/include -c luacurl.c -o luacurl.o -I/usr/include
luacurl.c:813:30: error: array type has incomplete element type
luacurl.c:823:30: error: array type has incomplete element type
...
Greetings,

Adding '-std=c99' to the CFLAGS could trick GCC to compile it.

No, luacurl is simply not ported to Lua 5.2 yet (despite the rockspec saying `lua >= 5.1`). The specific error is about `luaL_reg` which has been renamed to `luaL_Reg` in Lua 5.1. I have made a patched rockspec available here[1].


   Eduardo


Philipp

[1]: https://raw.github.com/siffiejoe/lua-rockspecs/master/luacurl-1.2.1.52-1.rockspec