Hello,

do you have pkg-config installed? This is a tool that helps locating libs and include files.

Cheers,
Daniel


On 31.03.18 11:13, Igor Olhovskiy wrote:
Hi!

A bit dumb question - how to specify lua.h file path to make command? It looks in 

ls: cannot access /usr/local/lib/liblua*: No such file or directory
ls: cannot access /usr/local/lib/liblua*: No such file or directory
CC (gcc) [M app_lua.so] app_lua_mod.o
In file included from app_lua_mod.c:34:0:
app_lua_api.h:25:17: fatal error: lua.h: No such file or directory
 #include <lua.h>
                 ^

But i’ve installed via apt-get install liblua5.2-dev, and lua.h is located at /usr/include/lua5.2/

Regards, Igor

On Mar 30, 2018, 6:41 PM +0300, Daniel-Constantin Mierla <miconda@gmail.com>, wrote:

Hello,

can you test with master branch, I pushed a commit for it -- if all ok, I will backport.

Cheers,
Daniel


On 30.03.18 14:47, Igor Olhovskiy wrote:
Hi!

Seems calling function KSR.sqlops.sql_num_rows(«sql_res») crashes Kamailio. At least I got this at 5.1.2 from debian repos with LUA.

Getting smth like

dev1 kernel: [5780693.247255] kamailio[20659]: segfault at 50b300000004 ip 00007f34d2f46fd6 sp 00007ffe1f0ac310 error 4 in sqlops.so[7f34d2f42000+1c000]

Regards, Igor


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--  
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com