Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60007 - scummvm 0.6.1b linking with missing SDL joystick functions fails during emerge
Summary: scummvm 0.6.1b linking with missing SDL joystick functions fails during emerge
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-10 17:09 UTC by LionsPhil
Modified: 2004-08-10 17:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description LionsPhil 2004-08-10 17:09:41 UTC
Compilation of scummvm 0.6.1b is failing. By the looks of it, it's trying to link with SDL joystick functions which don't exist - quite possibly because libsdl is compiled with the +nojoystick USE flag. Possibly this is not getting passed on to/detected by scummvm's configure script or such?

(See "actual results" for details of error.)

Reproducible: Always
Steps to Reproduce:
Attempt to emerge scummvm with the following USE flags:
+alsa -debug -dedicated +mad +oggvorbis +sdl +zlib

libsdl was previously emerged with these - note the lack of joystick support:
+X +aalib +alsa -arts +dga -directfb -esd +fbcon -ggi +libcaca -nas -noaudio +nojoystick -novideo +opengl -oss +svga -xinerama +xv
The version of libsdl is 1.2.7-r1, the latest unmasked at the time of writing, and works fine with other SDL apps.
Actual Results:  
(normal verbiage of an emerge, into the compilation)
g++    backends/sdl/sdl-common.o backends/sdl/sdl.o base/libbase.a scumm/
libscumm.a simon/libsimon.a sky/libsky.a sword1/libsword1.a sword2/libsword2.a 
queen/libqueen.a gui/libgui.a backends/libbackends.a sound/libsound.a common/
libcommon.a   -lvorbisfile -lvorbis -logg  -lmad  -lasound  -lz  -lmpeg2 -L/usr/
lib -Wl,-rpath,/usr/lib -lSDL -lpthread -o scummvm
backends/sdl/sdl-common.o(.text+0x2bc): In function `OSystem_SDL_Common::
init_intern(int)':
: undefined reference to `SDL_NumJoysticks'
backends/sdl/sdl-common.o(.text+0x2cc): In function `OSystem_SDL_Common::
init_intern(int)':
: undefined reference to `SDL_JoystickName'
backends/sdl/sdl-common.o(.text+0x2e4): In function `OSystem_SDL_Common::
init_intern(int)':
: undefined reference to `SDL_JoystickOpen'
collect2: ld returned 1 exit status
make: *** [scummvm] Error 1

!!! ERROR: games-engines/scummvm-0.6.1b failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! emake failed

Expected Results:  
That scummvm emerged OK. ;)
(ScummVM 0.6.0 did back when it was the latest unmasked version.)

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6.3-
gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Mobile Intel(R) Celeron(R) CPU 1.80GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/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=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="X aalib alsa apm avi berkdb crypt cups dga divx4linux fbcon foomaticdb gdbm 
gif gpm gtk gtk2 guile jack jack-tmpfs java jikes jpeg libcaca libg++ libwww mad 
mikmod mmx mng motif mpeg ncurses nls nojoystick oggvorbis opengl pam pcmcia 
pdflib perl png pnp python qt quicktime readline sdl slang spell sse ssl svga 
tcltk tcpd tiff truetype usb wmf x86 xml xml2 xmms xv xvid zlib"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-08-10 17:46:14 UTC
You merged libsdl with nojoystick so you get to work things out on your system.  Disabling parts of libsdl isn't a supported configuration - You have to really know what you're doing.