[sr-dev] app_lua warning

Daniel-Constantin Mierla miconda at gmail.com
Sun Jan 23 19:53:38 CET 2022


I just pushed a commit for it. Should fix it.

Cheers,
Daniel

On 23.01.22 12:02, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> the function ksr_luaL_openlib_mode() should be used only for Lua 5.4 (or
>> greater), do you have also that version installed?
> No, I only have these:
>
> $ dpkg -l | grep lua
> ii  liblua5.1-0:amd64                    5.1.5-8.1+b3                          amd64        Shared library for the Lua interpreter version 5.1
> ii  liblua5.1-0-dev:amd64                5.1.5-8.1+b3                          amd64        Development files for the Lua language version 5.1
>
>> 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.
> make[3]: Entering directory '/build/opensipg-sip-proxy-5.6/src/modules/app_lua'
> gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/opensipg-sip-proxy-5.6=. -fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   -DNAME='"sip-proxy"' -DVERSION='"5.6.0-0b24"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 10.2.1"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5006000 -DCFG_DIR='"/etc/sip-proxy/"' -DSHARE_DIR='"/usr/share/sip-proxy/"' -DRUN_DIR='"/run/sip-proxy"' -DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT  -I/usr/include/lua5.1 -DMOD_NAME='"app_lua"' -c app_lua_api.c -o app_lua_api.o -MMD -MP
> 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
>
>> Also, you can see what pkg-config lists for lua:
>>
>> pkg-config --list-all | grep -i lua
> $ pkg-config --list-all | grep -i lua
> lua-5.1               Lua - Lua language engine
> lua-5.1-c++           Lua - Lua language engine
> lua5.1                Lua - Lua language engine
> lua5.1-c++            Lua - Lua language engine
> lua51                 Lua - Lua language engine
> lua51-c++             Lua - Lua language engine
>
> -- Juha

-- 
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