Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129241 - net-libs/libtorrent-0.9.0 fails to link, needs -fPIC
Summary: net-libs/libtorrent-0.9.0 fails to link, needs -fPIC
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-08 07:24 UTC by Brian Hall
Modified: 2006-04-08 09:17 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 Brian Hall 2006-04-08 07:24:42 UTC
Tried using 'LDFLAGS="" emerge -u libtorrent', fails the same way.

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: ../src/torrent/.libs/libsub_torrent.a(object_stream.o): relocation R_X86_64_PC32 against `std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream(std::_Ios_Openmode)@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
distcc[31496] ERROR: compile (null) on localhost failed
make[3]: *** [libtorrent.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/libtorrent-0.9.0/work/libtorrent-0.9.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libtorrent-0.9.0/work/libtorrent-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libtorrent-0.9.0/work/libtorrent-0.9.0'
make: *** [all] Error 2

!!! ERROR: net-libs/libtorrent-0.9.0 failed.
Call stack:
  ebuild.sh, line 1526:   Called dyn_compile
  ebuild.sh, line 923:   Called src_compile
  libtorrent-0.9.0.ebuild, line 31:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

 Portage 2.1_pre7-r4 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-ck7 x86_64)
=================================================================
System uname: 2.6.15-ck7 x86_64 Dual Core AMD Opteron(tm) Processor 165
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -msse3 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=k8 -msse3 -fomit-frame-pointer -funit-at-a-time -frename-registers -mtune=athlon64 -fno-ident -pipe -fno-enforce-eh-specs -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="autoconfig ccache confcache digest distcc distlocks metadata-transfer nodoc noinfo sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j8"
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="amd64 7zip X a52 aac abook acpi allegro alsa apache2 apm artworkextra avi bash-completion berkdb bitmap-fonts bzip2 ccache cdinstall cdio cdparanoia chroot cli crypt ctype cups dba dedicated dga dillo dio dnd dri dvd dvdr dvdread effects emboss emul-linux-x86 encode expat ext-png ext-zlib extensions fam fame fastbuild fat ffmpeg firefox flac flatfile foomaticdb force-cgi-redirect fortran ftp gb gd gdbm gif gimp gimpprint ginac glut glx gmail gmailtimestamps gnome gnome-print gpgme gphoto2 gpm gs gstreamer gtk gtk2 gzip imlib imlib2 inkjar isdnlog java jikes joystick jpeg jpeg2k kde keyscrub lame lcd lcms lesstif libdsk lm_sensors lynxkeymap lzo lzw lzw-tiff mad maildir matrox mbox mcal md5sum memlimit mikmod mimencode mixer mmap mng mod moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg2 mplayer musepack music ncurses net network nodoc nptl nptlonly offensive ofx ogg oggvorbis on-the-fly-crypt opengl pam pam_chroot pam_console pam_timestamp parse-clocks pcre pdf pdflib perl physfs pic png posix ppds pppd python qt quicktime rar rdesktop readline reiserfs rogue rtc sblive scanner sdl server session shorten simplexml soap sockets sounds sox spell spl sse-filters ssl sysfs szip tcltk tcpd tga theora threads tiff tokenizer transcode truetype truetype-fonts type1 type1-fonts usb uudeview v4l v4l2 vfat videos vnc vorbis wxwindows x11vnc xatrix xface xml xmms xosd xpm xscreensaver xsl xv xvid xvmc yv12 zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_mga video_cards_nv"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS
Comment 1 bMd 2006-04-08 08:37:20 UTC
remove -fvisibility-inlines-hidden from your CXXFLAGS should work
Comment 2 Brian Hall 2006-04-08 09:17:13 UTC
Yep, works after removing that. Error message led me to believe it was -fPIC.