[asterisk-users] Installing LUA
John A. Sullivan III
jsullivan at opensourcedevel.com
Thu Jun 18 14:34:46 CDT 2009
On Thu, 2009-06-18 at 14:20 -0500, Tilghman Lesher wrote:
> On Wednesday 17 June 2009 16:54:53 John A. Sullivan III wrote:
> > On Wed, 2009-06-17 at 15:43 -0500, Tilghman Lesher wrote:
> > > On Wednesday 17 June 2009 14:55:55 John A. Sullivan III wrote:
> > > > On Wed, 2009-06-17 at 14:18 -0500, Tilghman Lesher wrote:
> > > > > On Wednesday 17 June 2009 11:56:28 John A. Sullivan III wrote:
> > > > > > On Wed, 2009-06-17 at 12:44 -0400, Sean Bright wrote:
> > > > > > > Watkins, Bradley wrote:
> > > > > > > > One more bit of magic necessary here, as pbx/pbx_lua.c has
> > > > > > > > includes for: #include <lua5.1/lua.h>
> > > > > > > > #include <lua5.1/lauxlib.h>
> > > > > > > > #include <lua5.1/lualib.h>
> > > > > > > >
> > > > > > > > On Redhat-based systems, it needs to be:
> > > > > > > > #include <lua.h>
> > > > > > > > #include <lauxlib.h>
> > > > > > > > #include <lualib.h>
> > > > > > >
> > > > > > > Gah. OK. So the patch I supplied will find LUA at configure
> > > > > > > time but not compile time. This needs some more thought.
> > > > > >
> > > > > > Oops! Confirmed. menuselect found it but make failed. I'll make
> > > > > > the edits by hand and let you know how I fared - John
> > > > >
> > > > > Try this patch:
> > > > > http://asterisk.drunkcoder.com/patches/20090617__luafix.diff.txt
> > > >
> > > > Alas, the patch fails completely. The configure revision numbers look
> > > > very different. I am using the 1.6.1.1 tarball. I copied the patch
> > > > into the source directory (asterisk-1.6.1.1) and ran patch -p0 <
> > > > 20090617__luafix.diff.txt. It was a long list of failed hunks. What
> > > > next? Thanks - John
> > >
> > > The patch is actually derived from the current 1.6.1 SVN source, so any
> > > changes made since 1.6.1.1 was branched are the difference. Updated
> > > patch:
> > > http://asterisk.drunkcoder.com/patches/20090617__luafix__1.6.1.1.diff.txt
> >
> > The patch applied cleanly but Asterisk segfaulted on startup. I did not
> > see anything particularly suspicious in the console output - mostly
> > warnings and errors about realtime database connectivity that we have
> > not yet setup other than this message:
> >
> > [Jun 17 17:47:24] WARNING[30682]: loader.c:375 load_dynamic_module:
> > Error loading module 'app_directory.so': /usr/lib64/libc-client.so.1:
> > undefined symbol:
> > mm_dlog
> >
> > As much as I'd like, I don't think I have the code knowledge and I don't
> > have the time on this project to step through it with a debugger. What
> > next? Thanks - John
>
> The error above has zilch to do with pbx_lua, but rather with the compilation
> of app_directory against IMAP and the probable inability of your linker to
> find the correct IMAP libraries. You can prove this by adding 'noload =>
> app_directory.so' to your modules.conf and restarting Asterisk.
>
Yes, I didn't suspect it was related but tossed it in just in case.
Nonetheless, it is clear (at least to me) that lua is causing the
segfault. When I remove it, the segfault goes away. When I add it, the
segfault returns. Thanks - John
--
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan at opensourcedevel.com
http://www.spiritualoutreach.com
Making Christianity intelligible to secular society
More information about the asterisk-users
mailing list