lua-users home
lua-l archive

Re: freebsd: lhf's lposix -> "undefined symbol lua_touserdata"

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


Clemens:
With a fresh lua-5.0.2.tar.gz:
uncomment line 28 in "config":
LOADLIB= -DUSE_DLOPEN=1
don't touch line 29
then:
$ make
$ make so
$ make sobin
at the lposix directory:
put your lua root path in line 4, then:
$ make lposix.so
add following two lines at top of test.lua:
local finit = loadlib( './lposix.so', 'luaopen_posix')
finit( )
finally:
$ export LD_LIBRARY_PATH=.:/your-lua-path/lib
$ /your-lua-path/bin/lua test.lua
It works ok in FreeBSD 4.10-RELEASE
Good luck,
Daniel

AltStyle によって変換されたページ (->オリジナル) /