I believe this is related to a recent update from =dev-lang/lua-5.1.2-r2 to =dev-lang/lua-5.1.3-r1 as the 'stable' version of dev-lang/lua. The game worked fine before the update.
As stated in the summary, =games-sports/xmoto-0.3.4 crashes with an undefined symbol error; if one attempts to re-emerge the package it fails with: DATADIR=\"/usr/share/games/xmoto\" -DLOCALESDIR=\"/usr/share/locale\" -DALLOW_ZOOMING=1 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_OPENGL=1 -DUSE_SDLGFX=0 -D'SVN_REV=""' -march=athlon-fx -O2 -pipe -msse3 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o LuaLibGame.o LuaLibGame.cpp LuaLibGame.cpp: In constructor 'LuaLibGame::LuaLibGame(MotoGame*, InputHandler*)': LuaLibGame.cpp:103: error: 'luaL_openlib' was not declared in this scope make[1]: *** [LuaLibGame.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/games-sports/xmoto-0.3.4/work/xmoto-0.3.4/src' make: *** [all-recursive] Error 1 * * ERROR: games-sports/xmoto-0.3.4 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2318: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-sports/xmoto-0.3.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-sports/xmoto-0.3.4/temp/environment'. * snafu ~ # emerge --info Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24.7 x86_64) ================================================================= System uname: 2.6.24.7 x86_64 AMD Athlon(tm) 64 FX-57 Processor Timestamp of tree: Mon, 19 May 2008 11:33:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon-fx -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon-fx -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/mpd /usr/portage/local/layman/sunrise /usr/portage/local/layman/mikesnafu" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X alsa amd64 avahi bash-completion berkdb branding bzip2 cli cracklib crypt dbus dri fortran gdbm gif gnome gnutls gpm gtk hal iconv isdnlog jpeg midi mmx mmxext mudflap multilib ncurses nls nptl nptlonly offensive opengl openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl ssse3 svg tcpd truetype unicode vim-syntax xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS The game builds and plays fine with =dev-lang/lua-5.1.2-r2
*** Bug 222851 has been marked as a duplicate of this bug. ***
Ok that is problem with depercated patches in lua it needs only checking as version 0.4.X use rather version 0.4.X where it is fixed, i'll post patch, but since they are both testing why not use 0.4.2 with new features rather than 0.3.4
Created attachment 153745 [details, diff] patch on ebuild force using depercated use with new lualib Compiles&run. Play and have fun :]
Works great, thanks Tomáš.
The same result with a current stable xmoto-0.2.0 - previously built version crashes with "xmoto: symbol lookup error: xmoto: undefined symbol: luaL_openlib", and it couldn't be reemerged. As I see there is a sablereq for xmoto-0.4.2: http://bugs.gentoo.org/show_bug.cgi?id=221795. Does it be blocked by this issue?
Fixed through bug 221795, closing.