lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 26 April 2016 at 16:10, fixxer1982@gmail.com <fixxer1982@gmail.com> wrote:
> Hi
>
> I'm trying to recompile apt for rpm with liblua 5.2. Apt is needed as package manager for rpm which I'm also trying to update.
> During 'apt' configure process I have several errors. With lua 5.1 version apt package builds without any problems.
>
> Below I provide three links: build log, rpm-tmp file and info about building system:
> http://pastebin.com/VpXFB7SP
> http://pastebin.com/q7fkqkwY
> http://pastebin.com/gdPsCPzW
>
> I kindly ask for any opinion if we can somehow fix the problem. I'm not a programmer so the things going harder ...
>
> Best regards!
>
> --
> <fixxer1982@gmail.com>
>

The actual error is:

libtool: compile:  x86_64-mandriva-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I../include -I../include/apt-pkg -I.. -I./include -I. -DWITH_POSIX
-I/usr/include/libxml2 -D_RPM_4_4_COMPAT -O3 -ffast-math -march=native
-c lrexlib.c  -fPIC -DPIC -o .libs/libluaext_la-lrexlib.o
lrexlib.c:164:14: error: unknown type name 'luaL_reg'
 static const luaL_reg posixmeta[] = {

This indicates that 'luaext' uses `luaL_reg`, which was part of lua
5.1, but removed in 5.2.
You'll need to rewrite parts of luaext to use the new lua APIs.