On Mon, 2009-12-14 at 19:00 +0100, Enrico Tassi wrote:
> Package: liblua5.1-csnd
> Version: 1:5.11.1~dfsg-2
> Severity: grave
> ta...@birba:/tmp$ lua
> Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> > require 'csnd'
> error loading module 'csnd' from file '/usr/lib/lua/5.1/csnd.so':
>       /usr/lib/lua/5.1/csnd.so: undefined symbol: luaopen_csnd
> stack traceback:
>       [C]: ?
>       [C]: in function 'require'
>       stdin:1: in main chunk
>       [C]: ?
> > 
> 
> If we look at objdump:
> ta...@birba:/tmp$ objdump -T /usr/lib/lua/5.1/csnd.so | grep luaopen
> 0000000000017880 g    DF .text        00000000000000b7  Base        
> _Z20luaopen_luaCsnd_userP9lua_State
> 00000000002a0a60 g    DO .data        0000000000000008  Base        
> luaopen_luaCsnd_luacode
> 0000000000019560 g    DF .text        0000000000000dc4  Base        
> luaopen_luaCsnd
> 
> It seems some extern "C" directives are missing, since symbols 
> names are mangled according to C++ conventions, while Lua expects
> the entrypoint to be called luaopen_csnd.

The module changed name and I didn't notice that. Renaming it to luaCsnd
and requiring 'luaCsnd' fixes the issue. I'll rename the package
accordingly (liblua5.1-luacsnd).


-- 
Saludos,
Felipe Sateler

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to