Code:
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -I/usr/include/lua5.1 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D__LUAJIT__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -pipe -MT luascript.o -MD -MP -MF .deps/luascript.Tpo -c -o luascript.o luascript.cpp
luascript.cpp: In member function âvirtual bool LuaInterface::initState()â:
luascript.cpp:859: error: âLUAJIT_MODE_ENGINEâ was not declared in this scope
luascript.cpp:859: error: âLUAJIT_MODE_ONâ was not declared in this scope
luascript.cpp:859: error: âluaJIT_setmodeâ was not declared in this scope
make[1]: *** [luascript.o] Error 1
make[1]: Leaving directory `/home/r3748'
make: *** [all] Error 2
Im getting these strange errors, i've even tried 'make clean' before and tried
./autogen.sh and then ./build.sh
if i don't enable LUAJIT then it will compile just fine, if i do, then this error happens.