lua-users home
lua-l archive

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


On Fri, Nov 30, 2012 at 3:11 PM, Jay Carlson <nop@nop.com> wrote:
> On Nov 30, 2012, at 4:31 PM, Chris Babcock wrote:
>
>> Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>>> require "rex_tre"
>> error loading module 'rex_tre' from file
>> '/home/usak/.luarocks/lib/lua/5.1/rex_tre.so':
>>       /home/usak/.luarocks/lib/lua/5.1/rex_tre.so: undefined symbol: tre_reganexec
>>
>> I have tre-devel installed and it appears to be the latest version -
>> 0.8.0. Lrexlib-tre installed without complaint using the --local
>> option. What could be wrong?
>
> Two hours ago, I wrote:
>
>> I would try looking at the output of the dynamic linker. Run lua like this, and you'll get spammed:
>>
>> $ LD_DEBUG=symbols lua
>>
>> Ignore all the initial output. (Once you start typing, you'll discover some symbols have not been resolved even once the prompt has been printed.) Once you require bit, you'll probably get some kind of failure instead of this:
>>
>> xxxxx: symbol=luaopen_bit;  lookup in file=/usr/lib/x86_64-linux-gnu/lua/5.1/bit.so
>

     19049:	symbol=tre_reganexec;  lookup in file=lua [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/libm.so.6 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/libdl.so.2 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/usr/lib/libreadline.so.5 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/usr/lib/libhistory.so.5 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/usr/lib/libncurses.so.5 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/libc.so.6 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/ld-linux.so.2 [0]
     19049:	symbol=tre_reganexec;  lookup in
file=/home/usak/.luarocks/lib/lua/5.1/rex_tre.so [0]
     19049:	symbol=tre_reganexec;  lookup in file=/usr/local/lib/libtre.so.4 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/libc.so.6 [0]
     19049:	symbol=tre_reganexec;  lookup in file=/lib/ld-linux.so.2 [0]
     19049:	/home/usak/.luarocks/lib/lua/5.1/rex_tre.so: error: symbol
lookup error: undefined symbol: tre_reganexec (fatal)
error loading module 'rex_tre' from file
'/home/usak/.luarocks/lib/lua/5.1/rex_tre.so':
	/home/usak/.luarocks/lib/lua/5.1/rex_tre.so: undefined symbol: tre_reganexec
stack traceback:
	[C]: ?
	[C]: in function 'require'
	stdin:1: in main chunk
	[C]: ?

Chris
--
Preference will be shown to scoring systems that emphasize solo victories.
    - Diplomacy World Cup Charter, section 7