lua-users home
lua-l archive

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


Yep.

https://github.com/luaposix/luaposix/issues/71

Alexander.

On Sat, Mar 16, 2013 at 9:57 PM, Hisham <h@hisham.hm> wrote:
> lua_tointegerx is a Lua 5.2 function. I wonder if LuaPosix broke
> compatibility with 5.1 or if it's configure script got confused. Do you have
> both Lua 5.1 and 5.2 installed?
>
> On Mar 16, 2013 2:05 PM, "Laurent Faillie" <l_faillie@yahoo.com> wrote:
>>
>> Hi,
>>
>> I'm facing following error when trying to use LuaPosix w/ 5.1 :
>>
>> lua dir.lua
>> lua: error loading module 'posix_c' from file
>> '/usr/lib64/lua/luarocks/lib/lua/5.1/posix_c.so':
>>     /usr/lib64/lua/luarocks/lib/lua/5.1/posix_c.so: undefined symbol:
>> lua_tointegerx
>> stack traceback:
>>     [C]: ?
>>     [C]: in function 'require'
>>     /usr/lib64/lua/luarocks/share/lua/5.1/posix.lua:2: in main chunk
>>     [C]: in function 'require'
>>     dir.lua:1: in main chunk
>>     [C]: ?
>>
>> I found several pages on the web but all regarding lua_tointeger
>> (without 'x'). One of them tell it's probably because the library hasn't
>> been linked against liblua
>> (http://web.archiveorange.com/archive/v/Fh9mPAiX2yWziICEhHy4) and it's
>> true I don't see it at compilation time :
>>
>> make[1] : on entre dans le répertoire «
>> /tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
>>   CC     posix_c_la-lposix.lo
>>   CCLD   posix_c.la
>>   CC     lcurses.lo
>>   CCLD   curses_c.la
>> make[1] : on quitte le répertoire «
>> /tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
>> make install
>> make[1] : on entre dans le répertoire «
>> /tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
>>  /bin/mkdir -p
>> '/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib'
>>  /bin/sh ./libtool   --mode=install /usr/bin/install -c   posix_c.la
>> curses_c.la
>> '/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib'
>> libtool: install: /usr/bin/install -c .libs/posix_c.so
>>
>> /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/posix_c.so
>> libtool: install: /usr/bin/install -c .libs/posix_c.lai
>>
>> /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/posix_c.la
>> libtool: install: /usr/bin/install -c .libs/curses_c.so
>>
>> /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/curses_c.so
>> libtool: install: /usr/bin/install -c .libs/curses_c.lai
>>
>> /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/curses_c.la
>> libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n
>> /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib
>> ----------------------------------------------------------------------
>> Libraries have been installed in:
>>    /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib
>>
>> Any clue ?
>>
>> Thanks
>>
>