When I compile it though, I get this:
cd src && make LUA=/usr/bin/lua5.1
make[1]: Entering directory `/home/wolf/dev/lanes-3.6.0/src'
cc -Wall -Werror -O2 -I/usr/include/lua5.1 -D_GNU_SOURCE -fPIC -c -o lanes.o lanes.c
lanes.c: In function ‘LG_configure’:
lanes.c:2839:5: error: too many arguments to function
‘init_once_LOCKED’
lanes.c:2614:13: note: declared here
make[1]: *** [lanes.o] Error 1
make[1]: Leaving directory `/home/wolf/dev/lanes-3.6.0/src'
make: *** [src/lanes/core.so] Error 2
init_once_LOCKED is defined in the same file... is Lanes 3.6.0 buggy?
Many greetings,
Wolfgang
Am 02.07.2013 17:30 schröbte Wolfgang Schenke:
> Hi Lua community...
Hi!
>
> I want to build LuaLanes 2.0.10 on Linux (with Lua 5.1.5). No problem to compile it, but upon requiring 'lanes' one gets:
>
> ./lua: error loading module 'lanes' from file './lanes.so':
> ./lanes.so: undefined symbol: pthread_mutexattr_settype
>
> How can I resolve this?
I found this in the Makefile of Lanes 3.6.0:
ifeq "$(shell uname -s)" "Linux"
# -D_GNU_SOURCE needed for 'pthread_mutexattr_settype'
CFLAGS += -D_GNU_SOURCE -fPIC
>
> -Wolfgang
>
Philipp