Created attachment 266011 [details] gcube-0.4-r2.ebuild gcc -Wl,-O1 -Wl,--as-needed -march=k8 -O2 -pipe -msse3 -DDEFAULT_COLOR_MODE=1 ppc_disasm.o general.o config.o video_sdl.o audio_sdl.o cpu.o mem.o diskio.o hw.o hw_ai_dsp.o hw_cp.o hw_di.o hw_exi.o hw_gx.o hw_mi.o hw_pe.o hw_pi.o hw_si.o hw_vi.o hle.o hle_math.o hle_general.o gx.o gx_texture.o gx_transform.o gcube.o -o gcube `sdl-config --libs` -mno-windows -mcygwin -lz -lGL video_sdl.o: In function `video_close': video_sdl.c:(.text+0x366): undefined reference to `SDL_JoystickClose' video_sdl.o: In function `video_init': video_sdl.c:(.text+0x877): undefined reference to `SDL_NumJoysticks' video_sdl.c:(.text+0x890): undefined reference to `SDL_JoystickClose' video_sdl.c:(.text+0x8a4): undefined reference to `SDL_JoystickEventState' video_sdl.c:(.text+0x8a9): undefined reference to `SDL_NumJoysticks' video_sdl.c:(.text+0x8d0): undefined reference to `SDL_JoystickOpen' collect2: ld returned 1 exit status make: *** [gcube] Error 1 emake failed * ERROR: games-emulation/gcube-0.4-r1 failed (compile phase): * died running emake, base_src_make * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2661: Called games_src_compile * environment, line 1488: Called base_src_make * environment, line 297: Called die * The specific snippet of code: * emake "$@" || die "died running emake, $FUNCNAME"; * * If you need support, post the output of 'emerge --info =games-emulation/gcube-0.4-r1', * the complete build log and the output of 'emerge -pqv =games-emulation/gcube-0.4-r1'. * The complete build log is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/environment'. * S: '/var/tmp/portage/games-emulation/gcube-0.4-r1/work/0.4' >>> Failed to emerge games-emulation/gcube-0.4-r1, Log file: >>> '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log' * Messages for package games-emulation/gcube-0.4-r1: * ERROR: games-emulation/gcube-0.4-r1 failed (compile phase): * died running emake, base_src_make * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 2661: Called games_src_compile * environment, line 1488: Called base_src_make * environment, line 297: Called die * The specific snippet of code: * emake "$@" || die "died running emake, $FUNCNAME"; * * If you need support, post the output of 'emerge --info =games-emulation/gcube-0.4-r1', * the complete build log and the output of 'emerge -pqv =games-emulation/gcube-0.4-r1'. * The complete build log is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-emulation/gcube-0.4-r1/temp/environment'. * S: '/var/tmp/portage/games-emulation/gcube-0.4-r1/work/0.4' reproduce the bug : USE="-joystick" emerge libsdl ; emerge gcube
'joystick' is among libsdl flags that are on by default and the ebuild gives a firm warning about disabling them. Still, adding a usedep isn't that hard.
fixed. thanks for the bug report.