Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53415 - media-video/vlc-0.7.2 fails to build on PPC
Summary: media-video/vlc-0.7.2 fails to build on PPC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-09 07:37 UTC by Olivier Castan
Modified: 2004-06-25 13:31 UTC (History)
1 user (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 Olivier Castan 2004-06-09 07:37:42 UTC
When compiling vlc-0.7.2 the build process fails complaining about a media-libs/live archive which was not compiled with -fPIC.
It fails with the same error when linking with libmatroska if the USE flag "matroska" is set :

# emerge -uv vlc
[...]
g++  -Wsign-compare -Wsign-compare -Wall  -finline-limit-30000 -pipe   -o libvlcplugin.so libplugin_a-vlcshell.o libplugin_a-vlcplugin.o libplugin_a-vlcpeer.o  libplugin_a-npunix.o   \
  ../lib/libvlc_pic.a -shared \
  `top_builddir=".." ../vlc-config --libs vlc mozilla builtin pic`
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/../../../../powerpc-unknown-linux-gnu/bin/ld: Error: The symbol `libebml::EbmlMaster::EbmlMaster[not-in-charge](libebml::EbmlSemanticContext const&, bool)' has a R_PPC_REL24 relocation, that means '/usr/lib/libmatroska.a(KaxAttachments.o)' was compiled without -fPIC.
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/../../../../powerpc-unknown-linux-gnu/bin/ld: Error: The symbol `libebml::EbmlMaster::EbmlMaster[not-in-charge](libebml::EbmlSemanticContext const&, bool)' has a R_PPC_REL24 relocation, that means '/usr/lib/libmatroska.a(KaxAttachments.o)' was compiled without -fPIC.
collect2: ld a retourn
Comment 1 Olivier Castan 2004-06-09 07:37:42 UTC
When compiling vlc-0.7.2 the build process fails complaining about a media-libs/live archive which was not compiled with -fPIC.
It fails with the same error when linking with libmatroska if the USE flag "matroska" is set :

# emerge -uv vlc
[...]
g++  -Wsign-compare -Wsign-compare -Wall  -finline-limit-30000 -pipe   -o libvlcplugin.so libplugin_a-vlcshell.o libplugin_a-vlcplugin.o libplugin_a-vlcpeer.o  libplugin_a-npunix.o   \
  ../lib/libvlc_pic.a -shared \
  `top_builddir=".." ../vlc-config --libs vlc mozilla builtin pic`
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/../../../../powerpc-unknown-linux-gnu/bin/ld: Error: The symbol `libebml::EbmlMaster::EbmlMaster[not-in-charge](libebml::EbmlSemanticContext const&, bool)' has a R_PPC_REL24 relocation, that means '/usr/lib/libmatroska.a(KaxAttachments.o)' was compiled without -fPIC.
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.3/../../../../powerpc-unknown-linux-gnu/bin/ld: Error: The symbol `libebml::EbmlMaster::EbmlMaster[not-in-charge](libebml::EbmlSemanticContext const&, bool)' has a R_PPC_REL24 relocation, that means '/usr/lib/libmatroska.a(KaxAttachments.o)' was compiled without -fPIC.
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [libvlcplugin.so] Erreur 1
make[3]: Leaving directory `/home/portage/tmp/portage/vlc-0.7.2/work/vlc-0.7.2/mozilla'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/home/portage/tmp/portage/vlc-0.7.2/work/vlc-0.7.2/mozilla'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/portage/tmp/portage/vlc-0.7.2/work/vlc-0.7.2'
make: *** [all] Erreur 2

I've modified media-plugins/live/live-2004.03.27.ebuild and media-libs/libmatroska/libmatroska-0.7.0.ebuild adding "use ppc && append-flags -fPIC" just after
"# Travis Tilley <lv@gentoo.org> 09 Apr 2004
use amd64 && append-flags -fPIC"
in both ebuilds, done "emerge -v live libmatroska" and vlc compilation succeeded.
vlc 0.7.2 runs fine since.

Reproducible: Always
Steps to Reproduce:




# qpkg -I -v live
media-plugins/live-2004.03.27 *
# qpkg -I -v libmatroska
media-libs/libmatroska-0.7.0 *


Portage 2.0.50-r8 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.4.24-ppc-r4)
=================================================================
System uname: 2.4.24-ppc-r4 ppc 7455, altivec supported
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec"
DISTDIR="/home/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://128.213.5.34/gentoo/
http://gentoo.inode.at/ http://ds.thn.htu.se/linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X X509 aalib alsa altivec arts berkdb bonobo cdr crypt cups dga dillo
directfb dv dvd dvdr encode esd faad fbcon ffmpeg flash foomaticdb gd gdbm ggi
gif gnome gnome-libs gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib
java javascript jpeg libwww mad matroska mitshm motif mozilla mpeg mpeg4 ncurses
nls odbc offensive oggvorbis opengl oss pam pdflib perl pg-hier png ppc ppds
python quicktime radeon readline sdl slang spell ssl tcltk tcpd theora tiff
truetype video_cards_radeon wmf xface xine xmms xv xvid zlib"
Comment 2 Luca Barbato gentoo-dev 2004-06-09 14:27:36 UTC
Good call, fixing it now
Comment 3 Joel Martin (RETIRED) gentoo-dev 2004-06-25 13:31:01 UTC
Looks like this fix is already in the tree but the bug wasn't closed.
Olivier, can you verify that the in-tree fix works for you? If it doesn't 
re-open this bug.