Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 125856

Summary: media-sound/linuxsampler-0.3.3 fails with "recompile with -fPIC" error
Product: Gentoo Linux Reporter: Benjamin Hodgetts <ben>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Benjamin Hodgetts 2006-03-11 11:32:44 UTC
Trying to compile linuxsampler fails with the error (I've noticed 3 or 4 programs do it that I've tried to emerge):

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/Sampler.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.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-03-11 11:55:35 UTC
post your emerge --info please
Comment 2 Benjamin Hodgetts 2006-03-11 12:30:55 UTC
Portage 2.1_pre5-r4 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-rc3-nitro1 x86_64)
=================================================================
System uname: 2.6.16-rc3-nitro1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 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-r1
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="-march=k8 -O2 -msse3 -fomit-frame-pointer -fno-ident -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -msse3 -fomit-frame-pointer -fno-ident -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi aim alsa apm avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cdparanoia cdr cjk clamav crypt cups dbus dga dri dts dvd dvdr dvdread emboss encode exif ffmpeg flac flash foomaticdb fortran ftp gif glut gnome gphoto2 gpm gstreamer gtk gtk2 hal icq ieee1394 imagemagick imlib ipv6 javascript joystick jpeg jpeg2k lirc lzw lzw-tiff mad matroska mikmod mng mp3 mpeg ncurses nls nptl nsplugin ogg opengl pam pda pdf pdflib perl png ppds python qt quicktime readline samba scanner sdl smartcard speex spell ssl svg symlink szip tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd videos vorbis wmf wxwindows xine xmms xpm xv xvid yahoo zlib elibc_glibc input_devices_mouse input_devices_joystick input_devices_keyboard kernel_linux linguas_en userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS
Comment 3 Simon Stelling (RETIRED) gentoo-dev 2006-03-11 13:17:53 UTC
remove -fvisibility-hidden from your CXXFLAGS
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-11 14:50:47 UTC
Just for statistics
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-11 14:50:57 UTC

*** This bug has been marked as a duplicate of 78720 ***