Could not get Blender to compile until I recompiled sdl without setting the "nojoystick" use flag. Reproducible: Always Steps to Reproduce: 1.emerge sdl with "nojoystick" use flag set 2.emerge blender 3. Actual Results: Blender fails to emerge: /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::aButtonPressIsPositive(int)': SCA_Joystick.cpp:(.text+0x2b1): undefined reference to `SDL_JoystickGetButton' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::aButtonReleaseIsPositive(int)': SCA_Joystick.cpp:(.text+0x2df): undefined reference to `SDL_JoystickGetButton' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::pCreateJoystickDevice()': SCA_Joystick.cpp:(.text+0x525): undefined reference to `SDL_NumJoysticks' SCA_Joystick.cpp:(.text+0x538): undefined reference to `SDL_JoystickOpen' SCA_Joystick.cpp:(.text+0x547): undefined reference to `SDL_JoystickEventState' SCA_Joystick.cpp:(.text+0x552): undefined reference to `SDL_NumJoysticks' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::pDestroyJoystickDevice()': SCA_Joystick.cpp:(.text+0x59c): undefined reference to `SDL_NumJoysticks' SCA_Joystick.cpp:(.text+0x5a8): undefined reference to `SDL_JoystickOpened' SCA_Joystick.cpp:(.text+0x5b4): undefined reference to `SDL_NumJoysticks' SCA_Joystick.cpp:(.text+0x5da): undefined reference to `SDL_JoystickClose' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::pFillAxes()': SCA_Joystick.cpp:(.text+0x648): undefined reference to `SDL_JoystickGetAxis' SCA_Joystick.cpp:(.text+0x661): undefined reference to `SDL_JoystickGetAxis' SCA_Joystick.cpp:(.text+0x67a): undefined reference to `SDL_JoystickGetAxis' SCA_Joystick.cpp:(.text+0x693): undefined reference to `SDL_JoystickGetAxis' SCA_Joystick.cpp:(.text+0x6b1): undefined reference to `SDL_JoystickGetAxis' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o):SCA_Joystick.cpp:(.text+0x6ca): more undefined references to `SDL_JoystickGetAxis' follow /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::GetNumberOfAxes()': SCA_Joystick.cpp:(.text+0x49c): undefined reference to `SDL_JoystickNumAxes' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::GetNumberOfButtons()': SCA_Joystick.cpp:(.text+0x4be): undefined reference to `SDL_JoystickNumButtons' /var/tmp/portage/blender-2.37/work/build/linux2/lib/libSCA_GameLogic.a(SCA_Joystick.o): In function `SCA_Joystick::GetNumberOfHats()': SCA_Joystick.cpp:(.text+0x4e0): undefined reference to `SDL_JoystickNumHats' collect2: ld returned 1 exit status scons: *** [blenderplayer] Error 1 source/blender/src/buttons_editing.c:2102: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:2102: warning: unused parameter 'me' source/blender/src/buttons_editing.c:2153: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:2153: warning: unused parameter 'me' source/blender/src/buttons_editing.c:1175: warning: unused parameter 'cu' source/blender/src/buttons_editing.c:1233: warning: unused parameter 'cu' source/blender/src/buttons_editing.c:1438: warning: unused parameter 'mb' source/blender/src/buttons_editing.c:941: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:1325: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:1356: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:2146: warning: unused parameter 'data2_unused' source/blender/src/buttons_editing.c:1785: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:1779: warning: unused parameter 'notused1' source/blender/src/buttons_editing.c:1779: warning: unused parameter 'notused2' source/blender/src/buttons_editing.c:1808: warning: unused parameter 'ob' source/blender/src/buttons_editing.c:1808: warning: unused parameter 'arm' source/blender/src/buttons_editing.c:1583: warning: unused parameter 'arg2_unused' source/blender/src/buttons_editing.c:1743: warning: unused parameter 'arg2_unused' scons: building terminated because of errors. Expected Results: Emerge succesfully. ~ $ emerge info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-darkphader-r11 i686) ================================================================= System uname: 2.6.11-darkphader-r11 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.1 sys-apps/sandbox: 1.2.9 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.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com http://mirrors.tds.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" MAKEOPTS="-j2" 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 aac aalib acl acpi alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bonobo cdparanoia cdr crypt cscope cups curl divx4linux dv dvb dvd dvdr dvdread emboss encode esd exif fam ffmpeg flac fortran gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal imagemagick imap imlib ipv6 jack java jpeg jpeg2k kde lcd lcms ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nvidia odbc ofx ogg oggvorbis openexr opengl oss pam pda pdflib perl png ppds python qt quicktime readline samba sasl scanner sdl slang slp snmp spell sqlite sse ssl subversion svg svga tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb utf8 v4l v4l2 vcd vorbis win32codecs wmf xine xml xml2 xmms xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
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."