While building openexr 1.2.2, the following happens: /bin/sh ../libtool --mode=link x86_64-pc-linux-gnu-g++ -pipe -march=athlon64 -O2 -pipe -fvisibility-inlines-hidden -o libIlmImf.la -rpath /usr/lib64 -version-info 2:2:0 ImfAttribute.lo ImfBoxAttribute.lo ImfCRgbaFile.lo ImfChannelList.lo ImfChannelListAttribute.lo ImfFloatAttribute.lo ImfFrameBuffer.lo ImfHeader.lo ImfIO.lo ImfInputFile.lo ImfIntAttribute.lo ImfLineOrderAttribute.lo ImfMatrixAttribute.lo ImfOpaqueAttribute.lo ImfOutputFile.lo ImfRgbaFile.lo ImfStringAttribute.lo ImfVecAttribute.lo ImfHuf.lo ImfWav.lo ImfLut.lo ImfCompressor.lo ImfRleCompressor.lo ImfZipCompressor.lo ImfPizCompressor.lo ImfMisc.lo ImfCompressionAttribute.lo ImfDoubleAttribute.lo ImfConvert.lo ImfPreviewImage.lo ImfPreviewImageAttribute.lo ImfVersion.lo ImfChromaticities.lo ImfChromaticitiesAttribute.lo ImfKeyCode.lo ImfKeyCodeAttribute.lo ImfTimeCode.lo ImfTimeCodeAttribute.lo ImfStandardAttributes.lo ImfStdIO.lo ImfEnvmap.lo ImfEnvmapAttribute.lo ImfScanLineInputFile.lo ImfTiledInputFile.lo ImfTiledMisc.lo ImfTiledOutputFile.lo ImfTiledRgbaFile.lo ImfTileDescriptionAttribute.lo ImfTileOffsets.lo ImfRgbaYca.lo ImfPxr24Compressor.lo ImfTestFile.lo x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/crtbeginS.o .libs/ImfAttribute.o .libs/ImfBoxAttribute.o .libs/ImfCRgbaFile.o .libs/ImfChannelList.o .libs/ImfChannelListAttribute.o .libs/ImfFloatAttribute.o .libs/ImfFrameBuffer.o .libs/ImfHeader.o .libs/ImfIO.o .libs/ImfInputFile.o .libs/ImfIntAttribute.o .libs/ImfLineOrderAttribute.o .libs/ImfMatrixAttribute.o .libs/ImfOpaqueAttribute.o .libs/ImfOutputFile.o .libs/ImfRgbaFile.o .libs/ImfStringAttribute.o .libs/ImfVecAttribute.o .libs/ImfHuf.o .libs/ImfWav.o .libs/ImfLut.o .libs/ImfCompressor.o .libs/ImfRleCompressor.o .libs/ImfZipCompressor.o .libs/ImfPizCompressor.o .libs/ImfMisc.o .libs/ImfCompressionAttribute.o .libs/ImfDoubleAttribute.o .libs/ImfConvert.o .libs/ImfPreviewImage.o .libs/ImfPreviewImageAttribute.o .libs/ImfVersion.o .libs/ImfChromaticities.o .libs/ImfChromaticitiesAttribute.o .libs/ImfKeyCode.o .libs/ImfKeyCodeAttribute.o .libs/ImfTimeCode.o .libs/ImfTimeCodeAttribute.o .libs/ImfStandardAttributes.o .libs/ImfStdIO.o .libs/ImfEnvmap.o .libs/ImfEnvmapAttribute.o .libs/ImfScanLineInputFile.o .libs/ImfTiledInputFile.o .libs/ImfTiledMisc.o .libs/ImfTiledOutputFile.o .libs/ImfTiledRgbaFile.o .libs/ImfTileDescriptionAttribute.o .libs/ImfTileOffsets.o .libs/ImfRgbaYca.o .libs/ImfPxr24Compressor.o .libs/ImfTestFile.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4 -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/libstdc++.so -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../lib64/crtn.o -march=athlon64 -Wl,-soname -Wl,libIlmImf.so.2 -o .libs/libIlmImf.so.2.0.2 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object. /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/ImfAttribute.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.4/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[1]: *** [libIlmImf.la] Error 1 make[1]: Leaving directory `/var/tmp/portage/openexr-1.2.2-r1/work/OpenEXR-1.2.2/IlmImf' make: *** [all-recursive] Error 1
cougar portage # emerge info Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r9 x86_64) ================================================================= System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -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" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac aalib acl acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bmp bzip2 caps cdparanoia cdr cjk crypt cups curl curlwrappers dbus dga dio directfb dv dvd eds encode esd ethereal exif fam fbcon ffmpeg fftw flac flash foomaticdb fortran gd geoip gif glut gphoto2 gpm gps gstreamer gtk gtk2 hal icq ieee1394 imagemagick imap imlib ipv6 jabber java javascript jikes joystick jpeg kde kdeenablefinal lcms libcaca libwww lirc lm_sensors lzw lzw-tiff mad maildir memlimit mikmod mime ming mmap mng motif mozilla mp3 mpeg mpi msn nas ncurses nls nptl offensive ogg oggvorbis opengl oscar pam pcntl pcre pda pdflib perl php png posix ppds python qt quicktime readline samba scanner sdl session sharedext sharedmem shorten simplexml sndfile sox speex spell spl ssl svg sysvipc szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vhosts videos vorbis wifi wmf xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xv xvid yahoo zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
*** Bug 103697 has been marked as a duplicate of this bug. ***
The error message seems to be complaining that it wants gstreamer recompiled with -fPIC. However, media-libs/gstreamer does not have a USE flag to enable this.
Builds fine here.. no -fPIC required What USE flags are you using for openexr? Please post full output of emerge -pv openexr The fltk USE flag kills the emerge for me during econf checking for fltk-config... /usr/bin/fltk-config /usr/lib/portage/bin/ebuild.sh: line 402: 26469 Killed "${ECONF_SOURCE}/configure" --prefix=/usr --host=${CHOST} --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib ${LOCAL_EXTRA_ECONF} "$@" !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/openexr-1.2.2-r1/work/OpenEXR-1.2.2/config.log !!! ERROR: media-libs/openexr-1.2.2-r1 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed Without that USE flag it builds fine. Jim Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r9 x86_64) ================================================================= System uname: 2.6.12-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -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/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks multilib-strict sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac alsa amarok amd64 avi berkdb bitmap-fonts browserplugin cdb cdr crypt cups curl directfb dvd dvdr dvdread eds encode esd fam flac foomaticdb fortran freetype gdbm gif gphoto2 gpm gstreamer gtk gtk2 guile hal imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal libwww lzw lzw-tiff mad mikmod mp3 mpeg mplayer msn ncurses nls nocd nvidia ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline real ruby samba sdl spell ssl symlink tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb userlocales v4l vcd vorbis xine xml2 xpm xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
remove the -fvisibility-hidden from your CXXFLAGS, it breaks it
*** Bug 118049 has been marked as a duplicate of this bug. ***