Page 1 of 1

VLC can't load .so library in Linux

Posted: 08 Apr 2013 04:37
by snark.real
Hello again!
I've faced some strange problem in Archlinux with lua51-socket-2.0.2-5 library package
When I run lua5.1 interpreter, it loads luasocket correctly although I tested that VLC uses lua 5.1:

Code: Select all

Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(_VERSION) Lua 5.1 > socket = require("socket") > print(socket) table: 0x21f7d50 >
But when I put the same

Code: Select all

socket = require("socket")
in my plugin, VLC gives me

Code: Select all

[0x7f792c09e418] lua generic warning: Error loading script /home/snark/.local/share/vlc/lua/extensions/plugin.lua: error loading module 'socket.core' from file '/usr/lib/lua/5.1/socket/core.so': /usr/lib/lua/5.1/socket/core.so: undefined symbol: lua_gettop [0x7f792c09e418] lua generic error: Could not activate extension!
Then I've tried another library ("lua51-filesystem"),trying to guess if there are problems in luasocket library. It seems, they are not:

Code: Select all

[0x7f05e42a2a18] lua generic warning: Error loading script /home/demax/.local/share/vlc/lua/extensions/cinemate.lua: error loading module 'lfs' from file '/usr/lib/lua/5.1/lfs.so': /usr/lib/lua/5.1/lfs.so: undefined symbol: lua_gettop [0x7f05e42a2a18] lua generic error: Could not activate extension!
BTW, my VLC is version "2.0.5 Twoflower" (27 March 2013)

That's a mystery for me. Could you, pretty please explain and suggest workaround? Or is it a bug?