I get the following error, when I try to start Apache: apache2: Syntax error on line 114 of /etc/apache2/httpd.conf: Cannot load /usr/lib64/apache2/modules/mod_lua.so into server: /usr/lib64/apache2/modules/mod_lua.so: undefined symbol: luaL_openlib
I'm attaching the patch which seems to fix this problem. According to [1], luaL_openlib() function was replaced by luaL_register(). [1] http://www.lua.org/manual/5.1/manual.html#7.3 -- Arfrever Frehtes Taifersar Arahesis
Index: modules/lua/lua_apr.c
===================================================================
--- modules/lua/lua_apr.c (revision 784638)
+++ modules/lua/lua_apr.c (working copy)
@@ -75,7 +75,7 @@
AP_LUA_DECLARE(int) ap_lua_init(lua_State *L, apr_pool_t *p)
{
luaL_newmetatable(L, "Apr.Table");
- luaL_openlib(L, "apr_table", lua_table_methods, 0);
+ luaL_register(L, "apr_table", lua_table_methods);
lua_pushstring(L, "__index");
lua_pushstring(L, "get");
lua_gettable(L, 2);
signature.asc
Description: This is a digitally signed message part.
