[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to update Lua to version 5.0
On Sun, 24 Aug 2003 13:20:00 -0300
Pedro Bastos <pmbas@samhaim.org> wrote:
> I haven't had an opportunity to test this specific issue yet. But as
> far as I'm concerned, it should work. What are the problems you're
> facing with it ? Are they OpenBSD-specific ?
Don't know how specific they are, maybe *BSD-specific. The first
thing is that loadlib.c wants RTLD_NOW but dlfcn.h doesn't define it.
Quoting the man page for dlopen(), "The second argument currently has
no effect, but should be set to DL_LAZY for future compatibility."
Hacking that in gets it to build.
Hmmm...I just finished messing with it some more and got it to work,
so maybe that's all there is to it. I'm using some shared libraries
from...
http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
I just got the posix one to work by changing the Makefile like so...
sge:/home/sge/src/lposix:68$ diff Makefile.ORIG Makefile
4c4
< LUA= /tmp/lhf/lua-5.0
---
> LUA= ../lua-5.0
28c28
< $(CC) -o $@ -shared $(OBJS)
---
> $(CC) -fPIC -shared -o $@ $(OBJS)
sge:/home/sge/src/lposix:69$
...which has nothing to do with the Lua port you submitted. Maybe a
flavor and a patch? I uncommented a line...
LOADLIB= -DUSE_DLOPEN=1
...in 'config' in the top level of the Lua 5.0 source tree to enable
shared libraries.
I know this is a little confused, but that's because I'm a little
confused. I've been thrashing around this, reading man pages, trying
ideas, whenever I could get a few spare moments. When I get a chance
I'll try starting from zero and see what I have to do to make it work.
Thanks,
Steve