Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114021 - media-sound/gnusound-0.7.4 doesn't compile against latest ffmpeg
Summary: media-sound/gnusound-0.7.4 doesn't compile against latest ffmpeg
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 100604
  Show dependency tree
 
Reported: 2005-11-30 06:46 UTC by Jouni Rinne
Modified: 2006-11-29 12:02 UTC (History)
3 users (show)

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


Attachments
Patch gnusound to work with ffmpeg (gnusound-0.7.4-struct.patch,2.27 KB, patch)
2006-10-05 12:11 UTC, Mario Schmidt
Details | Diff
New ebuild to build gnusound 0.7.4 (gnusound-0.7.4.ebuild,1.29 KB, text/plain)
2006-10-05 12:12 UTC, Mario Schmidt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2005-11-30 06:46:21 UTC
Gnusound-0.7.4 doesn't compile against ffmpeg-0.4.9_p20051120, I get the
following error:

cc `cat /var/tmp/portage/gnusound-0.7.4/work/gnusound-0.7.4/.cflags`
-I/var/tmp/portage/gnusound-0.7.4/work/gnusound-0.7.4/src
-I/var/tmp/portage/gnusound-0.7.4/work/gnusound-0.7.4/src/gtk2 -fPIC -shared 
file_flac.c -o file_flac.so  `cat .file_flac.cflags`
file_ffmpeg.c: In function `stream_component_open':
file_ffmpeg.c:80: warning: assignment from incompatible pointer type
file_ffmpeg.c: In function `ffmpeg_open_for_reading':
file_ffmpeg.c:120: warning: initialization from incompatible pointer type
file_ffmpeg.c:149: error: request for member `codec_id' in something not a
structure or union
file_ffmpeg.c:158: error: request for member `sample_rate' in something not a
structure or union
file_ffmpeg.c:159: error: request for member `channels' in something not a
structure or union
file_ffmpeg.c: In function `ffmpeg_read':
file_ffmpeg.c:236: warning: passing arg 1 of `avcodec_decode_audio' from
incompatible pointer type
file_ffmpeg.c:277: error: request for member `channels' in something not a
structure or union
file_ffmpeg.c:277: error: request for member `channels' in something not a
structure or union
file_ffmpeg.c:284: error: request for member `channels' in something not a
structure or union
file_ffmpeg.c: In function `ffmpeg_close':
file_ffmpeg.c:302: warning: assignment from incompatible pointer type
make[1]: *** [file_ffmpeg.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/gnusound-0.7.4/work/gnusound-0.7.4/modules'
make: *** [mods] Error 2

!!! ERROR: media-sound/gnusound-0.7.4 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! Make failure
!!! If you need support, post the topmost build error, NOT this status message.

I *still* get this error when I specify USE="-ffmpeg". However, gnusound-0.7.4
worked fine with ffmpeg-0.4.9_p20050906.

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




Gentoo Base System version 1.12.0_pre11
Portage 2.0.53_rc7 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3,
2.6.12-gentoo-r8 i686)
=================================================================
System uname: 2.6.12-gentoo-r8 i686 AMD Athlon(tm) XP 3000+
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
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-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="fi_FI.ISO-8859-1"
LINGUAS="fi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acpi alsa apm audiofile avi berkdb bitmap-fonts bmp
bzip2 cdb cdr crypt cscope cups curl dga divx4linux dv dvd dvdread emboss encode
esd ethereal exif expat fam ffmpeg firefox flac foomaticdb fortran gdbm gif
gimpprint glut gmp gnome gnustep gpm gstreamer gtk gtk2 guile idn ieee1394
imagemagick imap imlib jack java jpeg kde ladcca lcms libg++ libwww lua mad
matroska mikmod mjpeg mmap mmx mng motif mp3 mpeg mysql ncurses nls nodrm nptl
nsplugin nvidia ogg oggvorbis openal opengl oss pcre pdflib perl png portaudio
python qt quicktime readline real recode samba scanner sdl slang sndfile speex
sqlite ssl svg tcltk tcpd tetex theora tidy tiff truetype truetype-fonts
type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wmf xine xinerama xml
xml2 xv xvmc zlib linguas_fi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 Jesus Rivero (Neurogeek) 2005-12-02 06:49:45 UTC
Hello, 

  Apparently is an error with ffmpeg code and the AVStream struct. Not with the
ebuild. 
  
Comment 2 Thomas Cort (RETIRED) gentoo-dev 2006-02-25 05:41:59 UTC
Version 0.7.4 of gnusound is not in portage yet, see http://www.gentoo.org/cgi-bin/viewcvs.cgi/media-sound/gnusound/ Gentoo developers have no control over user submitted or third party ebuilds which makes it really hard for them to fix problems in those ebuilds. There is still an open version bump request for version 0.7.4, see Bug #100604. If you got the ebuild there, then you should post a comment there about your problem. BTW, since you filed the bug report a new version of ffmpeg hit portage: ffmpeg-0.4.9_p20051216.
Comment 3 Alexandre Buisse (RETIRED) gentoo-dev 2006-03-28 14:33:52 UTC
I can reproduce this with ffmpeg-20051216. Has it been reported upstream as well?
Comment 4 Martin von Gagern 2006-08-28 09:13:10 UTC
Same problem with
media-sound/gnusound-0.7 and media-video/ffmpeg-0.4.9_p20060530.

Maybe the subject should be changed to make this a 0.7 bug and not only 0.7.4. Maybe it's not even a blocker for bug 100604 anymore if it happens with the 0.7 from portage as well.
Comment 5 Mario Schmidt 2006-10-05 12:11:33 UTC
Created attachment 98872 [details, diff]
Patch gnusound to work with ffmpeg

I created a patch File to fix my gnusound ebuild. I found this patch at http://cvs.mandriva.com/cgi-bin/viewvc.cgi/contrib-SPECS/gnusound/ and added a simple patch to the makefile within the ./doc/Makefile.in
Comment 6 Mario Schmidt 2006-10-05 12:12:42 UTC
Created attachment 98873 [details]
New ebuild to build gnusound 0.7.4

ebuild derived from 0.6.2 ebuild of gnusound but with the struct patch to build with new ffmpeg.
Comment 7 Alexis Ballier gentoo-dev 2006-11-29 12:02:17 UTC
Bumped, force the use of gnome2, added mandriva's patches plus one to remove those damn automagic deps.