Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87820 - media-libs/libmpeg3 needs -fPIC on amd64
Summary: media-libs/libmpeg3 needs -fPIC on amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 83369
  Show dependency tree
 
Reported: 2005-04-03 11:17 UTC by Paul Betts
Modified: 2005-04-07 19:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix compilation of the shared library with -fPIC (libmpeg3-fpic.patch,494 bytes, patch)
2005-04-03 13:24 UTC, Herbie Hopkins (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Betts 2005-04-03 11:17:40 UTC
Emerging libmpeg3 on the default AMD64 2005.0 profile fails because -fPIC is not specified in the Ebuild. Unfortunately, several major programs depend on this library (kdemultimedia, k3b, mplayer), so a lot of things don't work as a result.

Reproducible: Always
Steps to Reproduce:
1. emerge libmpeg3


Actual Results:  
gcc -shared -o x86_64/libmpeg3.so x86_64/audio/ac3.o x86_64/audio/dct.o
x86_64/audio/huffman.o x86_64/audio/layer2.o x86_64/audio/layer3.o
x86_64/audio/mpeg3audio.o x86_64/audio/pcm.o x86_64/audio/synthesizers.o
x86_64/audio/tables.o x86_64/bitstream.o x86_64/libmpeg3.o x86_64/mpeg3atrack.o
x86_64/mpeg3css.o x86_64/mpeg3demux.o x86_64/mpeg3ifo.o x86_64/mpeg3io.o
x86_64/mpeg3title.o x86_64/mpeg3vtrack.o x86_64/video/getpicture.o
x86_64/video/headers.o x86_64/video/idct.o x86_64/video/macroblocks.o
x86_64/video/mmxtest.o x86_64/video/motion.o x86_64/video/mpeg3video.o
x86_64/video/output.o x86_64/video/reconstruct.o x86_64/video/seek.o
x86_64/video/slice.o x86_64/video/vlc.o x86_64/workarounds.o   -lm -lpthread
-L/usr/lib64  -la52
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
x86_64/audio/ac3.o: relocation R_X86_64_32S against `a local symbol' can not be
used when making a shared object; recompile with -fPIC
x86_64/audio/ac3.o: could not read symbols: Bad value


Expected Results:  
Compiled cleanly


Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3,
glibc-2.3.4.20050125-r1, 2.6.11-nitro2 x86_64)
=================================================================
System uname: 2.6.11-nitro2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  4 2005, 20:56:19)]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.9.4, 1.5
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.seren.com/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.mirrors.pair.com/"
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="amd64 X acl acpi aim alsa arts avi berkdb bitmap-fonts bmp bonobo bzlib
canna cdr cjk crypt cups curl dga directfb dvd dvdr emacs encode esd ethereal
evo exif fam flac font-server fortran ftp gif gmp gnome gphoto2 gpm gstreamer
gtk gtk2 gtkhtml guile imagemagick imlib ipv6 jack java jp2 jpeg junit kde
kerberos ldap libwww lzw lzw-tiff mozilla mp3 mpeg msn mssql ncurses nls nptl
offensive oggvorbis openal opengl oscar pam pda pdflib perl png python qt
quicktime readline samba sasl scanner sdl soap sockets spell ssl svg tcpd tetex
tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos xine
xinerama xml xml2 xmms xosd xpm xrandr xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Herbie Hopkins (RETIRED) gentoo-dev 2005-04-03 13:24:27 UTC
Created attachment 55228 [details, diff]
patch to fix compilation of the shared library with -fPIC
Comment 2 Danny van Dyk (RETIRED) gentoo-dev 2005-04-07 19:32:38 UTC
In CVS now, thanks Herb
FIXED