/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: libvo/libvo.a(osd.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC libvo/libvo.a: could not read symbols: Bad value collect2: ld returned 1 exit status make: *** [mplayer] Error 1 !!! ERROR: media-video/mplayer-1.0_pre6 failed. !!! Function src_compile, Line 425, Exitcode 2 !!! Failed to build MPlayer! !!! If you need support, post the topmost build error, NOT this status message. Error message with hardened gcc with or without -fPIC Portage 2.0.51-r13 (hardened/amd64, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-hardened-r2 x86_64) ================================================================= System uname: 2.6.10-hardened-r2 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 21 2004, 18:39:55)] ccache version 2.3 [disabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.4_p6, 1.9.4, 1.6.3, 1.7.9, 1.8.5-r2 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe -ftracer -fweb -funit-at-a-time -fomit-frame-pointer -mfpmath=387 -mno-sse -fno-stack-protector-all -fstack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -ftracer -fweb -funit-at-a-time -fomit-frame-pointer -mfpmath=387 -mno-sse -fno-stack-protector-all -fstack-protector" DISTDIR="/home/shared/sysdirs/usr/portage/distfiles/" FEATURES="autoaddcvs autoconfig buildpkg distlocks paxmarks sandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.pair.com/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/home/shared/sysdirs/usr/portage/packages/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/olay64 /usr/local/portage/common" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3ds X aalib acl acpi adns alsa amd64 apm avi berkdb bitmap-fonts bmp bootsplash bzip2 caps cdr composite crypt cups dlloader dmx dri dvd esd f77 fam flac gcj gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile hal hardened imagemagick imlib ipv6 ithreads java jbig jpeg justify lcms ldap libwww lzw-tiff mad mikmod mmap mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg multilib mysql ncurses nls nptl objc offensive oggvorbis openal opengl oss pam perl pic pie png ppds python quicktime readline samba sdl slang speex spell sqlite ssl tcltk tcpd theora threads tiff truetype unstable-meta usb videos wmf xchatdccserver xml xml2 xprint xv zlib"
The actual problem is, that the "hardened" gcc 3.4.3 breaks at that point. $ gcc-config -c x86_64-pc-linux-gnu-3.4.3-hardened $ But the cvs version compiles fine with "hardened", so something wrong with ebuild. Changing gcc to regular x86_64-pc-linux-gnu-3.4.3 let's successful emerge mplayer.
Roland, Would you mind giving me a log of mplayer cvs compiling and your portage compile so I can compare them? I'd like to try and check out the different configure pickups to check a few things out.
Sorry, my fault, cvs compile also breaks. (Forgotten to source /etc/profile as normal user). Mask this package out for hardened on amd64
This should be re-assigned to hardened@gentoo.org
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre6/work/MPlayer-1.0pre6a/libaf'
I think I know the problem from previous dealings with ffmpeg and pic. It seems that libavcodec and libavformat do not pull config.mak settings and use their own flags instead (non-pic flags..). Once I get ffmpeg working with it, I should be able to do the same thing here.
is this still an issue with current versions?
feel free to reopen if the problem persists, i can't reproduce it on amd64
it is still an issue, but only with hardened toolchain
Reopen.
*** This bug has been marked as a duplicate of bug 93862 ***