The lua module compiles ok, but fails to load.
> rrd=require("rrd")
error loading module 'rrd' from file '/usr/lib/lua/rrd.so':
Error relocating /usr/lib/lua/rrd.so: rrd_restore: symbol not found
stack traceback:
[C]: ?
[C]: in function 'require'
Signed-off-by: Karl Palsson <karlp@etactica.com>
return 0;
}
+#ifdef HAVE_RRD_RESTORE
static int
lua_rrd_restore (lua_State * L)
{
rrd_common_call(L, "restore", rrd_restore);
return 0;
}
+#endif
static int
lua_rrd_tune (lua_State * L)
#endif
{"last", lua_rrd_last},
{"resize", lua_rrd_resize},
+#ifdef HAVE_RRD_RESTORE
{"restore", lua_rrd_restore},
+#endif
{"tune", lua_rrd_tune},
{"update", lua_rrd_update},
{"flushcached", lua_rrd_flushcached},