lua-users home
lua-l archive

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


Thank you, that did the trick!

Gavin.

On Mon, 13 Aug 2007 09:46:27 -0300, "Leonardo Maciel"
<leonardo@maciel.org> said:
> Try appending "-lsocket -lresolv -lrt" to the default Linux LDFLAGS.
> It works for me.
> 
> > -----Original Message-----
> > From: lua-bounces@bazar2.conectiva.com.br 
> > [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of 
> > lua@gavinmckenzie.fastmail.fm
> > Sent: segunda-feira, 13 de agosto de 2007 00:41
> > To: Lua list
> > Subject: Trying to build LuaSocket on Solaris-10 x86
> > 
> > Folks,
> > 
> > I've built and installed Lua 5.1.2 on my x86 Solaris 10 box.
> > And, I've managed to make and install LuaSocket on the box.
> > In both cases I took care to ensure that I was using gmake/gcc.
> > Now, if I fire up Lua and do a require 'socket', I get:
> > 
> > error loading module 'socket.core' from file
> > '/usr/local/lib/lua/5.1/socket/core.so':
> >         ld.so.1: lua: fatal: relocation error: file
> >         /usr/local/lib/lua/5.1/socket/core.so: symbol h_errno:
> >         referenced symbol not found
> > stack traceback:
> >         [C]: ?
> >         [C]: in function 'require'
> >         /usr/local/share/lua/5.1/socket.lua:13: in main chunk
> >         [C]: in function 'require'
> >         stdin:1: in main chunk
> >         [C]: ?
> > 
> > Any guidance is appreciated.
> > 
> > Gavin.
> > 
> > 
>