LuaLanes / lanes

Lanes is a lightweight, native, lazy evaluating multithreading library for Lua 5.1 to 5.4.
Other
436 stars 93 forks source link

Symbol not found: _LG_cancel_test #200

Closed ValeryKV closed 2 years ago

ValeryKV commented 2 years ago

I installed lualanes via luarocks for lua 5.3 on macOS. The call local lanes = require "lanes".configure() returns dlopen(.luarocks/lib/lua/5.3/lanes/core.so, 6): Symbol not found: _LG_cancel_test

benoit-germain commented 2 years ago

That's strange. This function is not part of Lane's public C API. It is declared in cancel.h, implemented in cancel.c, referenced in lanes.c. Therefore, core.so could not even have been successfully linked if the function was missing.

ValeryKV commented 2 years ago

Possible luarocks issue. I will investigate.

ValeryKV commented 2 years ago

lanes-3.15.1-0.rockspec does not include cancel.c in sources.

benoit-germain commented 2 years ago

huh. cancel.c is two years old. I wonder how it escaped notice until now...

benoit-germain commented 2 years ago

rockspeck is now fixed and uploaded to luarocks.org.