I just downloaded today's snapshot and tried compiling luamod. I got the error below:<div><br></div><div><div>root@server:/usr/src/freeswitch-snapshot/libs/esl# make luamod</div><div>make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes" CXXFLAGS="-I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable" CXX_CFLAGS="" -C lua</div>
<div>make[1]: Entering directory `/usr/src/freeswitch-snapshot/libs/esl/lua'</div><div>g++ -I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o</div>
<div>esl_wrap.cpp:726:17: error: lua.h: No such file or directory</div><div>esl_wrap.cpp:727:21: error: lauxlib.h: No such file or directory</div><div>esl_wrap.cpp:745: error: ‘lua_CFunction’ does not name a type</div><div>
esl_wrap.cpp:746: error: ‘lua_CFunction’ does not name a type</div><div>esl_wrap.cpp:761: error: ‘lua_CFunction’ does not name a type</div><div>esl_wrap.cpp:766: error: ‘lua_CFunction’ does not name a type</div><div>esl_wrap.cpp:767: error: ‘lua_CFunction’ does not name a type</div>
<div>esl_wrap.cpp:773: error: ‘lua_CFunction’ does not name a type</div><div>esl_wrap.cpp:850: error: ‘lua_State’ was not declared in this scope</div><div>esl_wrap.cpp:850: error: ‘L’ was not declared in this scope</div>
<div>
esl_wrap.cpp:850: error: expected ‘,’ or ‘;’ before ‘{’ token</div><div>esl_wrap.cpp:861: error: variable or field ‘SWIG_Lua_SetModule’ declared void</div><div>esl_wrap.cpp:861: error: ‘lua_State’ was not declared in this scope</div>
<div>esl_wrap.cpp:861: error: ‘L’ was not declared in this scope</div><div>esl_wrap.cpp:861: error: expected primary-expression before ‘*’ token</div><div>esl_wrap.cpp:861: error: ‘module’ was not declared in this scope</div>
<div>esl_wrap.cpp:875: error: ‘lua_State’ was not declared in this scope</div><div>esl_wrap.cpp:875: error: ‘L’ was not declared in this scope</div><div>esl_wrap.cpp:876: error: expected ‘,’ or ‘;’ before ‘{’ token</div>
<div>
esl_wrap.cpp:887: error: ‘lua_State’ was not declared in this scope</div><div>esl_wrap.cpp:887: error: ‘L’ was not declared in this scope</div><div>esl_wrap.cpp:888: error: expected ‘,’ or ‘;’ before ‘{’ token</div><div>
esl_wrap.cpp:3156: error: expected `}' at end of input</div>
<div>make[1]: *** [esl_wrap.o] Error 1</div><div>make[1]: Leaving directory `/usr/src/freeswitch-snapshot/libs/esl/lua'</div><div>make: *** [luamod] Error 2</div></div><div><br></div><div>I tried changing the includes for lua.h and lauxlib.h to a place I had them (/usr/include/lua5.1/), but then I got stuck on this error:</div>
<div><br></div><div><div>root@server:/usr/src/freeswitch-snapshot/libs/esl# make luamod</div><div>make MYLIB="../libesl.a" SOLINK="-shared -Xlinker -x" CFLAGS="-I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -O2 -ffast-math -Wall -Werror -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes" CXXFLAGS="-I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable" CXX_CFLAGS="" -C lua</div>
<div>make[1]: Entering directory `/usr/src/freeswitch-snapshot/libs/esl/lua'</div><div>g++ -I/usr/src/freeswitch-snapshot/libs/esl/src/include -DHAVE_EDITLINE -g -ggdb -I../../libs/libedit/src/ -fPIC -Wall -Werror -Wno-unused-variable -Wno-unused-function -c esl_wrap.cpp -o esl_wrap.o</div>
<div>g++ -shared -Xlinker -x esl_wrap.o ../libesl.a -llua -lpthread -o ESL.so -L. </div><div>/usr/bin/ld: cannot find -llua</div><div>collect2: ld returned 1 exit status</div><div>make[1]: *** [ESL.so] Error 1</div><div>
make[1]: Leaving directory `/usr/src/freeswitch-snapshot/libs/esl/lua'</div>
<div>make: *** [luamod] Error 2</div></div><div><br></div><div>I couldn't quite make sense of this. Thanks in advance.</div><div><br></div><div><br></div>