Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262974 - games-action/openastromenace fails to build if libsdl was compiled without USE="joystick"
Summary: games-action/openastromenace fails to build if libsdl was compiled without US...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-18 23:02 UTC by Andrew Savchenko
Modified: 2009-03-20 07:07 UTC (History)
0 users

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


Attachments
proposed fix (openastromenace-1.2.0.ebuild.patch,570 bytes, patch)
2009-03-18 23:05 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2009-03-18 23:02:29 UTC
Hello,

games-action/openastromenace-1.2.0 fails to build if libsdl was compiled without USE="joystick":

Linking CXX executable AstroMenace
CMakeFiles/AstroMenace.dir/AstroMenaceSource/Game/Game_PlayerShip.o:
In function `GamePlayerShip()':
Game_PlayerShip.cpp:(.text+0xe52): undefined reference to
`SDL_JoystickGetButton'
Game_PlayerShip.cpp:(.text+0xead): undefined reference to
`SDL_JoystickGetButton'
Game_PlayerShip.cpp:(.text+0x1174): undefined reference to
`SDL_JoystickGetAxis'
Game_PlayerShip.cpp:(.text+0x118c): undefined reference to
`SDL_JoystickGetAxis'
Game_PlayerShip.cpp:(.text+0x1614): undefined reference to
`SDL_JoystickGetButton'
CMakeFiles/AstroMenace.dir/AstroMenaceSource/Game/Game_Options.o:
In function `GameOptions()':
Game_Options.cpp:(.text+0xb3e): undefined reference to
`SDL_NumJoysticks'
Game_Options.cpp:(.text+0xd8d): undefined reference to
`SDL_NumJoysticks'
CMakeFiles/AstroMenace.dir/AstroMenaceSource/Menu/Menu_ConfControl.o:
In function `CheckMouseKeybJState()':
Menu_ConfControl.cpp:(.text+0x2b2): undefined reference to
`SDL_JoystickNumButtons'
CMakeFiles/AstroMenace.dir/AstroMenaceSource/Menu/Menu_ConfControl.o:
In function `ConfControlMenu()':
Menu_ConfControl.cpp:(.text+0x9de): undefined reference to
`SDL_NumJoysticks'
Menu_ConfControl.cpp:(.text+0xc25): undefined reference to
`SDL_NumJoysticks'
CMakeFiles/AstroMenace.dir/AstroMenaceSource/Main.o: In function
`main':
Main.cpp:(.text+0x99a): undefined reference to `SDL_NumJoysticks'
Main.cpp:(.text+0x9ba): undefined reference to `SDL_JoystickName'
Main.cpp:(.text+0x9dc): undefined reference to `SDL_NumJoysticks'
Main.cpp:(.text+0x9ed): undefined reference to `SDL_JoystickOpen'
Main.cpp:(.text+0xa24): undefined reference to `SDL_JoystickName'
Main.cpp:(.text+0xa49): undefined reference to
`SDL_JoystickNumAxes'
Main.cpp:(.text+0xa6e): undefined reference to
`SDL_JoystickNumButtons'
Main.cpp:(.text+0xa93): undefined reference to
`SDL_JoystickNumBalls'
Main.cpp:(.text+0xce2): undefined reference to
`SDL_JoystickGetAxis'
Main.cpp:(.text+0xcfd): undefined reference to
`SDL_JoystickGetAxis'
Main.cpp:(.text+0x135c): undefined reference to
`SDL_JoystickGetAxis'
Main.cpp:(.text+0x1374): undefined reference to
`SDL_JoystickGetAxis'
Main.cpp:(.text+0x1539): undefined reference to `SDL_NumJoysticks'
Main.cpp:(.text+0x154b): undefined reference to
`SDL_JoystickOpened'
Main.cpp:(.text+0x1560): undefined reference to `SDL_JoystickClose'
collect2: ld returned 1 exit status
make[2]: *** [AstroMenace] Error 1
make[1]: *** [CMakeFiles/AstroMenace.dir/all] Error 2
make: *** [all] Error 2
Comment 1 Andrew Savchenko gentoo-dev 2009-03-18 23:05:52 UTC
Created attachment 185468 [details, diff]
proposed fix

An attached patch fixes this, but other hard dependencies on use
flags for libsdl are possible: openastromenace seems to be not
configurable in this aspect.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-03-20 07:07:12 UTC
fixed.