Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368857 - games-util/xboxdrv-0.7.3 doesn't build with as-needed
Summary: games-util/xboxdrv-0.7.3 doesn't build with as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 08:26 UTC by Cedric Godin
Modified: 2011-05-27 21:29 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 Cedric Godin 2011-05-27 08:26:13 UTC
When trying to update xboxdrv to the 0.7.3 version, the merge broke with the follwoing messages :

86_64-pc-linux-gnu-g++ -o test/ini_parser_test -Wl,-O1 -Wl,--as-needed -pthread test/ini_parser_test.o -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lusb-1.0 -ludev -lrt -lX11 -lboost_thread-mt libxboxdrv.a
x86_64-pc-linux-gnu-g++ -o xboxdrv -Wl,-O1 -Wl,--as-needed -pthread src/main/main.o -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lusb-1.0 -ludev -lrt -lX11 -lboost_thread-mt libxboxdrv.a
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::run_daemon(Options const&)':
xboxdrv.cpp:(.text+0xa9b): undefined reference to `libusb_init'
xboxdrv.cpp:(.text+0xc01): undefined reference to `libusb_exit'
xboxdrv.cpp:(.text+0xd28): undefined reference to `libusb_set_debug'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::find_controller_by_path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, libusb_device**) const':
xboxdrv.cpp:(.text+0x1075): undefined reference to `libusb_get_device_list'
xboxdrv.cpp:(.text+0x109d): undefined reference to `libusb_get_bus_number'
xboxdrv.cpp:(.text+0x10ac): undefined reference to `libusb_get_device_address'
xboxdrv.cpp:(.text+0x10bf): undefined reference to `libusb_ref_device'
xboxdrv.cpp:(.text+0x10ce): undefined reference to `libusb_free_device_list'
xboxdrv.cpp:(.text+0x10f3): undefined reference to `libusb_free_device_list'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::find_controller_by_id(int, int, int, libusb_device**) const':
xboxdrv.cpp:(.text+0x113d): undefined reference to `libusb_get_device_list'
xboxdrv.cpp:(.text+0x119e): undefined reference to `libusb_get_device_descriptor'
xboxdrv.cpp:(.text+0x147e): undefined reference to `libusb_free_device_list'
xboxdrv.cpp:(.text+0x155d): undefined reference to `libusb_ref_device'
xboxdrv.cpp:(.text+0x156f): undefined reference to `libusb_free_device_list'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::find_xbox360_controller(int, libusb_device**, XPadDevice*) const':
xboxdrv.cpp:(.text+0x1679): undefined reference to `libusb_get_device_list'
xboxdrv.cpp:(.text+0x16b5): undefined reference to `libusb_get_device_descriptor'
xboxdrv.cpp:(.text+0x1734): undefined reference to `libusb_free_device_list'
xboxdrv.cpp:(.text+0x1a96): undefined reference to `libusb_ref_device'
xboxdrv.cpp:(.text+0x1aa8): undefined reference to `libusb_free_device_list'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::print_info(libusb_device*, XPadDevice const&, Options const&) const':
xboxdrv.cpp:(.text+0x2ba4): undefined reference to `libusb_get_device_descriptor'
xboxdrv.cpp:(.text+0x2dac): undefined reference to `libusb_get_device_address'
xboxdrv.cpp:(.text+0x2dbe): undefined reference to `libusb_get_bus_number'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::find_controller(libusb_device**, XPadDevice&, Options const&) const':
xboxdrv.cpp:(.text+0x34a3): undefined reference to `libusb_get_device_descriptor'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::run_main(Options const&)':
xboxdrv.cpp:(.text+0x3a1b): undefined reference to `libusb_init'
xboxdrv.cpp:(.text+0x3db8): undefined reference to `libusb_set_debug'
libxboxdrv.a(xboxdrv.o): In function `Xboxdrv::run_list_controller()':
...

if I delete the as-needed from the command it builds fine:

ranlib libxboxdrv.a
x86_64-pc-linux-gnu-g++ -o src/main/main.o -c -Wall -march=athlon64 -O2 -pipe -isystem/usr/include/dbus-1.0 -isystem/usr/lib64/dbus-1.0/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -pthread -isystem/usr/include/libusb-1.0 -DPACKAGE_VERSION='"0.7.3"' -Isrc src/main/main.cpp
x86_64-pc-linux-gnu-g++ -o test/ini_parser_test.o -c -Wall -march=athlon64 -O2 -pipe -isystem/usr/include/dbus-1.0 -isystem/usr/lib64/dbus-1.0/include -isystem/usr/include/glib-2.0 -isystem/usr/lib64/glib-2.0/include -pthread -isystem/usr/include/libusb-1.0 -DPACKAGE_VERSION='"0.7.3"' -Isrc test/ini_parser_test.cpp
x86_64-pc-linux-gnu-g++ -o test/ini_parser_test -Wl,-O1 -Wl,-z,now -pthread test/ini_parser_test.o -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lusb-1.0 -ludev -lrt -lX11 -lboost_thread-mt libxboxdrv.a
x86_64-pc-linux-gnu-g++ -o xboxdrv -Wl,-O1 -Wl,-z,now -pthread src/main/main.o -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lusb-1.0 -ludev -lrt -lX11 -lboost_thread-mt libxboxdrv.a
scons: done building targets.

Reproducible: Always

Steps to Reproduce:
1. ebuild /usr/portage/games-util/xboxdrv/xboxdrv-0.7.3.ebuild configure
2. cd /var/tmp/portage/games-util/xboxdrv-0.7.3/work/xboxdrv-linux-0.7.3/
3.  scons BUILD=custom CXX=x86_64-pc-linux-gnu-g++ CXXFLAGS="-Wall -march=athlon64 -O2 -pipe" LINKFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now"



Portage 2.1.9.49 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.0.2
Timestamp of tree: Fri, 27 May 2011 04:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_BE.UTF-8"
LC_ALL="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now"
LINGUAS="fr en_US en_GB"
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"
PORTDIR_OVERLAY="/var/lib/layman/gnustep"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac accessibility acl acpi akonadi alsa amd64 apng archive asf audiofile avahi avi bash-completion bitmap-fonts blender-game branding bzip2 cairo cdinstall cdparanoia cdr chm chroot cle266 clucene consolekit crypt css cups curl dbus dedicated device-mapper dga diskio dts dv dvb dvd dvdnav dvdr dvdread eigen elf emerald encode erandom exceptions faad fam fame fbcon fbcondecor ffmpeg fftw file-icons firefox flac font-server fontconfig foomaticdb fts3 fuse gcc-libffi gd geoip gif gimp git glitz gnustep gphoto2 gpm graphviz gstreamer gtk handbook hddtemp hpcups iceweasel icq imap imlib innodb inotify ipc ipv6 irc ithreads jack java jfs joystick jpeg jpeg2k kcal kde kde4 kipi konqueror kontact kqemu largeterminal lcms libffi libnotify libwww lightning live lm_sensors lzma lzo mad maildir mdnsresponder-compat memlimit menu-plugin midi mikmod mmx mmxext mng modperl mozdom mozilla moznocompose moznoirc moznomail moznopango mozsvg mp3 mp4 mpeg mplayer mpm-worker msn multilib musepack musicbrainz ncurses nepomuk net network new-hpcups nls no-old-linux no_wxgtk1 nowebdav nptl nptlonly nsplugin ntfs nvidia objc offensive ogg oggvorbis on-the-fly-crypt openal openexr opengl openssl pam pcf pcre pdf pdfkit pdflib perl pg_legacytimestamp phonon plasma png policykit postgres ppds ps python qmax qt qt3support qt4 quicktime raptor rdesktop readline redland reports rtc sasl sblive scanner sdl semantic-desktop session slp sndfile solver speex spell sql sqlite sse sse2 ssl startup-notification subversion svg system-sqlite theora threads tidy tiff trash-plugin truetype truetype-fonts type1-fonts udev unicode usb userlocales utempter v4l v4l2 vaapi vcd vdesktop vdpau vhosts videos virtuoso visualization vlm vmmouse vorbis webdav-neon webkit wmf wv2 xanim xattr xcomposite xfs xine xinerama xklavier xml xml2 xorg xpm xrandr xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="emu10k1 intel8x0" 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="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LINGUAS="fr en_US en_GB" QEMU_SOFTMMU_TARGETS="i386 sparc x86_64 arm" QEMU_USER_TARGETS="i386 sparc sparc64 x86_64 arm" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="trash menu" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2011-05-27 21:29:25 UTC
fixed in 0.8.0