Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75945 - media-video/lives-0.9.1 needs -fPIC
Summary: media-video/lives-0.9.1 needs -fPIC
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:
Depends on:
Blocks:
 
Reported: 2004-12-28 13:19 UTC by Alastair Murray
Modified: 2005-09-14 13:13 UTC (History)
2 users (show)

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


Attachments
patch to ebuild to correct problem (lives.0.9.1.ebuild.patch,609 bytes, patch)
2004-12-28 13:20 UTC, Alastair Murray
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alastair Murray 2004-12-28 13:19:56 UTC
media-video/lives-0.9.1 fails to compile on an amd64 system, the error below is given.  Attached patch to ebuild seems to fix problem (it appends -fPIC to CFLAGS  on amd64 systems).

Reproducible: Always
Steps to Reproduce:
1. emerge =media-video/lives-0.9.1

Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld:
yuv4mpeg_stream-yuv4mpeg_stream.o: relocation R_X86_64_32S can not be used when
making a shared object; recompile with -fPIC
yuv4mpeg_stream-yuv4mpeg_stream.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[4]: *** [yuv4mpeg_stream] Error 1

Expected Results:  
lives should have been installed

bash-2.05b# emerge info
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20040808-r
1, 2.6.7 x86_64)
=================================================================
System uname: 2.6.7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.6-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-mtune=athlon64 -march=athlon64 -O2 -frename-registers -fweb -ffast-math
 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3
/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /us
r/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mtune=athlon64 -march=athlon64 -O2 -frename-registers -fweb -ffast-ma
th -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aalib acpi alsa apache2 arts avi berkdb bitmap-fonts cdr crypt cups
 dvd encode fam flac ftp gdbm gif gpm gstreamer gtk gtk2 gtkhtml guile imagemagi
ck imlib java jp2 jpeg junit kde libg++ libwww lzw lzw-tiff mad mng motif mozill
a mozsvg mpeg msn multilib mysql ncurses nptl nptlonly odbc ogg oggvorbis opengl
 pam pdflib perl php png postgres python qt quicktime readline ruby samba sdl sl
ang spell spl ssl svg tcltk tcpd theora tiff truetype usb userlocales videos wmf
 wxwindows xine xml xml2 xmms xpm xrandr xscreensaver xv xvid zlib"
Comment 1 Alastair Murray 2004-12-28 13:20:30 UTC
Created attachment 47053 [details, diff]
patch to ebuild to correct problem
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-08 10:19:39 UTC
*** Bug 76660 has been marked as a duplicate of this bug. ***
Comment 3 salsaman 2005-01-09 08:01:30 UTC
Just a note, please email the author (salsaman at xs4all.nl) if you run LiVES on amd64. He would like to run some benchmarks to see how well LiVES performs on this architecture. Thanks.
Comment 4 Luca Barbato gentoo-dev 2005-04-03 11:20:10 UTC
Gabriel could you properly fix the issue in the makefile (each shared object code has to be compiled -fPIC)?

I won't add such hack if possible since it would build executables -fPIC and is wrong.
Comment 5 Jim Laflin 2005-09-14 13:13:21 UTC
This is fixed in lives-0.9.5_pre3 which has the same KEYWORDS as 0.9.1.

Closing. Please feel free to re-open if this is in error

Jim

Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo 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 http://mirror.gentoo.gr.jp
http://ftp.gentoo.or.kr/ ftp://mirror.nutsmaas.nl/gentoo/"
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 apache2 avi berkdb bitmap-fonts browserplugin cdb
cdr crypt curl directfb dvd dvdr dvdread eds emboss 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 speex
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