[asterisk-bugs] [JIRA] (ASTERISK-24194) Loading AST_MODFLAG_DEFAULT in pbx_lua.c causes undefined symbol error
George Joseph (JIRA)
noreply at issues.asterisk.org
Fri Aug 8 11:38:29 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-24194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Joseph closed ASTERISK-24194.
------------------------------------
Resolution: Duplicate
Target Release Version/s: 11.12.0
Duplicate of ASTERISK-23818
Patch can be found here... https://reviewboard.asterisk.org/r/3891/
> Loading AST_MODFLAG_DEFAULT in pbx_lua.c causes undefined symbol error
> ----------------------------------------------------------------------
>
> Key: ASTERISK-24194
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-24194
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: PBX/pbx_lua
> Affects Versions: 11.11.0
> Environment: CentOS 6.5 x64
> Linux 2.6.32-431.1.2.0.1.el6.x86_64
> Lua 5.1.4
> Reporter: Eric Howey
> Assignee: George Joseph
> Target Release: 11.12.0
>
>
> When calling an outside lua library, such as lua-sql-mysql, the library fails to load. After searching on this issue, it appears to be resolved once before in ASTERISK-17279, but after looking through the changelog for 11.11.0, it was reverted back to its original setting in r416581-416668. This change triggers the same issue that was first found in ASTERISK-17279. Simply replacing AST_MODFLAG_DEFAULT with AST_MODFLAG_GLOBAL_SYMBOLS in pbx_lua.c resolves the issue at hand.
> {quote}
> ERROR[3275][C-00000001] pbx_lua.c: Error executing lua extension:
> error loading module 'luasql.mysql' from file '/usr/lib64/lua/5.1/luasql/mysql.so':
> /usr/lib64/lua/5.1/luasql/mysql.so: undefined symbol: lua_getfield
> stack traceback:
> [C]: ?
> [C]: in function 'require'
> dialplan/db.lua:15: in function 'open'
> dialplan/find.lua:420: in function 'pstnExten'
> dialplan/main.lua:64: in function <dialplan/main.lua:52>
> {quote}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list