Re: Error with GnuGk, Lua and LuaSql: undefined symbol: lua_settop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I used the LUA libary that ships with Ubuntu 18.04, but the static
version. Compiling with the shared libarary is the default.

Jan

-- 
Jan Willamowius, Founder of the GNU Gatekeeper Project
EMail  : jan@xxxxxxxxxxxxxx
Website: https://www.gnugk.org
Support: https://www.willamowius.com/gnugk-support.html

Relaxed Communications GmbH
Frahmredder 91, 22393 Hamburg, Germany
Geschäftsführer: Jan Willamowius
HRB 125261 (Amtsgericht Hamburg)
USt-IdNr: DE286003584


pierlu via gnugk-users wrote:
> Hi Jan,
> 
> I am using the executable you provide on gnugk website, so I guess that Lua
> is statically linked. Given that I am trying to load a shared library that
> may be the issue.
> 
> Can I ask you which version of Lua you used when compiling? I may try using
> the same exact version.
> 
> Otherwise I wonder if I can compile GnuGk myself so that Lua is dinamically
> linked... I was looking thru the configure file: is it there where I have
> to look to try to achieve that?
> 
> Thank you, pierlu.
> 
> On Fri, Feb 22, 2019 at 3:51 PM Jan Willamowius via gnugk-users <
> gnugk-users@xxxxxxxxxxxxxxx> wrote:
> 
> > Hi pierlu,
> >
> > Is LUA linked static or shared into your GnuGk ?
> >
> > I think LUA has an issue loading shared libraries when
> > it is itself linked static and not shared into GnuGk.
> >
> > Regards,
> > Jan
> >
> > --
> > Jan Willamowius, Founder of the GNU Gatekeeper Project
> > EMail  : jan@xxxxxxxxxxxxxx
> > Website: https://www.gnugk.org
> > Support: https://www.willamowius.com/gnugk-support.html
> >
> > Relaxed Communications GmbH
> > Frahmredder 91, 22393 Hamburg, Germany
> > Geschäftsführer: Jan Willamowius
> > HRB 125261 (Amtsgericht Hamburg)
> > USt-IdNr: DE286003584
> >
> >
> > pierlu via gnugk-users wrote:  
> > > Hi,
> > >
> > > briefly: I can easily connect to MySql databases with Lua scripts by  
> > using  
> > > the luasql.mysql module; to use it I simply enter the following line in  
> > the  
> > > script
> > >
> > > luasql = require("luasql.mysql")
> > >
> > > When I try to incorporate mysql connectivity into Lua scripts used by  
> > GnuGk  
> > > I get an error which goes like this:
> > >
> > > LUA Error in LUA script: error
> > >         loading module 'luasql.mysql' from file '/usr/local/lib/lua/5.2/
> > >         /usr/local/lib/lua/5.2/luasql/mysql.so: undefined symbol:
> > > lua\_settop
> > >
> > > But if I use simple Lua scripts (i.e. without requiring Mysql module)  
> > GnuGk  
> > > executes them no prob.
> > >
> > > Do you have any ideas on why I am receiving that error in GnuGk?
> > >
> > > I am using GnuGk 5.1 on Ubuntu 18.04.2 with Lua 5.2.4 and LuaSql 2.4.0.
> > > Both Lua and LuaSql where compiled from source.
> > >
> > > Thanks,
> > > pierlu  
_______________________________________________________

Posting: mailto:gnugk-users@xxxxxxxxxxxxxxx
Archive: https://lists.gnugk.org/pipermail/gnugk-users/
Unsubscribe: https://lists.gnugk.org/lists/listinfo/gnugk-users
Homepage: https://www.gnugk.org/




[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux