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
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"
Good call, fixing it now
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.