The compilation of scummvm-0.13.1 fails: ranlib base/libbase.a i686-pc-linux-gnu-g++ -Wl,-O1 -lm backends/platform/sdl/events.o backends/platform/sdl/graphics.o backends/platform/sdl/main.o backends/platform/sdl/sdl.o base/libbase.a engines/scumm/libscumm.a engines/agi/libagi.a engines/agos/libagos.a engines/cine/libcine.a engines/drascula/libdrascula.a engines/gob/libgob.a engines/groovie/libgroovie.a engines/kyra/libkyra.a engines/lure/liblure.a engines/parallaction/libparallaction.a engines/queen/libqueen.a engines/saga/libsaga.a engines/sky/libsky.a engines/sword1/libsword1.a engines/sword2/libsword2.a engines/touche/libtouche.a engines/tucker/libtucker.a gui/libgui.a graphics/libgraphics.a sound/libsound.a common/libcommon.a engines/libengines.a backends/libbackends.a sound/softsynth/mt32/libmt32.a -lvorbisfile -lvorbis -logg -lFLAC -logg -lmad -lasound -lz -lmpeg2 -lSDL -lpthread -o scummvm backends/platform/sdl/sdl.o: In function `OSystem_SDL::quit()': sdl.cpp:(.text+0x9a0): undefined reference to `SDL_JoystickClose' backends/platform/sdl/sdl.o: In function `OSystem_SDL::initBackend()': sdl.cpp:(.text+0x1a8c): undefined reference to `SDL_NumJoysticks' sdl.cpp:(.text+0x1aa2): undefined reference to `SDL_JoystickName' sdl.cpp:(.text+0x1aba): undefined reference to `SDL_JoystickOpen' collect2: ld returned 1 exit status make: *** [scummvm] Error 1 * * ERROR: games-engines/scummvm-0.13.1 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2529: Called games_src_compile * environment, line 1457: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed My copy of libsdl has no joystick support. After rebuilding libsdl with USE="joystick" as a workaround, scummvm-0.13.1 builds successfully. But I've got no joystick... Reproducible: Always # emerge --info: Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-rc1 i686) ================================================================= System uname: Linux-2.6.31-rc1-i686-Intel-R-_Celeron-R-_M_processor_1300MHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 07 Jul 2009 16:45:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium3m -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11/xkb" CXXFLAGS="-O2 -march=pentium3m -pipe -fomit-frame-pointer" DISTDIR="/usr/src/packages" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="distlocks fixpackages preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.intergenia.de http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="gzip" PORTAGE_CONFIGROOT="/" 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="/mnt/data/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/layman/x11" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dri dvd dvdr dvdread eds emboss encode evo expat fam firefox flac fortran gif gnutls gpm gstreamer iconv isdnlog java jpeg ladspa lcms libnotify mad mikmod mmx mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session sndfile spl sqlite sse sse2 ssl svg sysfs tcpd threads tiff truetype usb vim-syntax vorbis win32codecs wmf x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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" SANE_BACKENDS="agfafocus apple bh brother canon canon630u dmc epson hp lexmark matsushita microtek microtek2 mustek mustek_usb nec plustek plustek_pp ricoh umax umax_pp umax1220u ibm hp5400 u12 snapscan hp4200 hp3500" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
added the use based dep. basically though, if you override the recommended use flags for libsdl you're going to have a hard road.