[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: 5.1 beta problem linking luac against .so
- From: John Belmonte <john@...>
- Date: Wed, 23 Nov 2005 09:02:43 -0500
I can link lua interpreter against the .so form of the Lua library, but
when linking luac the following undefined's come up:
luac.o: In function `pmain':
luac.c:(.text+0x1f2): undefined reference to `luaF_newproto'
luac.c:(.text+0x235): undefined reference to `luaS_newlstr'
luac.c:(.text+0x26d): undefined reference to `luaM_realloc_'
luac.c:(.text+0x29c): undefined reference to `luaM_realloc_'
luac.c:(.text+0x31c): undefined reference to `luaU_dump'
luac.c:(.text+0x362): undefined reference to `luaM_toobig'
luac.c:(.text+0x389): undefined reference to `luaM_toobig'
luac.c:(.text+0x47a): undefined reference to `luaD_growstack'
print.o: In function `luaU_print':
print.c:(.text+0x418): undefined reference to `luaP_opnames'
print.c:(.text+0x429): undefined reference to `luaP_opmodes'
print.c:(.text+0x67c): undefined reference to `luaP_opmodes'
If I remove the "__attribute__((visibility("hidden")))" from LUAI_FUNC
and LUAI_DATA in luaconf.h then the link is OK. I suspect that luac is
accessing some internals of the Lua library. The functions and data
required by luac will have to be exported.
--John