i tried to build kamailio from latest master on debian jessie, but building app_lua module failed:
ls: cannot access /usr/local/lib/liblua*: No such file or directory ls: cannot access /usr/local/lib/liblua*: No such file or directory 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 (cc) [M app_lua.so] app_lua_mod.o In file included from app_lua_mod.c:35:0: app_lua_api.h:27:17: fatal error: lua.h: No such file or directory #include <lua.h> ^ compilation terminated. ../../Makefile.rules:97: recipe for target 'app_lua_mod.o' failed
in debian jessie, lua.h is in /usr/include/lua5.1 and the libs are installed like this (amd64 arch):
$ dpkg -L liblua5.1-0 /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0.0.0 /usr/lib/x86_64-linux-gnu/liblua5.1.so.0.0.0 /usr/share /usr/share/doc /usr/share/doc/liblua5.1-0 /usr/share/doc/liblua5.1-0/copyright /usr/share/doc/liblua5.1-0/README.Debian.gz /usr/share/doc/liblua5.1-0/changelog.Debian.gz /usr/share/doc/liblua5.1-0/changelog.gz /usr/lib/x86_64-linux-gnu/liblua5.1.so.0 /usr/lib/x86_64-linux-gnu/liblua5.1-c++.so.0
i noticed that there was some major changes in the Makefile 22 days ago, which may have caused this. earlier i have had no trouble with app_lua build in this environment.
-- juha
Hello,
is there any lua-config or pkg-config installed?
Cheers, Daniel
On 03/05/15 13:13, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
is there any lua-config or pkg-config installed?
I have pkg-config installed.
To Victor: I have customized the official contents of debian dir a bit for my environment and have not had any problems with it before the recent lua commit. Looks like I need to start again from the official debian dir and do my mods there.
-- Juha
Can you check how the lua compile and lib flags can be dumped with pkg-config? Maybe they changed the name for lua, used to be lua-5.1.
There is an option to list all packages that are available in pkg-config.
Cheers, Daniel
On 04/05/15 09:29, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
It turned out that my debian/rules missed
LIBDIR ?= lib/$(DEB_HOST_MULTIARCH)
It didn't matter in wheezy, but did in jessie. So there was nothing wrong with lua.
In order to avoid more problems later, I started again from pure kamailio jessie/debian. Since I want a single debian package that includes all the modules that I use in my config, i added a new custom module_group to Makefile.groups and then replaced in debian/rules kstandard group with my custom group and commented out making and installing the package groups. Is that the right approach?
-- Juha
Hi Juha,
On 05/03/2015 01:13 PM, Juha Heinanen wrote:
[snip]
I have no problem building app_lua on jessie:
root@e860e2e0dc90:/code# cat /etc/debian_version 8.0
git show --abbrev-commit | grep commit commit e1d68c3
the package you need is liblua5.1-dev
Hope this helps, Victor