[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loading shared libraries on OpenBSD
- From: Steve Elkins <sgelkins@...>
- Date: Sat, 23 Aug 2003 15:57:56 -0400
On Sat, 23 Aug 2003 14:19:57 -0400
Thatcher Ulrich <tu@tulrich.com> wrote:
> On Fri, Aug 22, 2003 at 08:43:25PM -0400, Steve Elkins wrote:
> > Does anyone have this working?
> >
> > If so, will you please tell me what tweaks you made to config and/or
> > the Makefile(s)?
>
> If you just need a Lua with shared-lib support that works, you could
> try luacheia [ http://luacheia.lua-users.org ]. It uses libtool for
> building its shared libs, which is a bit obfuscated, so I don't know
> specifically what it does for OpenBSD, short of trawling through the
> ltmain.sh and libtool scripts.
Thanks, I tried to build luacheia5-5.0.0a1 and it broke twice. The
1st I got past by changing RTLD_NOW to DL_LAZY, the only value
available in dlfcn.h and the one recommended by the man page for
dlopen() and friends, but I can't test the hack because of ...
gcc -fPIC -DLUA_USERCONFIG=\"luacheia.h\" -DUSE_LOADLIB=2 -DLOADLIB_API= -g -O2 -o .libs/luacheia5 luacheia.o readline.o loadlib.o -L/home/sge/src/luacheia5-5.0.0a1/src/libcheia -lcheia -lreadline -ltermcap -lcurses -L/home/sge/src/luacheia5-5.0.0a1/lua-5.0-proxy -L/home/sge/src/luacheia5-5.0.0a1/lua-5.0-proxy/.libs -llualib -llua -lm -Wl,-rpath,/usr/local/lib
loadmodule.c:171: Undefined symbol `_loadlib_open' referenced from text segment
loadmodule.c:190: Undefined symbol `_loadlib_error' referenced from text segment
loadmodule.c:199: Undefined symbol `_loadlib_func' referenced from text segment
loadmodule.c:200: Undefined symbol `_loadlib_func' referenced from text segment
loadmodule.c:205: Undefined symbol `_loadlib_close' referenced from text segment
loadmodule.c:210: Undefined symbol `_loadlib_error' referenced from text segment
loadmodule.c:219: Undefined symbol `_loadlib_close' referenced from text segment
loadmodule.c:278: Undefined symbol `_loadlib_close' referenced from text segment
gluahost.c:302: Undefined symbol `_loadlib_open' referenced from text segment
gluahost.c:359: Undefined symbol `_loadlib_close' referenced from text segment
gluahost.c:384: Undefined symbol `_loadlib_error' referenced from text segment
collect2: ld returned 1 exit status
gmake[3]: *** [luacheia5] Error 1
gmake[3]: Leaving directory `/home/sge/src/luacheia5-5.0.0a1/src/luacheia'
... and so it gives up. If you're interested I can send you all the
output from ./config etc. but I don't feel like I should send it to
the list unless asked.
It's frustrating because lua 5 works fine here and so do shared
libraries, but I haven't gotten them going together.
Thanks anyway,
Steve