[asterisk-bugs] [Asterisk 0018671]: Command 'module load pbx_lua.so' failed

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 25 03:12:48 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18671 
====================================================================== 
Reported By:                Igels
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18671
Category:                   PBX/pbx_lua
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-01-25 02:35 CST
Last Modified:              2011-01-25 03:12 CST
====================================================================== 
Summary:                    Command 'module load pbx_lua.so' failed
Description: 
AstiMile*CLI> module load pbx_lua.so
Unable to load module pbx_lua.so
Command 'module load pbx_lua.so' failed.
[Jan 25 11:23:25] ERROR[18899]: pbx_lua.c:1434 load_or_reload_lua_stuff:
Error loading extensions.lua: 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
AstiMile*CLI> /usr/lib/lua/5.1/luasql/mysql.so: undefined symbol:
lua_getfield
====================================================================== 

---------------------------------------------------------------------- 
 (0130986) Igels (reporter) - 2011-01-25 03:12
 https://issues.asterisk.org/view.php?id=18671#c130986 
---------------------------------------------------------------------- 
--- ./pbx_lua.c-old     2010-07-20 23:35:02.000000000 +0400
+++ ./pbx_lua.c 2011-01-25 11:29:50.597843774 +0300
@@ -30,7 +30,7 @@

 #include "asterisk.h"

-ASTERISK_FILE_VERSION(__FILE__, "$Revision: 278132 $")
+ASTERISK_FILE_VERSION(__FILE__, "$Revision: 265748 $")

 #include "asterisk/logger.h"
 #include "asterisk/channel.h"
@@ -84,7 +84,7 @@
 static void lua_create_autoservice_functions(lua_State *L);
 static void lua_create_hangup_function(lua_State *L);

-static void lua_state_destroy(void *data);
+void lua_state_destroy(void *data);
 static lua_State *lua_get_state(struct ast_channel *chan);

 static int exists(struct ast_channel *chan, const char *context, const
char *exten, int priority, const char *callerid, const char *data);
@@ -93,8 +93,8 @@
 static int exec(struct ast_channel *chan, const char *context, const char
*exten, int priority, const char *callerid, const char *data);

 AST_MUTEX_DEFINE_STATIC(config_file_lock);
-static char *config_file_data = NULL;
-static long config_file_size = 0;
+char *config_file_data = NULL;
+long config_file_size = 0;

 static struct ast_context *local_contexts = NULL;
 static struct ast_hashtab *local_table = NULL;
@@ -108,7 +108,7 @@
 /*!
  * \brief The destructor for lua_datastore
  */
-static void lua_state_destroy(void *data)
+void lua_state_destroy(void *data)
 {
        if (data)
                lua_close(data);
@@ -1467,7 +1467,7 @@
        return AST_MODULE_LOAD_SUCCESS;
 }

-AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "Lua PBX Switch",
+AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS, "Lua PBX
Switch",
                .load = load_module,
                .unload = unload_module,
                .reload = reload, 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-25 03:12 Igels          Note Added: 0130986                          
======================================================================




More information about the asterisk-bugs mailing list