lua-users home
lua-l archive

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


On Wed, Nov 2, 2011 at 11:36 AM, Benoit Germain <bnt.germain@gmail.com> wrote:
>
> 2011/11/2 Thijs Koerselman <thijskoerselman@gmail.com>
>>
>> Trying to use LuaLanes on a the new Ubuntu with kernel 3.0 I'm getting the
>> following error on both 32 and 64bit systems.
>> lua51-lanes.so: undefined symbol: pthread_mutexattr_settype
>> Here are the libraries that are linked to:
>>  ldd sandbox/lib/lua/5.1//lua51-lanes.so
>> linux-vdso.so.1 =>  (0x00007fff6e34d000)
>> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9394d0d000)
>> /lib64/ld-linux-x86-64.so.2 (0x00007f93952df000)
>> Any ideas how to fix this? I installed lualanes using luarocks.
>> Thijs
>
> Unfortunately, none at all. This looks like a pre-built rock that depends on
> something that changed in the pthread library. The only rockspecs I provide
> build Lanes from sources. I suppose that would get you a build error
> instead. But since I have no Ubuntu handy, all this is wild speculation...

Yes, the official LuaRocks repositories contain only source rocks (not
binary rocks) for Linux.

I don't know how things work in the recent Ubuntu, but in my system I
just built Lanes with LuaRocks and I have libpthread.so.0 listed in
the output of `ldd lua51-lanes.so` (and I did spot "-lpthread" in the
gcc command during compilation).

You may want to try to `luarocks remove lanes` and then `luarocks
build lanes` again and see if you notice anything strange.

-- Hisham
http://hisham.hm/ - http://luarocks.org/