Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105586 - transcode compilation crash - undeclared frame_rate in ffmpeg/avcodec.h
Summary: transcode compilation crash - undeclared frame_rate in ffmpeg/avcodec.h
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 107031 107176 107738 (view as bug list)
Depends on:
Blocks: 109253
  Show dependency tree
 
Reported: 2005-09-11 03:41 UTC by Matus Tejiscak
Modified: 2005-12-18 10:23 UTC (History)
18 users (show)

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


Attachments
Patch to get transcode to compile with recent ffmpeg versions (transcode-0.6.14-ffmpeg-0.4.9_p20050906.patch,4.93 KB, patch)
2005-10-13 03:59 UTC, Gregor Riepl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matus Tejiscak 2005-09-11 03:41:42 UTC
undeclared members of struct AVCodecContext in ffmpeg/avcodec.h - frame_rate,
frame_rate_base causing compilation crash of media-video/transcode-0.6.14-r2
awfully fixed by inserting `int frame_rate, frame_rate_base' in the struct

Reproducible: Always
Steps to Reproduce:
1. emerge transcode
2.
3.

Actual Results:  
export_ffmpeg.c: In function `export_ffmpeg_init':
export_ffmpeg.c:677: structure has no member named `frame_rate'
export_ffmpeg.c:678: structure has no member named `frame_rate_base'
- many, many times repeated -
emerge exited

Expected Results:  
errorless compilation; declaring the two symbols in ffmpeg/avcodec.h

i don't know whether this is caused only by some compile options/defines; i just
needed to fix it quickly so i added the declarations in the relevant file.
anyway, it wouldn't have linked if the symbols hadn't been exported in the lib,
so it's just a forgotten declaration, i suppose

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.9
i686)
=================================================================
System uname: 2.6.9 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.11
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.sk/pub                
http://gd.tuwien.ac.at/opsys/linux/gentoo/                
http://gentoo.mirror.icd.hu/                 http://mir.zyrianes.net/gentoo/"
LANG="en_US"
LINGUAS="en sk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.gentoo.sk/gentoo-portage"
USE="x86 3dfx 3dnow X a52 aac aalib acpi aim alsa apm arts avi avignome berkdb
bitmap-fonts bluetooth bzip2 cdparanoia cdr crypt cups curl divx4linux dvb dvd
dvdr dvdread eds emboss encode exif fam ffmpeg firefox foomaticdb fortran
freetype ftp gcj gdbm gif gnome gpm gstreamer gtk gtk2 icq imlib jpeg kde libg++
libwww mad matroska mikmod mime mmx mng motif mp3 mpeg mpg mysql ncurses nls
nvidia offensive ogg oggvorbis opengl oss pam pdflib perl png python qt
quicktime readline samba scanner sdl spell ssl svg tcl tcpd tiff truetype
truetype-fonts type1-fonts unicode usb vorbis win32codecs wmf xine xml xml2 xmms
xv xvid zlib linguas_en linguas_sk userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 James Tomlinson 2005-09-11 09:14:29 UTC
I can confirm this bug too.
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-09-11 09:43:25 UTC
Which ffmpeg version do you have? transcode should compile fine using
ffmpeg-0.4.9_p20050226-r5.
Comment 3 Matus Tejiscak 2005-09-12 13:26:39 UTC
(In reply to comment #2)
> Which ffmpeg version do you have? transcode should compile fine using
> ffmpeg-0.4.9_p20050226-r5.

I've got ffmpeg-0.4.9_p20050906. I had set the ACCEPT="~x86" option in my
make.conf but I removed it after fetching the package, which I forgot to mention.
Comment 4 Kevin Parent 2005-09-20 16:13:47 UTC
I've been bitten by this bug too.  Using ffmpeg-0.4.9-20050906.

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.3-20050110,
glibc-2.3.5-r1, 2.6.13-ck5 i686)
=================================================================
System uname: 2.6.13-ck5 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -msse2 -msse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -msse2 -msse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/
http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://tesla/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apache2 apm audiofile avi berkdb
bitmap-fonts bonobo cdparanoia cdr crypt cups curl dga dts dvd dvdr dvdread eds
emboss encode esd ethereal fam fame ffmpeg flac foomaticdb fortran gdbm gif
gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imap imlib irda irmc ithreads
java jpeg ldap libg++ libwww lirc lzo mad mbox mikmod mjpeg mmx mmxext motif
mozilla mp3 mpeg mysql mythtv ncurses network nls nptl nvidia oav offensive ogg
oggvorbis opengl oss pam pcre pdf pdflib perl png posix ppds pthreads python qt
quicktime readline rhythmbox samba sdl slang sndfile spell sse sse2 ssl svga
tcpd tiff transcode truetype truetype-fonts type1-fonts v4l v4l2 vcd vorbis wifi
win32codecs xine xml xml2 xmms xv xvid xvmc yv12 zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-23 12:30:05 UTC
*** Bug 107031 has been marked as a duplicate of this bug. ***
Comment 6 Massimiliano Torromeo 2005-09-24 05:18:44 UTC
I got this bug too (~amd64 here).
I too resolved by declaring the missing fields, haven't tried if the resulting
build has problems.

Can it be that this version of transcode needs a different version of ffmpeg?
(just throwing out random ideas)
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-09-30 14:12:23 UTC
*** Bug 107738 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Haus 2005-10-01 05:02:58 UTC
ffmpeg-0.4.9_p20050226-r5 works for me 
Comment 9 Peter Ruskin 2005-10-08 04:28:42 UTC
If we can't fix this we should add "=media-video/ffmpeg-0.4.9_p20050906" to
package.mask.  ffmpeg-0.4.9_p20050226-r5 works for me too.
Comment 10 Danny Sauer 2005-10-09 12:09:05 UTC
Just like everyone else, masking off 0.4.9_p20050906 and moving back to the
previous version solved this problem for me.
Comment 11 Felix Hammer 2005-10-09 12:33:08 UTC
yes. me to  
Comment 12 Boyd Stephen Smith Jr. 2005-10-10 08:07:53 UTC
Another confirmation on amd64.  Also, bug may be related to 105597.

emerge --info:
Portage 2.0.53_rc5 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo x86_64 Dual Core AMD Opteron(tm) Processor 275
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 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="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=opteron -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=opteron -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib acl acpi alsa apm arts async audiofile avi
bash-completion berkdb bidi bitmap-fonts bl bzip2 cdparanoia cdr crypt cscope
css cups curl dbus dga directfb dts dv dvb dvd dvdr dvdread edl eds emacs emboss
encode esd fam fame fbcon ffmpeg flac foomaticdb fortran fuse gdbm gif gnome
gnutls gphoto2 gpm gstreamer gtk gtk2 guile hal howl ieee1394 imagemagick imlib
ipv6 jack java javascript jpeg kde kdeenablefinal kerberos ldap lesstif libcaca
libg++ libwww licaca lzo lzw lzw-tiff mad mikmod mjpeg mng motif mozilla mp3
mpeg mplayer musepack mysql ncurses nls nptl nsplugin odbc ogg oggvorbis opengl
oss pam pda pdflib perl png postgres python qt quicktime readline real rtc samba
sasl sblive sdl slang sndfile snmp spell ssl syslog tcltk tcpd tetex tga theora
threads tidy tiff truetype truetype-fonts type1-fonts unicode usb userlocales
v4l v4l2 vcd vorbis win32codecs wmf xanim xine xinerama xml xml2 xmms xpm xprint
xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 13 brot 2005-10-10 11:01:57 UTC
i can confirm that here, too.
Anything to do against it, other than downgrading ?
Comment 14 Olaf Walkowiak 2005-10-12 05:21:44 UTC
Seems to be a duplicate of bug #107176

Comment 15 Gregor Riepl 2005-10-13 03:57:01 UTC
Here's a proposed patch for transcode 0.6.14 and ffmpeg 0.4.9_p20050906. 
It may not be the "good" way and I still have to check up on ffmpeg's changelog 
for reference. But it seems to work fine for me. Try it if you're brave. 
Comment 16 Gregor Riepl 2005-10-13 03:59:09 UTC
Created attachment 70548 [details, diff]
Patch to get transcode to compile with recent ffmpeg versions
Comment 17 Peter Ruskin 2005-10-13 14:00:40 UTC
Patch at Comment #16 works here.  I downloaded it to the files directory of my
/usr/local/portage/media-video/transcode overlay and modified the
transcode-0.6.14-r2.ebuild in the src_unpack() as indicated by the (+) lines:

	cd ${S}
+	cd export
+	epatch ${FILESDIR}/transcode-0.6.14-ffmpeg-0.4.9_p20050906.patch
+
+	cd ${S}
	EPATCH_SUFFIX="patch" epatch ${WORKDIR}/${PATCH_VER}/

There's probably a cleaner way to do this but it works.
Comment 18 David Neumann 2005-10-15 09:33:45 UTC
Can this patch PLEASE be added to the portage tree? This bug is about a month
old and you have to do some happy annoying package masking/unmasking to have a
working transcode and ffmpeg on the same machine.
Comment 19 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 11:52:32 UTC
*** Bug 107176 has been marked as a duplicate of this bug. ***
Comment 20 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-15 11:53:50 UTC
Sorry for the delay, fixed in CVS, needs to wait for the mirrors to take up 
the patchset. 
Comment 21 Tim Heinrich 2005-10-28 04:11:33 UTC
The fix seems not to be in portage by now, is it? I just got this bug here at my
machine.
Comment 22 Michele Mattioni 2005-11-01 14:06:03 UTC
this bug is not fixed in portage..
today yet. 
I've synced almost 2 hours ago .. 
So maybe the patch wasn't included?
Maybe something went wrong?
Comment 23 pejcao 2005-11-10 15:16:11 UTC
Can  this bug plz be reviewed? At least change its status/resolution, thx.
Comment 24 Michiel de Bruijne 2005-11-24 14:36:23 UTC
Hi Diego, 
 
Somehow a working patch doesn't seem to be in the tree, can you (or anyone else) please 
reopen this bug, thanks! 
Comment 25 Steve Arnold archtester gentoo-dev 2005-12-18 10:14:30 UTC
Still bugged as of today...
Comment 26 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-18 10:23:10 UTC
Unmask transcode-1.0.2 and lzo-2 (given that you're not using anything else that's using lzo-1).

transcode-0.6 is really being a pain to manage.