Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find lua module compat53 #15

Open
RetroBonk opened this issue Dec 8, 2021 · 2 comments
Open

Cannot find lua module compat53 #15

RetroBonk opened this issue Dec 8, 2021 · 2 comments

Comments

@RetroBonk
Copy link

RetroBonk commented Dec 8, 2021

After compiling successfully on Ubuntu 20.04 and trying to run the executable:

config.lua:35: module 'compat53' not found:
	no field package.preload['compat53']
	no file '/usr/local/share/lua/5.3/compat53.lua'
	no file '/usr/local/share/lua/5.3/compat53/init.lua'
	no file '/usr/local/lib/lua/5.3/compat53.lua'
	no file '/usr/local/lib/lua/5.3/compat53/init.lua'
	no file '/usr/share/lua/5.3/compat53.lua'
	no file '/usr/share/lua/5.3/compat53/init.lua'
	no file './compat53.lua'
	no file './compat53/init.lua'
	no file '/usr/local/lib/lua/5.3/compat53.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/compat53.so'
	no file '/usr/lib/lua/5.3/compat53.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './compat53.so'Lua error while running script
throw was called and the exception is unknown
lua_tostring(): error: attempt to call a nil value
terminate called after throwing an instance of 'int'
Aborted (core dumped)

CFLAGS := -isystem /usr/include/fltk/ -Imdcomp/include/ -IautogeneratedBindings/ -Iluaposix/ext/include -Iluaposix_headers -Iiqa/include -I. -I/usr/include/lua5.3 -Ilua-compat-53/c-api -c

LDFLAGS := -flto=8 -O3 -march=native -fuse-linker-plugin -s -fno-rtti -std=gnu++14 -L/usr/lib/fltk/ -lfltk_images -lfltk -lpng -ljpeg -lXft -lXext -lXinerama -lX11 -lz -s -llua5.3 -ldl

@ComputerNerd
Copy link
Owner

ComputerNerd commented Jan 20, 2022

The software has a dependency on compat53 and bit32.

If you are using Arch Linux you can do the following:
pacman -S lua51-compat53 lua51-bit32

And it will resolve your problem.

@Nrezinorn
Copy link

Nrezinorn commented May 5, 2022

146 sudo pacman -S lua51-compat53 lua51-bit32
147 make clean
148 make

<artificial>:(.text+0x144d): undefined reference to `lua_newuserdatauv'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o:<artificial>:(.text+0x1c81): more undefined references to `lua_newuserdatauv' follow
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `moonfltk_checkpixmap(lua_State*, int, int*) [clone .constprop.0]':
<artificial>:(.text+0x3dc2): undefined reference to `luaL_len'
/usr/bin/ld: <artificial>:(.text+0x3dec): undefined reference to `lua_geti'
/usr/bin/ld: <artificial>:(.text+0x3e44): undefined reference to `lua_geti'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `mygetuid.constprop.0':
<artificial>:(.text+0x499b): undefined reference to `lua_isinteger'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `checkinteger.constprop.0':
<artificial>:(.text+0x4cb9): undefined reference to `lua_isinteger'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `checkinteger.constprop.1':
<artificial>:(.text+0x4d3f): undefined reference to `lua_isinteger'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `checkinteger.constprop.2':
<artificial>:(.text+0x4dc9): undefined reference to `lua_isinteger'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `tableToVector(lua_State*, unsigned int, std::vector<unsigned char, std::allocator<unsigned char> >&) [clone .constprop.0]':
<artificial>:(.text+0x5108): undefined reference to `lua_rawlen'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `tableToSS(lua_State*, unsigned int, std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&) [clone .constprop.0]':
<artificial>:(.text+0x53c4): undefined reference to `lua_rawlen'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `dub::checksdata(lua_State*, int, char const*, bool) [clone .constprop.0]':
<artificial>:(.text+0x558f): undefined reference to `lua_rotate'
/usr/bin/ld: <artificial>:(.text+0x55b1): undefined reference to `lua_rotate'
/usr/bin/ld: <artificial>:(.text+0x5679): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans22.ltrans.o: in function `dub::checksdata_n(lua_State*, int, char const*, bool) [clone .constprop.0]':
<artificial>:(.text+0x5809): undefined reference to `lua_rotate'
/usr/bin/ld: <artificial>:(.text+0x5821): undefined reference to `lua_rotate'
/usr/bin/ld: <artificial>:(.text+0x58eb): undefined reference to `lua_callk'
/usr/bin/ld: <artificial>:(.text+0x591a): undefined reference to `lua_rotate'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `moonfltk_udata_inherit.isra.0':
<artificial>:(.text+0x2d1): undefined reference to `luaL_getsubtable'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `moonfltk_udata_define.isra.0':
<artificial>:(.text+0x393): undefined reference to `luaL_getsubtable'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `startLuaConf(char const*, bool) [clone .constprop.0]':
<artificial>:(.text+0x1909): undefined reference to `lua_setglobal'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `moonfltk_open_main.isra.0':
<artificial>:(.text+0x654c): undefined reference to `luaL_getsubtable'
/usr/bin/ld: <artificial>:(.text+0x71b1): undefined reference to `lua_newuserdatauv'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `luaopen_posix_sys_socket.isra.0':
<artificial>:(.text+0x8f62): undefined reference to `luaL_checkversion_'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans24.ltrans.o: in function `luaopen_posix_termio.isra.0':
<artificial>:(.text+0x9612): undefined reference to `luaL_checkversion_'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `Args(lua_State*) [clone .lto_priv.0]':
<artificial>:(.text+0x109): undefined reference to `luaL_len'
/usr/bin/ld: <artificial>:(.text+0x173): undefined reference to `lua_geti'
/usr/bin/ld: <artificial>:(.text+0x1ed): undefined reference to `luaL_len'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `CnHandler(int, void*)':
<artificial>:(.text+0x7b6): undefined reference to `lua_pcallk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `FcCallback(char const*)':
<artificial>:(.text+0x157c): undefined reference to `lua_pcallk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `boxtypeDrawFunction000(int, int, int, int, unsigned int)':
<artificial>:(.text+0x1d64): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `boxtypeDrawFunction001(int, int, int, int, unsigned int)':
<artificial>:(.text+0x1e44): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `boxtypeDrawFunction002(int, int, int, int, unsigned int)':
<artificial>:(.text+0x1f24): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `boxtypeDrawFunction003(int, int, int, int, unsigned int)':
<artificial>:(.text+0x2004): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o: in function `boxtypeDrawFunction004(int, int, int, int, unsigned int)':
<artificial>:(.text+0x20e4): undefined reference to `lua_callk'
/usr/bin/ld: /tmp/ccjlMdQ7.ltrans14.ltrans.o:<artificial>:(.text+0x21c4): more undefined references to `lua_callk' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:16: RetroGraphicsToolkit] Error 1

Archlinux clone --recursive running make produces the above errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants