Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345325 - www-client/chromium-9999 libavcore/samplefmt.h: No such file or directory
Summary: www-client/chromium-9999 libavcore/samplefmt.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
: 346227 (view as bug list)
Depends on: 345997
Blocks:
  Show dependency tree
 
Reported: 2010-11-13 23:32 UTC by Mike Gilbert
Modified: 2011-09-03 19:33 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2010-11-13 23:32:56 UTC
Build fails due to missing header libavcore/samplefmt.h.

./media/ffmpeg/ffmpeg_common.h:20:33: warning: libavcore/samplefmt.h: No such file or directory
media/filters/ffmpeg_audio_decoder.cc: In member function ‘virtual void media::FFmpegAudioDecoder::DoInitialize(media::DemuxerStream*, bool*, Task*)’:
media/filters/ffmpeg_audio_decoder.cc:53: error: ‘av_get_bits_per_sample_fmt’ was not declared in this scope
media/filters/ffmpeg_audio_decoder.cc: In member function ‘base::TimeDelta media::FFmpegAudioDecoder::CalculateDuration(size_t)’:
media/filters/ffmpeg_audio_decoder.cc:248: error: ‘av_get_bits_per_sample_fmt’ was not declared in this scope
make: *** [out/Release/obj.target/media/media/filters/ffmpeg_audio_decoder.o] Error 1
Comment 1 Mike Gilbert gentoo-dev 2010-11-13 23:33:49 UTC
Portage 2.2.0_alpha4 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.5-asneeded, glibc-2.11.2-r3, 2.6.36-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 13 Nov 2010 03:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise kde floppym google-chrome chromium local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-g -O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-g -O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs --load-average=7"
FEATURES="assume-digests binpkg-logs distlocks fakeroot fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.netnitco.net"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/build"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kde /home/floppym/overlays/floppym /home/floppym/overlays/google-chrome /home/floppym/overlays/chromium /home/floppym/overlays/local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 ao bash-completion berkdb bluetooth branding bzip2 cairo caps cdr cli consolekit cracklib crypt css cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gconf gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk hddtemp iconv imap ipod ipv6 jpeg kde lcms libnotify lm_sensors lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline samba sasl sdl session spell sse sse2 sse3 ssl startup-notification svg sysfs taglib tcpd theora threads tiff truetype udev unicode usb vaapi vdpau vim-syntax vorbis x264 xcb xinerama xml xorg xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

www-client/chromium-9999 was built with the following:
USE="cups gecko-mediaplayer gnome gnome-keyring (multilib) -system-sqlite -system-v8"
CFLAGS="-g -O2 -pipe -march=native -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER"
CXXFLAGS="-g -O2 -pipe -march=native -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER"


media-video/ffmpeg-0.6_p25423 was built with the following:
USE="3dnow 3dnowext X alsa bzip2 encode hardcoded-tables mmx mmxext mp3 (multilib) sdl ssse3 theora threads vaapi vdpau vorbis x264 xvid zlib (-altivec) -amr -bindist -cpudetection -custom-cflags -debug -dirac -doc -faac -frei0r -gsm -ieee1394 -jack -jpeg2k -network -oss -pic -qt-faststart -rtmp -schroedinger -speex -static-libs -test -v4l -v4l2 -vpx" VIDEO_CARDS="nvidia"
Comment 2 Mike Gilbert gentoo-dev 2010-11-13 23:37:37 UTC
The build succeeds when I upgrade to an ffmpeg trunk build (media-video/ffmpeg-9999).

Based on the ffmpeg commit log, I think we will need a new snapshot at r25654 or higher.


floppym@naomi libavcore % pwd
/usr/portage/distfiles/svn-src/ffmpeg/trunk/libavcore
floppym@naomi libavcore % svn log samplefmt.h
------------------------------------------------------------------------
r25654 | stefano | 2010-11-02 18:20:49 -0400 (Tue, 02 Nov 2010) | 2 lines

Add av_get_bits_per_sample_fmt() to libavcore/samplefmt.h and
deprecate av_get_bits_per_sample_format().
------------------------------------------------------------------------
r25653 | stefano | 2010-11-02 18:08:02 -0400 (Tue, 02 Nov 2010) | 9 lines

Implement functions:
av_get_sample_fmt_name()
av_get_sample_fmt()
av_get_sample_fmt_string()

in libavcore, and deprecate the corresponding libavcodec/audioconvert.h functions:
avcodec_get_sample_fmt_name()
avcodec_get_sample_fmt()
avcodec_sample_fmt_string()
------------------------------------------------------------------------
r25652 | stefano | 2010-11-02 16:45:46 -0400 (Tue, 02 Nov 2010) | 1 line

Move sample format definitions from libavcodec to libavcore.
------------------------------------------------------------------------
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-14 09:25:33 UTC
(In reply to comment #2)
> The build succeeds when I upgrade to an ffmpeg trunk build
> (media-video/ffmpeg-9999).
> 
> Based on the ffmpeg commit log, I think we will need a new snapshot at r25654
> or higher.

Thanks fo finding that, I'm sure it will make fixing the problem easier. Now I'll have to see whether we can request a version bump of ffmpeg...
Comment 4 Julien Sanchez archtester 2010-11-16 15:57:20 UTC
Pawel,

do you prefer that chromium-9999 users install edge ffmpeg or (un)stable one to detect early problems?

Currently, I'm using ~ffmpeg-0.6_p25423, so I have the same problem... but it would not be a problem for me to use ffmpeg-9999.
Comment 5 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-16 16:12:12 UTC
(In reply to comment #4)
> do you prefer that chromium-9999 users install edge ffmpeg or (un)stable one to
> detect early problems?

I'm not sure if I have a preference. I'm mostly interested in good bug reports and comments. For example, the above comment that identifies the revision of ffmpeg we need is very helpful.

> Currently, I'm using ~ffmpeg-0.6_p25423, so I have the same problem... but it
> would not be a problem for me to use ffmpeg-9999.

Feel free to use the version you want. As current ~arch ffmpeg breaks chromium-9999, it would also prevent you from testing more recent chromium-9999 checkouts. You can always switch ffmpeg versions later.

While you're asking (it's slightly off-topic, so please use e-mail if you'd like to reply), I'm also interested about how system-v8 and system-sqlite flags work for people.
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-22 14:47:03 UTC
*** Bug 346227 has been marked as a duplicate of this bug. ***
Comment 7 Mike Gilbert gentoo-dev 2010-11-22 15:18:09 UTC
(In reply to comment #6)
> *** Bug 346227 has been marked as a duplicate of this bug. ***
> 

Since chromium seems to frequently flip between bundling and un-bundling ffmpeg, it might be best to build the bundled version with -Dffmpeg_branding=Chrome to enable h.264 support; it will probably prevent bugs like this one.
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-22 15:24:14 UTC
(In reply to comment #7)
> Since chromium seems to frequently flip between bundling and un-bundling
> ffmpeg, it might be best to build the bundled version with
> -Dffmpeg_branding=Chrome to enable h.264 support; it will probably prevent bugs
> like this one.

That would require us to use things like bindist. I'd prefer to avoid that. With the recent bump of ffmpeg we should be able to use system ffmpeg again.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2010-11-24 20:44:32 UTC
This is now fixed after ffmpeg bump. Thanks again for the help, especially identifying the right ffmpeg revision.
Comment 10 Oschtan 2011-09-03 18:40:20 UTC
After switching to> = media-video/ffmpeg-0.7.0 in www-client/chromium was again inactive h.264. "Your browser does not support h.264". This bug is relevant again.
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-09-03 19:33:46 UTC
(In reply to comment #10)
> After switching to> = media-video/ffmpeg-0.7.0 in www-client/chromium was again
> inactive h.264. "Your browser does not support h.264". This bug is relevant
> again.

Please do not comment on closed bugs with unrelated (or loosely related) issues. Could you open a new bug about that? This will just make it easier to track and fix.