lua.o: In function `docall':
lua.c:(.text+0x15e): undefined reference to `signal'
Кажется, в libc не хватает чего-то (сигналов, угу). Подскажите, что с этим можно сделать, пожалуйста.
Помогут в том числе любые полезные ссылки.
upd: код вот такой... может быть, его как-то поправить можно, чтобы обойтись без сигналов?
Code: Select all
static int docall (lua_State *L, int narg, int clear) {
int status;
int base = lua_gettop(L) - narg; /* function index */
lua_pushcfunction(L, traceback); /* push traceback function */
lua_insert(L, base); /* put it under chunk and args */
signal(SIGINT, laction);
status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base);
signal(SIGINT, SIG_DFL);
lua_remove(L, base); /* remove traceback function */
/* force a complete garbage collection in case of errors */
if (status != 0) lua_gc(L, LUA_GCCOLLECT, 0);
return status;
}