Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78613 - mplayer can't build on amd64
Summary: mplayer can't build on amd64
Status: RESOLVED DUPLICATE of bug 93862
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-18 20:30 UTC by John Richard Moser
Modified: 2009-09-09 00:52 UTC (History)
2 users (show)

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 John Richard Moser 2005-01-18 20:30:50 UTC
/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"
Comment 1 Roland Bär 2005-01-20 06:45:45 UTC
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.

Comment 2 Chris White (RETIRED) gentoo-dev 2005-01-20 13:29:45 UTC
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.
Comment 3 Roland Bär 2005-01-21 01:28:53 UTC
Sorry, my fault, cvs compile also breaks. (Forgotten to source /etc/profile as normal user).
Mask this package out for hardened on amd64
Comment 4 Roland Bär 2005-02-08 04:41:31 UTC
This should be re-assigned to hardened@gentoo.org
Comment 5 IPc0P 2005-03-03 01:38:18 UTC
make[1]: Leaving directory `/var/tmp/portage/mplayer-1.0_pre6/work/MPlayer-1.0pre6a/libaf'
Comment 6 Chris White (RETIRED) gentoo-dev 2005-03-15 21:59:07 UTC
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.
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-21 09:07:54 UTC
is this still an issue with current versions?
Comment 8 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-23 03:34:39 UTC
feel free to reopen if the problem persists, i can't reproduce it on amd64
Comment 9 Radu Benea 2009-09-09 00:43:38 UTC
it is still an issue, but only with hardened toolchain
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2009-09-09 00:52:16 UTC
Reopen.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2009-09-09 00:52:27 UTC

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