i686-pc-linux-gnu-g++ -O3 -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer -I/usr/include/SDL -D_REENTRANT -I/usr/X11R6/include -DDATA_PREFIX='"/usr/share/games/supertux"' -o supertux badguy.o bitmask.o button.o collision.o configfile.o intro.o gameloop.o globals.o high_scores.o level.o leveleditor.o lispreader.o menu.o particlesystem.o physic.o player.o scene.o screen.o setup.o sound.o special.o supertux.o text.o texture.o timer.o title.o type.o world.o worldmap.o tile.o mousecursor.o resources.o gameobjs.o sprite.o sprite_manager.o music_manager.o musicref.o -lz -lSDL_image -lSDL_mixer -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lGL -L/usr/X11R6/lib -lX11 -lm setup.o(.text+0x503f): In function `st_joystick_setup()': : undefined reference to `SDL_NumJoysticks' setup.o(.text+0x5055): In function `st_joystick_setup()': : undefined reference to `SDL_JoystickOpen' setup.o(.text+0x509b): In function `st_joystick_setup()': : undefined reference to `SDL_JoystickNumAxes' setup.o(.text+0x50ac): In function `st_joystick_setup()': : undefined reference to `SDL_JoystickNumButtons'collect2: ld returned 1 exit status make[1]: *** [supertux] Error 1 make[1]: Leaving directory `/var/tmp/portage/supertux-0.1.3/work/supertux-0.1.3/src' make: *** [all-recursive] Error 1 !!! ERROR: games-arcade/supertux-0.1.3 failed. !!! Function src_compile, Line 35, Exitcode 2 I do not have a joystick, and sdl was in fact compiled with the nojoystick USE flag: [ebuild R ] media-libs/libsdl-1.2.8-r1 +X +aalib -alsa +arts -dga +directfb +esd +fbcon -ggi -libcaca -nas -noaudio -noflagstrip +nojoystick -novideo +opengl +oss -pic +svga -xinerama +xv 0 kB Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.11.11 i686) ================================================================= System uname: 2.6.11.11 i686 Mobile Pentium II Gentoo Base System version 1.6.13 dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium2 -funroll-loops -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ibiblio.org/pub/Linux/distributions/gentoo/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib apm arts avi berkdb bitmap-fonts browserplugin crypt cups curl dhcp directfb divx4linux dvd emboss encode esd ethereal fam fbcon foomaticdb gd gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 javascript jpeg justfy libg++ libwww mad matroska mikmod mmx motif mozilla mp3 mpeg ncurses nethack network nls nojoystick offensive ogg oggvorbis opengl oss pam pcmcia pdflib perl png pnp ppds python quicktime readline real rtc samba sdl slang spell ssl svga sysfs tcltk tcpd tiff truetype truetype-fonts trusted type1-fonts v4l v4l2 vorbis wavelan xml xml2 xmms xosd xprint xv xvid zlib video_cards_neomagic userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
From libsdl ebuild: ewarn "Since you've chosen to turn off some of libsdl's functionality," ewarn "don't bother filing libsdl-related bugs until trying to remerge" ewarn "libsdl without the no* flags in USE. You need to know what" ewarn "you're doing to selectively turn off parts of libsdl."