net-libs/libtorrent-0.11.8 fails to compile on AMD64 giving out recompile with -fPIC errors x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -march=k8 -O2 -pipe -msse3 -ggdb -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -c manager.cc -fPIC -DPIC -o .libs/manager.o x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -march=k8 -O2 -pipe -msse3 -ggdb -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -c globals.cc -fPIC -DPIC -o .libs/globals.o x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -march=k8 -O2 -pipe -msse3 -ggdb -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -c resource_manager.cc -fPIC -DPIC -o .libs/resource_manager.o /bin/sh ../libtool --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ -march=k8 -O2 -pipe -msse3 -ggdb -g -DDEBUG -fvisibility=hidden -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -o libtorrent.la -rpath /usr/lib64 -version-info 10:8:0 globals.lo manager.lo resource_manager.lo ../src/torrent/libsub_torrent.la ../src/torrent/data/libsub_torrentdata.la ../src/torrent/peer/libsub_torrentpeer.la ../src/data/libsub_data.la ../src/download/libsub_download.la ../src/net/libsub_net.la ../src/protocol/libsub_protocol.la ../src/tracker/libsub_tracker.la ../src/utils/libsub_utils.la -lcrypto -lsigc-2.0 x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/crtbeginS.o .libs/globals.o .libs/manager.o .libs/resource_manager.o -Wl,--whole-archive ../src/torrent/.libs/libsub_torrent.a ../src/torrent/data/.libs/libsub_torrentdata.a ../src/torrent/peer/.libs/libsub_torrentpeer.a ../src/data/.libs/libsub_data.a ../src/download/.libs/libsub_download.a ../src/net/.libs/libsub_net.a ../src/protocol/.libs/libsub_protocol.a ../src/tracker/.libs/libsub_tracker.a ../src/utils/.libs/libsub_utils.a -Wl,--no-whole-archive -lcrypto /usr/lib64/libsigc-2.0.so -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../lib64/crtn.o -march=k8 -msse3 -Wl,-soname -Wl,libtorrent.so.10 -o .libs/libtorrent.so.10.0.8 /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/data/.libs/libsub_data.a(hash_queue.o): relocation R_X86_64_PC32 against `rak::priority_queue_erase(rak::priority_queue<rak::priority_item*, rak::priority_compare, std::equal_to<rak::priority_item*> >*, rak::priority_item*)' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [libtorrent.la] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge libtorrent
emerge --info missing.
emerge --info Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.2.0, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64) ================================================================= System uname: 2.6.22-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Sat, 22 Sep 2007 11:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe -msse3" DISTDIR="/var/tmp/distfiles" FEATURES="candy ccache distlocks metadata-transfer moo parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL.UTF8" LINGUAS="pl" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/xeffects /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl amd64 berkdb bitmap-fonts browserplugin cli cracklib crypt cups dbus dri dvd dvdread fam fbcon ffmpeg flac fortran gdbm gif gpm grammar gtk hal iconv ipod ipv6 isdnlog ithreads jpeg justify kde kerberos lirc mad math midi mmx mng mp3 mudflap musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg openexr opengl openmp oss pam pcre pdf perl png ppds pppd profile python readline reflection sdl session spl sqlite3 sse sse2 ssl svg tcpd thesaurus tiff truetype truetype-fonts type1 type1-fonts unicode utf8 v4l vcd vorbis wmf xine xml xorg xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 186089 ***