[OpenSIPS-Users] problem compiling lua module

johan johan at democon.be
Mon Dec 16 06:25:44 EST 2019


fixed, used wrong version of lua (needs to be 5.1 => lua5.1, lua5.1dev 
and libmemcached-dev).

On 16.12.19 12:08, David Villasmil wrote:
> Do you have lua’s development libraries?
>
> On Mon, 16 Dec 2019 at 10:55, johan <johan at democon.be 
> <mailto:johan at democon.be>> wrote:
>
>     When changing the header path to below mentioned directory, you
>     get this:
>
>
>
>     make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua'
>     Compiling sipapi.c
>     sipapi.c:895:30: error: array type has incomplete element type
>     ‘struct
>     luaL_reg’
>       static const struct luaL_reg siplua_api_mylib [] =
>                                    ^~~~~~~~~~~~~~~~
>     sipapi.c: In function ‘siplua_register_api_cclosures’:
>     sipapi.c:923:20: error: ‘LUA_GLOBALSINDEX’ undeclared (first use
>     in this
>     function)
>         lua_pushvalue(L, LUA_GLOBALSINDEX);
>
>     On 16.12.19 11:49, johan wrote:
>     > Hi,
>     >
>     > the system doesn't find lua.h
>     >
>     > make[2]: Entering directory '/usr/src/opensips-3.0/modules/lua'
>     > Compiling sipapi.c
>     > sipapi.c:27:17: fatal error: lua.h: No such file or directory
>     >  #include <lua.h>
>     >                  ^
>     > compilation terminated.
>     > ../../Makefile.rules:25: recipe for target 'sipapi.o' failed
>     > make[2]: *** [sipapi.o] Error 1
>     > make[2]: Leaving directory '/usr/src/opensips-3.0/modules/lua'
>     > Makefile:197: recipe for target 'modules' failed
>     > make[1]: *** [modules] Error 2
>     > make[1]: Leaving directory '/usr/src/opensips-3.0'
>     >
>     >
>     > however:
>     >
>     > root at opensips30:/usr/include/lua# ls
>     > lauxlib.h  luaconf.h  lua.h  lua.hpp  lualib.h
>     >
>     >
>     > Can somebody please tell ne what I do wrong ?
>     >
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> -- 
> Regards,
>
> David Villasmil
> email: david.villasmil.work at gmail.com 
> <mailto:david.villasmil.work at gmail.com>
> phone: +34669448337
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191216/f44df580/attachment.html>


More information about the Users mailing list