Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290683 - games-action/d2x-0.2.5-r2: Linking failed when SDL (media-libs/libsdl-1.2.13-r1) built with -joystick
Summary: games-action/d2x-0.2.5-r2: Linking failed when SDL (media-libs/libsdl-1.2.13-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 06:21 UTC by Nicolas
Modified: 2009-10-27 06:34 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 Nicolas 2009-10-27 06:21:09 UTC
Good day,

I emerged SDL with -joystick. Emerge of d2x fails during linking. d2x requires that SDL is built with joystick support. 

Workaround is to compile libsdl with joystick support.

Reproducible: Always

Steps to Reproduce:
1. USE="-joystick" emerge libsdl d2x

Actual Results:  
make[2]: Entering directory `/var/tmp/portage/games-action/d2x-0.2.5-r2/work/d2x-0.2.5'
i686-pc-linux-gnu-gcc  -I ./arch/linux/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -pipe -O2 -Wall  -O2 -march=i686 -pipe  -Wl,-O1 -o d2x-sdl    main/libmain.a  3d/lib3d.a 2d/lib2d.a arch/linux/libarch_linux.a arch/sdl/libarch_sdl.a libmve/libmve.a mem/libmem.a cfile/libcfile.a iff/libiff.a texmap/libtexmap.a misc/libmisc.a maths/libmaths.a -lm -lSDL_image -lSDL -lpthread 
arch/sdl/libarch_sdl.a(joy.o): In function `joy_close':
joy.c:(.text+0x485): undefined reference to `SDL_JoystickClose'
arch/sdl/libarch_sdl.a(joy.o): In function `joy_init':
joy.c:(.text+0x4cc): undefined reference to `SDL_NumJoysticks'
joy.c:(.text+0x507): undefined reference to `SDL_JoystickName'
joy.c:(.text+0x537): undefined reference to `SDL_JoystickOpen'
joy.c:(.text+0x566): undefined reference to `SDL_JoystickNumAxes'
joy.c:(.text+0x599): undefined reference to `SDL_JoystickNumButtons'
joy.c:(.text+0x5cc): undefined reference to `SDL_JoystickNumHats'
collect2: ld returned 1 exit status
make[2]: *** [d2x-sdl] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-action/d2x-0.2.5-r2/work/d2x-0.2.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-action/d2x-0.2.5-r2/work/d2x-0.2.5'
make: *** [all] Error 2


Expected Results:  
d2x compiles and is installed without joystick support

System uname: Linux-2.6.30-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T5900_@_2.20GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 22 Oct 2009 08:30:01 +0000
app-shells/bash:     4.0_p28
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j 3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 bcmath berkdb bluetooth branding bzip2 cairo calendar cdaax cdda cdr cli consolekit cracklib crypt ctype dbus dga dirac directfb discard-path dri dts dvd dvdr eds emboss encode evo fam fbcon ffmpeg filter firefox flac fontconfig force-cgi-redirect fortran ftp gd gdbm gif gmp gnutls gpm gsm gstreamer gtk hal hash iconv id3tag inifile ipv6 isdnlog jbig jpeg jpeg2k json kate lcms libass libcaca libnotify libtiger libv4l2 live lm_sensors lock lzo mad matroska mhash mikmod mmx modules mp3 mp4 mpeg mtp mudflap musepack mysqli ncurses network nptl nptlonly nsplugin offensive ogg opengl openmp pam pcntl pcre pdf pdo perl png posix ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtsp samba schroedinger sdl-image session sharedexti shine shout simplexml skins sockets speex spell spl sse sse2 ssl startup-notification stream svg svga sysfs taglib tcpd theora threads thunar tiff tokenizer truetype twolame unicode upnp usb v4l v4l2 vcdinfo vcdx vhosts vim-syntax vlm vorbis win32codecs wma-fixed x264 x86 xcb xcomposite xfce xinerama xml xmlreader xmlwriteri xorg xosd xpm xulrunner xv xvid zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host filter actions alias autoindex deflate dir env headers include log_config logio mime mime_magic negotiation rewrite setenvif status unique_id vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev vesa intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2009-10-27 06:34:12 UTC
fixed in d2x-0.2.5-r3.ebuild

thanks for the bug report