Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
avifile won't compile with gcc3.1.1
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
dolfin
n00b
n00b


Joined: 04 May 2002
Posts: 19
Location: Haifa, Israel

PostPosted: Sat Jul 20, 2002 10:04 pm    Post subject: avifile won't compile with gcc3.1.1 Reply with quote

I don't know if I'm the only one who gets it, or if there is a solution for that, but when I try to compile avifile (because I need KDE and XMMS) I get this error:
Code:

gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -DHAVE_AV_CONFIG_H -I./.. -I./../.. -Wall -Wno-unused -I../../../include -O4 -fomit-frame-pointer -march=i686 -march=pentium4 -fomit-frame-pointer -pipe -pipe -c mpegvideo_mmx.c -MT mpegvideo_mmx.lo -MD -MP -MF .deps/mpegvideo_mmx.TPlo  -fPIC -DPIC -o mpegvideo_mmx.lo
mpegvideo_mmx.c: In function `dct_unquantize_mpeg1_mmx':
mpegvideo_mmx.c:199: warning: operation on `nCoeffs' may be undefined
mpegvideo_mmx.c: In function `dct_unquantize_mpeg2_mmx':
mpegvideo_mmx.c:325: warning: operation on `nCoeffs' may be undefined
mpegvideo_mmx.c: In function `dct_quantize_MMX':
mpegvideo_mmx_template.c:86: can't find a register in class `GENERAL_REGS' while reloading `asm'
make[3]: *** [mpegvideo_mmx.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec/i386'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg'
make: *** [all-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 62, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild


Those are my flags:
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"
CXXFLAGS="-march=pentium4 -O3 -fomit-frame-pointer -pipe"


And as I said, I'm using gcc 3.1.1. any ideas?

Thanks!
Gil
_________________
[img:efc02f0a33]http://www.rpg.org.il/signatures/dolf_sig.gif[/img:efc02f0a33]
Back to top
View user's profile Send private message
eheintz
n00b
n00b


Joined: 16 Jul 2002
Posts: 12

PostPosted: Sun Jul 21, 2002 12:07 am    Post subject: Reply with quote

This is a known issue with avifile and gcc311. According to the avifile website it's the compiler's fault. They are aware of it since in addition to Gentoo, Mandrake Cooker also users a gcc311 prerelease.

Unfortuately there's been at least two code releases since the bug surfaced with no news that I was able to find with regards to a solution. :cry:
Back to top
View user's profile Send private message
fhimpe
n00b
n00b


Joined: 30 May 2002
Posts: 9

PostPosted: Mon Jul 22, 2002 12:26 pm    Post subject: Here's a patch Reply with quote

There's a patch from Mandrake Cooker, you can find it here:
http://marc.theaimsgroup.com/?l=mandrake-cooker&m=102723739024185&w=2
Back to top
View user's profile Send private message
enesideme
n00b
n00b


Joined: 20 Apr 2002
Posts: 46
Location: france

PostPosted: Mon Jul 22, 2002 3:27 pm    Post subject: patch works Reply with quote

I've just applied the patch on the latest sources gotten from cvs and building works. It should also works for the gentoo bzipped package

if you want the sources from cvs just:

cvs -z3-d:pserver:anonymous@cvs.avifile.sourceforge.net:/cvsroot/avifile co avifile

an then cd avifile and sh autogen.sh and (with your flags) ./configure make ...

you can also untar the packages patch the file compress again remake the digest and emerge avifile
Back to top
View user's profile Send private message
enesideme
n00b
n00b


Joined: 20 Apr 2002
Posts: 46
Location: france

PostPosted: Tue Jul 23, 2002 9:02 pm    Post subject: patching avifile to compile it with gcc3.1.1 Reply with quote

if you want to patch avifile here is how to proceed

1) ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild unpack

2)patch /var/tmp/portage/avifile-0.7.7.20020523/work/avifile0.7-0.7.7/ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c /avifile.0.7.0.7.8-asmfixes.patch

I suppose of course you got the patch

3)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild compile

4)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild install

5)ebuild /usr/portage/media-video/avifile/avifile-0.7.7.20020523.ebuild qmerge

It works I've watched final fantasy without any problem

of course you can wait until the ebuild script is updated
Back to top
View user's profile Send private message
fidler
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 162
Location: Utah

PostPosted: Tue Jul 30, 2002 9:56 pm    Post subject: Reply with quote

Thanks. That was helpful
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum