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
>
Code: Select all
socket = require("socket")
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!
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!
That's a mystery for me. Could you, pretty please explain and suggest workaround? Or is it a bug?