Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37869 - gltron 0.70 doesn't compile; undefined reference to `SDL_NumJoysticks'
Summary: gltron 0.70 doesn't compile; undefined reference to `SDL_NumJoysticks'
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-01-11 02:35 UTC by Sebastian
Modified: 2004-01-11 02:53 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 Sebastian 2004-01-11 02:35:23 UTC
Hello,

I can't compile gltron 0.70. This is the output of emerge:

g++ -o gltron  gltron.o src/game/libgame.a src/input/libinput.a src/audio/libaudio.a src/video/libvideo.a src/configuration/libconfiguration.a src/base/libbase.a src/filesystem/libfilesystem.a nebu/input/libinput.a nebu/audio/libaudio.a nebu/video/libvideo.a nebu/scripting/libscripting.a nebu/filesystem/libfilesystem.a nebu/base/libbase.a lua/src/liblua.a lua/src/lib/liblualib.a -lSDL_sound -lmikmod -lsmpeg -lvorbisfile -lvorbis -logg -lsmpeg -lpng -lz -lGL  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
src/game/libgame.a(init_sdl.o)(.text+0x84): In function `inputInit':
: undefined reference to `SDL_NumJoysticks'
src/game/libgame.a(init_sdl.o)(.text+0xa8): In function `inputInit':
: undefined reference to `SDL_JoystickEventState'
src/game/libgame.a(init_sdl.o)(.text+0xb2): In function `inputInit':
: undefined reference to `SDL_JoystickOpen'
collect2: ld returned 1 exit status
make[1]: *** [gltron] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/gltron-0.70/work/gltron-0.70'
make: *** [all-recursive] Fehler 1
 
!!! ERROR: games-action/gltron-0.70 failed.
!!! Function games_src_compile, Line 122, Exitcode 2
!!! emake failed


This is how I emerged gltron (or at least tried to):

anna games-action # emerge gltron -pv
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild  N    ] media-libs/libmikmod-3.1.10-r1  +oss -esd +alsa
[ebuild  N    ] media-libs/smpeg-0.4.4-r4  +X -gtk +opengl
[ebuild  N    ] media-libs/sdl-sound-1.0.0  +oggvorbis
[ebuild  N    ] media-libs/sdl-mixer-1.2.5-r1  +mpeg -mikmod +oggvorbis
[ebuild  N    ] games-action/gltron-0.70
 
anna games-action #



Reproducible: Always
Steps to Reproduce:
1. Emerge gltron


Actual Results:  
gltron doesn't compile

Expected Results:  
gltron compiles
Comment 1 SpanKY gentoo-dev 2004-01-11 02:42:54 UTC
what does `emerge libsdl -pv` show ?
Comment 2 Sebastian 2004-01-11 02:48:20 UTC
Whoops, this happens when you compile libsdl with the 'nojoystick' USE flag. So it was kinda like my own fault. But maybe you devs would make a reference in the ebuld about compiling libsdl wihtout nojoystick for this game?

Thanks

Sebastian
Comment 3 Sebastian 2004-01-11 02:49:16 UTC
SpanKY you own me ;)
Comment 4 SpanKY gentoo-dev 2004-01-11 02:53:49 UTC
there already is a reference ;)
root@vapier 0 root # grep nojoystick /usr/portage/profiles/use.local.desc 
media-libs/libsdl:nojoystick - Allow users to disable joystick support completely (at their own risk)

and in the ebuild:
# if you disable audio/video/joystick and something breaks, you pick up the pieces