[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaLanes on Ubuntu 11.10, kernel 3.0
- From: Philipp Janda <siffiejoe@...>
- Date: Mon, 07 Nov 2011 14:43:49 +0100
Hi!
On 07.11.2011 12:07, Thijs Koerselman wrote:
On Sun, Nov 6, 2011 at 8:22 PM, Benoit Germain<bnt.germain@gmail.com>wrote:
You can grab a snapshot at https://github.com/LuaLanes/lanes. I don't
know where to access it when it is retrieved by LuaRocks though.
I tried compiling manually and I don't see anything weird but it keeps
linking to the same libraries. I added -lpthread but that didn't make a
difference.
The correct commandline switch is -pthread (no l, see 'man gcc'). This
takes care of preprocessor *and* linker settings.
The luarocks build of lanes on my Ubuntu 11.10 is broken as well.
Compiling manually (using -pthread in CFLAGS and LIBS and replacing
-Werror with -Wextra) gives some warnings:
lanes.c: In function ‘LG_set_debug_threadname’:
lanes.c:1208:14: warning: variable ‘threadName’ set but not used
[-Wunused-but-set-variable]
lanes.c: In function ‘LG_wakeup_conv’:
lanes.c:1918:12: warning: missing initializer [-Wmissing-field-initializers]
lanes.c:1918:12: warning: (near initialization for ‘tm.tm_min’)
[-Wmissing-field-initializers]
threading.c: In function ‘THREAD_WAIT’:
threading.c:663:33: warning: unused parameter ‘ref’ [-Wunused-parameter]
tools.c: In function ‘inter_copy_func’:
tools.c:932:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
tools.c:945:14: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]
... and an assertion failure during make test:
lua5.1: lanes.c:869: selfdestruct_remove: Assertion `found' failed.
Aborted (core dumped)
This is for the source rock from the luarocks repository. A current
download from github gives some more warnings and no assertion failure
during 'make test', but it freezes instead:
*** glibc detected *** /usr/bin/lua5.1: double free or corruption
(!prev): 0x096eaab8 ***
Philipp
- References:
- LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Hisham
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Benoit Germain
- Re: LuaLanes on Ubuntu 11.10, kernel 3.0, Thijs Koerselman