Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23563 - ffmpeg failed to compile on libavcodec/alpha/dsputil_alpha.c
Summary: ffmpeg failed to compile on libavcodec/alpha/dsputil_alpha.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-26 23:11 UTC by Mathieu MILLET
Modified: 2003-10-01 09:02 UTC (History)
0 users

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


Attachments
A possible correction (ffmpeg-dsputil_alph.c-compilation-error.patch,541 bytes, patch)
2003-06-26 23:40 UTC, Mathieu MILLET
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu MILLET 2003-06-26 23:11:19 UTC
whem emerging ffmpeg 0.4.7_pre20030624, I get the following error:
gcc -mcpu=ev56 -O3 -pipe -fPIC -Wall -g -DHAVE_AV_CONFIG_H -I..
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fforce-addr
-freduce-all-givs -c -o alpha/dsputil_alpha.o alpha/dsputil_alpha.c
alpha/dsputil_alpha.c: Dans la fonction 
Comment 1 Mathieu MILLET 2003-06-26 23:11:19 UTC
whem emerging ffmpeg 0.4.7_pre20030624, I get the following error:
gcc -mcpu=ev56 -O3 -pipe -fPIC -Wall -g -DHAVE_AV_CONFIG_H -I..
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fforce-addr
-freduce-all-givs -c -o alpha/dsputil_alpha.o alpha/dsputil_alpha.c
alpha/dsputil_alpha.c: Dans la fonction « dsputil_init_alpha »:
alpha/dsputil_alpha.c:366: structure n'a pas de membre nommé « idct_idct »
alpha/dsputil_alpha.c:366: « simple_idct_axp » non déclaré (première utilisation
dans cette fonction)
alpha/dsputil_alpha.c:366: (Chaque identificateur non déclaré est rapporté une
seule fois
alpha/dsputil_alpha.c:366: pour chaque fonction dans laquelle il apparaît.)
make[1]: *** [alpha/dsputil_alpha.o] Erreur 1
make[1]: Leaving directory
`/home/var/tmp/portage/ffmpeg-0.4.7_pre20030624/work/ffmpeg-cvs-2003-06-24/libavcodec'
make: *** [lib] Erreur 2


Reproducible: Always
Steps to Reproduce:
On alpha platform
1.emerge ffmpeg
Actual Results:  
Compilation and emerge fail

Expected Results:  
Emerge successfully

Portage 2.0.48-r1 (default-alpha-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-raid2 alpha EV56
GENTOO_MIRRORS="ftp://gentoo.irisa.fr/pub/gentoo-sources
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="alpha crypt cups encode gif jpeg libg++ mikmod ncurses nls oss pdflib png
quicktime sdl spell truetype xml2 xmms xv zlib gnome-libs gdbm berkdb slang
readline tetex ruby mysql X gpm tcpd pam libwww ssl perl python esd imlib
oggvorbis gnome motif opengl ldap cdr acl alsa avi doc dvd evo flash gb gd gtk2
gtkhtml guile imap innodb ipv6 kerberos libgda mcal mdb mozaccess mozcalendar
mozilla mozinterfaceinfo mozirc mozp3p mozxmlterm mpeg pda plotutils samba sasl
scanner snmp tcltk tiff usb vim-with-x wmf xfs xinerama xml xosd -kde -qt -gtk"
COMPILER="gcc3"
CHOST="alpha-unknown-linux-gnu"
CFLAGS="-mcpu=ev56 -O3 -pipe"
CXXFLAGS="-mcpu=ev56 -O3 -pipe"
ACCEPT_KEYWORDS="alpha ~alpha"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 2 Mathieu MILLET 2003-06-26 23:14:56 UTC
Commenting/Removing line 366 in the file libavcodec/alpha/dsputil_alpha.c allows the compilation to succeed (and the rest of ffmpeg as well).

Since the structure DSPContext declared in libavcodec/dsputil.h doesn't contain any declaration for the member idct_idct.

I can't yet tell if this has some consequence on the behaviour on ffmpeg.
Comment 3 Mathieu MILLET 2003-06-26 23:40:15 UTC
Created attachment 13923 [details, diff]
A possible correction

Just comment/remove the line 366 in the file libavcodec/alpha/dsputil_alpha.c
Comment 4 Nick Hadaway 2003-07-02 11:13:41 UTC
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ffmpeg/ffmpeg/libavcodec/alpha/dsputil_alpha.c.diff?r1=1.19&r2=1.20

that has the fix you are looking for... i am adding this fix to our build. :)
Please test.
Comment 5 Mathieu MILLET 2003-07-05 01:10:24 UTC
It compiles right. YES.

Since I don't have yet a player, I can't test yet if it runs well.
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2003-10-01 09:02:25 UTC
Closing FIXED