Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28876 - games-arcade/rocksndiamonds-3.0.4 doesn't build with USE="-joystick"
Summary: games-arcade/rocksndiamonds-3.0.4 doesn't build with USE="-joystick"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-16 05:52 UTC by Tristan Henderson
Modified: 2011-09-14 20:36 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 Tristan Henderson 2003-09-16 05:52:37 UTC
I don't have a joystick, and so SDL is built without joystick support. Compiling rocksndiamonds-3.0.4  
bails out:

gcc  -mcpu=i686 -O3 -pipe -DTARGET_SDL -I/usr/include/SDL -D_REENTRANT 
-DRO_GAME_DIR="\"/usr/share/games/rocksndiamonds\"" 
-DRW_GAME_DIR="\"/var/games/rocksndiamonds\""   -c cartoons.c
gcc  -mcpu=i686 -O3 -pipe -DTARGET_SDL -I/usr/include/SDL -D_REENTRANT 
-DRO_GAME_DIR="\"/usr/share/games/rocksndiamonds\"" 
-DRW_GAME_DIR="\"/var/games/rocksndiamonds\""   -c network.c
gcc  -mcpu=i686 -O3 -pipe -DTARGET_SDL -I/usr/include/SDL -D_REENTRANT 
-DRO_GAME_DIR="\"/usr/share/games/rocksndiamonds\"" 
-DRW_GAME_DIR="\"/var/games/rocksndiamonds\""   -c netserv.c
gcc  main.o conf_gfx.o conf_snd.o init.o config.o events.o tools.o screens.o game.o editor.o files.o 
tape.o cartoons.o network.o netserv.o  libgame/libgame.a -lSDL_image -lSDL_mixer -L/usr/lib -Wl,
-rpath,/usr/lib -lSDL -lpthread  -lm -o ../rocksndiamonds
libgame/libgame.a(sdl.o)(.text+0x709): In function `SDLInitJoysticks':
: undefined reference to `SDL_NumJoysticks'
libgame/libgame.a(sdl.o)(.text+0x735): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickOpened'
libgame/libgame.a(sdl.o)(.text+0x756): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickClose'
libgame/libgame.a(sdl.o)(.text+0x775): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickOpen'
collect2: ld returned 1 exit status
make[1]: *** [../rocksndiamonds] Error 1
make[1]: Leaving directory `/var/tmp/portage/rocksndiamonds-3.0.4/work/rocksndiamonds-3.0.
4/src'
make: *** [sdl] Error 2

!!! ERROR: games-arcade/rocksndiamonds-3.0.4 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! (no error message)

I tried defining "NO_JOYSTICK" by commenting out the appropriate line in the Makefile, but still get 
the same error, which is odd...

gcc  -mcpu=i686 -O3 -pipe -DTARGET_SDL -I/usr/include/SDL -D_REENTRANT 
-DRO_GAME_DIR="\"/usr/share/games/rocksndiamonds\"" 
-DRW_GAME_DIR="\"/var/games/rocksndiamonds\""  -DNO_JOYSTICK -c netserv.c
gcc  main.o conf_gfx.o conf_snd.o init.o config.o events.o tools.o screens.o game.o editor.o files.o 
tape.o cartoons.o network.o netserv.o  libgame/libgame.a -lSDL_image -lSDL_mixer -L/usr/lib -Wl,
-rpath,/usr/lib -lSDL -lpthread  -lm -o ../rocksndiamonds
libgame/libgame.a(sdl.o)(.text+0x709): In function `SDLInitJoysticks':
: undefined reference to `SDL_NumJoysticks'
libgame/libgame.a(sdl.o)(.text+0x735): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickOpened'
libgame/libgame.a(sdl.o)(.text+0x756): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickClose'
libgame/libgame.a(sdl.o)(.text+0x775): In function `SDLInitJoysticks':
: undefined reference to `SDL_JoystickOpen'
collect2: ld returned 1 exit status
make[1]: *** [../rocksndiamonds] Error 1
make[1]: Leaving directory `/var/tmp/portage/rocksndiamonds-3.0.4/work/rocksndiamonds-3.0.
4/src'
make: *** [sdl] Error 2

!!! ERROR: games-arcade/rocksndiamonds-3.0.4 failed.
!!! Function src_compile, Line 40, Exitcode 2
!!! (no error message)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.49-r4 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8, 2.4.22)
==============================================================
===
System uname: 2.4.22 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs digest sandbox strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode libg++ mmx mpeg ncurses pdflib quicktime spell truetype 
xml2 xmms xv aalib berkdb esd gdbm gif gnome-libs gpm gtk imlib java libwww motif mozilla 
oggvorbis pam python readline sdl snmp ssl svga tcpd -3dnow alsa apache2 -arts bonobo cdr 
curses dga dvd emacs ethereal evo fbcon gnome gtk2 gtkhtml guile jpeg -kde lcms -lirc -mikmod 
-moznoxft mysql nas -nls odbc -opengl oss pcmcia pda perl pic plotutils png pnp -qt -qtmt samba 
skey -slang smooth tcltk tetex tiff trusted usb vim-with-x xml X X509 zlib"
Comment 1 SpanKY gentoo-dev 2003-09-16 05:56:53 UTC

*** This bug has been marked as a duplicate of 28711 ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-05-19 09:05:58 UTC
Closing to clean up after bugzilla upgrade.  reopen if closed in error.  Thanks.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2011-09-14 20:36:49 UTC
clean up bug list after bugzilla update