<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>109280</bug_id>
          
          <creation_ts>2005-10-14 08:03 0000</creation_ts>
          <short_desc>gst-plugins-ffmpeg-0.8.6 fails to build</short_desc>
          <delta_ts>2005-11-27 06:29:56 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GNOME</component>
          <version>unspecified</version>
          <rep_platform>PPC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dashnu@gmail.com</reporter>
          <assigned_to>gstreamer@gentoo.org</assigned_to>
          <cc>gad.kadosh@gmail.com</cc>
    
    <cc>gnome@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dashnu@gmail.com</who>
            <bug_when>2005-10-14 08:03:32 0000</bug_when>
            <thetext>Build Fails. 
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../libavcodec -fomit-frame-pointer -O2 -pipe -fno-pie -fno-pie -MT
postprocess.lo -MD -MP -MF .deps/postprocess.Tpo -c postprocess.c  -fPIC -DPIC
-o .libs/postprocess.o
postprocess.c:633:42: postprocess_altivec_template.c: No such file or directory
make[8]: *** [postprocess.lo] Error 1
make[8]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg/libavcodec/libpostproc&apos;
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg/libavcodec&apos;
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg&apos;
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg&apos;
make[4]: *** [all-local] Error 2
make[4]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6&apos;
make: *** [all] Error 2



Reproducible: Always
Steps to Reproduce:
1.emerge -u gst-plugins-ffmpeg
2.
3.

Actual Results:  
Build failed

Expected Results:  
build success

Portage 2.0.53_rc5 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r2 ppc)
=================================================================
System uname: 2.6.13-gentoo-r2 ppc 7447/7457, altivec supported
Gentoo Base System version 1.12.0_pre9
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;powerpc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig candy ccache digest distlocks fixpackages notitles sandbox
sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X alsa altivec bash-completion berkdb bitmap-fonts cdr crypt dvd dvdr esd
gnome gpm gstreamer gtk gtk2 hal howl jpeg ncurses nptl nptlonly opengl pam perl
png ppc python readline spell ssl svg tcpd tiff truetype truetype-fonts
type1-fonts unicode xml2 zlib userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gad.kadosh@gmail.com</who>
            <bug_when>2005-10-26 04:03:36 0000</bug_when>
            <thetext>same problem here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>draeven@dragons-breath.net</who>
            <bug_when>2005-11-03 06:48:26 0000</bug_when>
            <thetext>I am having the same problem as well.  It appears that there is a file missing
from the source tree, postprocess_altivec_template.c.  I have searched my system
for it and it cannot be found.

 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../..
-I../../libavcodec -fomit-frame-pointer -O2 -mcpu=7450 -mtune=powerpc -pipe
-fno-strict-aliasing -maltivec -mabi=altivec -mpowerpc-gfxopt -fno-pie -fno-pie
-MT postprocess.lo -MD -MP -MF .deps/postprocess.Tpo -c postprocess.c  -fPIC
-DPIC -o .libs/postprocess.o
postprocess.c:633:42: postprocess_altivec_template.c: No such file or directory
make[8]: *** [postprocess.lo] Error 1
make[8]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg/libavcodec/libpostproc&apos;
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg/libavcodec&apos;
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg&apos;
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext/ffmpeg&apos;
make[4]: *** [all-local] Error 2
make[4]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs/ext&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6/gst-libs&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gst-plugins-ffmpeg-0.8.6/work/gst-ffmpeg-0.8.6&apos;
make: *** [all] Error 2

Portage 2.0.53_rc7 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo ppc)
=================================================================
System uname: 2.6.14-gentoo ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;powerpc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O2 -mcpu=7450 -mtune=powerpc -pipe -fno-strict-aliasing -maltivec
-mabi=altivec -mpowerpc-gfxopt&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -mcpu=7450 -mtune=powerpc -pipe -fno-strict-aliasing -maltivec
-mabi=altivec -mpowerpc-gfxopt&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://gentoo.netnitco.net
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;ppc X aac aim aimextras alsa altivec apache2 applet artworkextra audiofile
automount bash-completion berkdb bitmap-fonts bonobo bootsplash browserplugin
bzip2 c++ cdda cddb cdparanoia cdrom chroot clamav clamd cpudetection cracklib
crypt cscope cups curlwrappers dbus doc dri dvd dvdread eds emboss encode esd
ethereal fam fat fbcon fbsplash ffmpeg fftw firefox font-server fontconfig
foomaticdb fortran freetype gd gif gimp gimpprint glx gnome gnome-print
gnomecanvas gnutls gpm gstreamer gtk gtk2 gtkhtml gvim gzip hal hfs howl
ieee1394 image imlib imlib2 javascript jpeg lame lcd lesstif libclamav libwww
logrotate messages mjpeg motif mozdevelop moznocompose moznoirc moznomail
mozsha1 mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4 mplayer msn nautilus
ncurses netbeans nethack new-login nfs nls nocardbus nptl nptlonly nsplugin ntfs
offensive ogg oggvorbis on-the-fly-crypt opengl openssh openssl pam pbbuttonsd
pcre pdf pdflib perl png ppds python qt quicktime readline reiserfs servlet-2.3
servlet-2.4 sndfile sounds sox spamassassin spell ssl svg tcpd theora threads
thumbnail tiff truetype truetype-fonts type1 type1-fonts udev unicode urandom
usb userlocales utf8 v4l2 vcd videos vim vim-pager vim-with-x vnc vorbis wifi
xinerama xinetd xml xml2 xosd xpm xprint xscreensaver xv xvid yahoo yv12 zip
zlib userland_GNU kernel_linux elibc_glibc&quot;
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>draeven@dragons-breath.net</who>
            <bug_when>2005-11-03 07:49:11 0000</bug_when>
            <thetext>I have also tried turning off the &quot;cpudetection&quot; USE flag to see if that would
fix the problem, but alas it does not.  It seems that there is some sort of
problem with renaming the file &quot;postprocess_template.c&quot; when called based on
architecture.  Here is a snippet of code that applies to the altivec section
from postprocess.c:

Lines 628-636

#ifdef ARCH_POWERPC
#ifdef COMPILE_ALTIVEC
#undef RENAME
#define HAVE_ALTIVEC
#define RENAME(a) a ## _altivec
#include &quot;postprocess_altivec_template.c&quot;
#include &quot;postprocess_template.c&quot;
#endif
#endif //ARCH_POWERPC

I&apos;m wondering if taking out the #include &quot;postprocess_altivec_template.c&quot; line
would fix the problem.  I&apos;ll be the first to admit that I&apos;m not a heavy C coder,
so I&apos;m not sure.  I&apos;m going to give it a whirl and see what happens.

Draeven</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>draeven@dragons-breath.net</who>
            <bug_when>2005-11-03 08:29:51 0000</bug_when>
            <thetext>Created an attachment (id=72027)
Proposed patch for gst-plugins-ffmpeg-0.8.6

Ok, I&apos;ve patched postprocess.c with the attached patch.  I was able to get to
compile fairly cleanly, the only problem I had when it finished was:

ERROR: Caught a segmentation fault while loading plugin file:
/usr/lib/gstreamer-0.8/libgstvideotestsrc.so

Please either:
- remove it and restart.
- run with --gst-disable-segtrap and debug.

I don&apos;t know if this is critical or not, but it is merged into my world file at
this time.

Draeven</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>draeven@dragons-breath.net</who>
            <bug_when>2005-11-03 08:37:44 0000</bug_when>
            <thetext>Created an attachment (id=72029)
Proposed patch for gst-plugins-ffmpeg-0.8.6

First patch didn&apos;t include path info and would fail, this is the correct patch.


Sorry for the mixup.

Draeven</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gad.kadosh@gmail.com</who>
            <bug_when>2005-11-03 13:12:02 0000</bug_when>
            <thetext>draeven, the segmentation fault is a problem caused by liboil which does not
work well with ppc right now. The devs know about this however, I hope it will
be fixed soon.
see:
http://bugs.gentoo.org/show_bug.cgi?id=110486
http://bugs.gentoo.org/show_bug.cgi?id=109270</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>draeven@dragons-breath.net</who>
            <bug_when>2005-11-03 19:25:12 0000</bug_when>
            <thetext>With that being said, and that segmentation fault being a liboil issue, is this
patch a viable workaround or is it more or less just a lucky hack on my part?

If it is a viable workaround, can it be included in the next ebuild?

I&apos;m just more or less curious at this point, as I am just starting to learn C.

Thanks,

Draeven</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gad.kadosh@gmail.com</who>
            <bug_when>2005-11-19 08:10:03 0000</bug_when>
            <thetext>gst-plugins-ffmpeg-0.8.7 compiles fine on ppc, and I think it works too - I&apos;m
not sure how to specifically test it though. Once 0.8.7 is in portage I guess it
should be marked ~ppc while 0.8.6 should be -ppc.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zaheerm@gentoo.org</who>
            <bug_when>2005-11-27 06:29:56 0000</bug_when>
            <thetext>ok fixed</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>72027</attachid>
            <date>2005-11-03 08:29 0000</date>
            <desc>Proposed patch for gst-plugins-ffmpeg-0.8.6</desc>
            <filename>gst-plugins-ffmpeg-0.8.6-altivec.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBvc3Rwcm9jZXNzLmMJMjAwNS0xMS0wMyAxMTo1ODozOS4wMDAwMDAwMDAgLTA1MDAKKysr
IHBvc3Rwcm9jZXNzLWZpeC5jCTIwMDUtMTEtMDMgMTE6NTg6MDkuMDAwMDAwMDAwIC0wNTAwCkBA
IC02MzAsNyArNjMwLDcgQEAKICN1bmRlZiBSRU5BTUUKICNkZWZpbmUgSEFWRV9BTFRJVkVDCiAj
ZGVmaW5lIFJFTkFNRShhKSBhICMjIF9hbHRpdmVjCi0jaW5jbHVkZSAicG9zdHByb2Nlc3NfYWx0
aXZlY190ZW1wbGF0ZS5jIgorLy8jaW5jbHVkZSAicG9zdHByb2Nlc3NfYWx0aXZlY190ZW1wbGF0
ZS5jIgogI2luY2x1ZGUgInBvc3Rwcm9jZXNzX3RlbXBsYXRlLmMiCiAjZW5kaWYKICNlbmRpZiAv
L0FSQ0hfUE9XRVJQQwo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>72029</attachid>
            <date>2005-11-03 08:37 0000</date>
            <desc>Proposed patch for gst-plugins-ffmpeg-0.8.6</desc>
            <filename>gst-plugins-ffmpeg-0.8.6-altivec.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdzdC1wbHVnaW5zLWZmbXBlZy9nc3QtbGlicy9leHQvZmZtcGVnL2xpYmF2Y29kZWMvbGli
cG9zdHByb2MvcG9zdHByb2Nlc3MuYwkyMDA1LTExLTAzIDExOjU4OjM5LjAwMDAwMDAwMCAtMDUw
MAorKysgZ3N0LXBsdWdpbnMtZmZtcGVnL2dzdC1saWJzL2V4dC9mZm1wZWcvbGliYXZjb2RlYy9s
aWJwb3N0cHJvYy9wb3N0cHJvY2Vzcy1maXguYwkyMDA1LTExLTAzIDExOjU4OjA5LjAwMDAwMDAw
MCAtMDUwMApAQCAtNjMwLDcgKzYzMCw3IEBACiAjdW5kZWYgUkVOQU1FCiAjZGVmaW5lIEhBVkVf
QUxUSVZFQwogI2RlZmluZSBSRU5BTUUoYSkgYSAjIyBfYWx0aXZlYwotI2luY2x1ZGUgInBvc3Rw
cm9jZXNzX2FsdGl2ZWNfdGVtcGxhdGUuYyIKKy8vI2luY2x1ZGUgInBvc3Rwcm9jZXNzX2FsdGl2
ZWNfdGVtcGxhdGUuYyIKICNpbmNsdWRlICJwb3N0cHJvY2Vzc190ZW1wbGF0ZS5jIgogI2VuZGlm
CiAjZW5kaWYgLy9BUkNIX1BPV0VSUEMK
</data>        

          </attachment>
    </bug>

</bugzilla>