impl.c: error: implicit declaration of function 'luaL_traceback'
When I tried to compile the latest Knot Resolver 5.1.0 for Turris OS 3.x series, where is used gcc 4.8.4, I am getting this error, which is treated as error due to gcc's option (-Werror=implicit-function-declaration).
../daemon/bindings/impl.c
../daemon/bindings/impl.c: In function 'lua_error_p':
../daemon/bindings/impl.c:52:2: error: implicit declaration of function 'luaL_traceback' [-Werror=implicit-function-declaration]
luaL_traceback(L, L, "error occured here (config filename:lineno is at the bottom, if config is involved):", 0);
^
cc1: some warnings being treated as errors
I'm not sure if there is a possibility to change the gcc option in Turris OS 3.x series as it is in maintenance mode.