Displaying 3 results from an estimated 3 matches for "lua_getfield".
2012 Nov 23
1
[PATCH] lua: fix build error due to LUA_GLOBALSINDEX usage
...on(+), 1 deletion(-)
diff --git a/generator/lua.ml b/generator/lua.ml
index 88748ae..7461cbd 100644
--- a/generator/lua.ml
+++ b/generator/lua.ml
@@ -723,7 +723,7 @@ push_int64_array (lua_State *L, const int64_t *array, size_t len)
static void
print_any (lua_State *L, int index, FILE *out)
{
- lua_getfield (L, LUA_GLOBALSINDEX, \"tostring\");
+ lua_getglobal(L, \"tostring\");
lua_pushvalue (L, index >= 0 ? index : index-1);
lua_call (L, 1, 1);
fprintf (out, \"%%s\", luaL_checkstring (L, -1));
--
1.8.0
2011 Feb 24
1
extensions.lua with luasql.mysql.
...I reload the module
pbx_lua.so the following error appears:
[Feb 24 16:59:29] ERROR[30749]: pbx_lua.c:1249 exec: Error executing lua
extension: error loading module 'luasql.mysql' from file
'/usr/lib/lua/5.1/luasql/mysql.so':
/usr/lib/lua/5.1/luasql/mysql.so: undefined symbol: lua_getfield
stack traceback:
[C]: ?
[C]: in function 'require'
[string "extensions.lua"]:205: in function <[string
"extensions.lua"]:204>
I tested my script with a file.lua and works ok and the extensions.lua works
fine too. My extensions.lua:
extensions = {...
2012 Nov 19
2
install errors for libguestfs-1.19.60
I've been using libguestfs-1.18.9 but decided to "upgrade" to 1.19.60.
Using Ubuntu 12.04 with the older version installed via source.
So I went through the same process with the new version of guestfs sources
and got the following errors on 'make install':
make[2]: Nothing to be done for `install-exec-am'.
make install-data-hook
make[3]: Entering directory