lua binding compile failed with lua5.3
deltay opened this issue · 1 comments
The error message is:
Compiled with g++ [x86_64-unknown-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information
swig -lua -Wall -Wextra libinjection.i
libinjection_sqli.h:192: Warning(322): Redundant redeclaration of 'version' (Renamed from 'libinjection_version'),
libinjection.h:39: Warning(322): previous declaration of 'version' (Renamed from 'libinjection_version').
cc -O0 -g -Wall -Wextra -Wformat=2 -fPIC -fno-common -I. -I/usr/include/luajit-2.0 -lluajit-5.1
-shared -Wl,-soname,libinjection.so libinjection_wrap.c libinjection_sqli.c libinjection_html5.c libinjection_xss.c -o libinjection.so
libinjection_wrap.c:2698: error: array type has incomplete element type
libinjection_wrap.c: In function luaopen_libinjection?
libinjection_wrap.c:3017: error: LUA_GLOBALSINDEX?undeclared (first use in this function)
libinjection_wrap.c:3017: error: (Each undeclared identifier is reported only once
libinjection_wrap.c:3017: error: for each function it appears in.)
make: *** [libinjection.so] Error 1
patches welcome. Im not that familiar with LUA bindings, esp with 5.3
Recommend using luajit and/or lua 5.2