lua-users home
lua-l archive

Re: Error compilling Lua-SDL2

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


On 23.06.2014 12:22, Bernd Eggink wrote:
When I tried to compile Lua-SDL2-2.0.3-1 on 64-bit Linux, I got:
-----
/usr/bin/ld: /usr/bin/liblua.a(lapi.o): relocation R_X86_64_32 against
`luaO_nilobject_' can not be used when making a shared object; recompile
with -fPIC
/usr/bin/liblua.a: could not read symbols: Bad value
-----
This went away after re-compiling Lua with -fPIC, but I'm not sure about
the consequences.
Argh, meanwhile I noticed some consequences... For eaxmple, require "posix" leads to /usr/bin/lua: error loading module 'posix_c' from file '/usr/lib/posix_c.so':
 dynamic libraries not enabled; check your Lua installation
And 'luarocks help' outputs:
lua: /usr/share/lua/5.2/luarocks/loader.lua:12: attempt to call global 'module' (a nil value).
So I re-re-compiled Lua without -fPIC, and my Lua-SDL2 problem persists.
- Bernd

AltStyle によって変換されたページ (->オリジナル) /