[sr-dev] app_lua warning

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 23 11:48:12 CET 2022


Hello,

the function ksr_luaL_openlib_mode() should be used only for Lua 5.4 (or
greater), do you have also that version installed?

Can you go to src/modules/app_lua folder and do:

make clean

make Q=0

then paste here the compile output? It should help seeing the compile flags.

Also, you can see what pkg-config lists for lua:

pkg-config --list-all | grep -i lua

Cheers,
Daniel

On 22.01.22 19:28, Juha Heinanen wrote:
> I noticed that master build on Debian 11 with
>
> ii  liblua5.1-0-dev:amd64                5.1.5-8.1+b3                          amd64        Development files for the Lua language version 5.1
>
> gave compiler warning:
>
> CC (gcc) [M app_lua.so]		app_lua_api.o
> app_lua_api.c: In function 'ksr_luaL_openlib_mode':
> app_lua_api.c:221:4: warning: implicit declaration of function 'luaL_setfuncs'; did you mean 'lua_setfenv'? [-Wimplicit-function-declaration]
>   221 |    luaL_setfuncs(L, lfuncs, 0);
>       |    ^~~~~~~~~~~~~
>       |    lua_setfenv
>
> I have not defined LUAJIT="yes" in the build.
>
> -- Juha
>
> _______________________________________________
> Kamailio (SER) - Development Mailing List
> sr-dev at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/




More information about the sr-dev mailing list