Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478084 - media-plugins/alsa-plugins-1.0.27 with media-video/ffmpeg-2.0 - pcm_a52.c:101:45: error: 'struct a52_ctx' has no member named 'frame'
Summary: media-plugins/alsa-plugins-1.0.27 with media-video/ffmpeg-2.0 - pcm_a52.c:101...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ffmpeg-2.0
  Show dependency tree
 
Reported: 2013-07-25 06:35 UTC by PM
Modified: 2013-08-07 02:15 UTC (History)
4 users (show)

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


Attachments
Fail build log for media-plugins/alsa-plugins-1.0.27 (build.log,25.32 KB, text/x-log)
2013-08-03 13:25 UTC, Huang Hang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PM 2013-07-25 06:35:56 UTC
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -DNDEBUG -Wall -g -I/usr/include/alsa -DAVCODEC_HEADER="<libavcodec/avcodec.h>" -O2 -march=native -pipe -ggdb -c -o pcm_a52.lo pcm_a52.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DNDEBUG -Wall -g -I/usr/include/alsa "-DAVCODEC_HEADER=<libavcodec/avcodec.h>" -O2 -march=native -pipe -ggdb -c pcm_a52.c  -fPIC -DPIC -o .libs/pcm_a52.o
pcm_a52.c: In function 'do_encode':
pcm_a52.c:101:45: error: 'struct a52_ctx' has no member named 'frame'
  avcodec_encode_audio2(rec->avctx, &pkt, rec->frame, &got_frame);
                                             ^
pcm_a52.c: In function 'a52_prepare':
pcm_a52.c:579:2: warning: implicit declaration of function 'avcodec_alloc_context' [-Wimplicit-function-declaration]
  rec->avctx = avcodec_alloc_context();
  ^
pcm_a52.c:579:13: warning: assignment makes pointer from integer without a cast [enabled by default]
  rec->avctx = avcodec_alloc_context();
             ^
pcm_a52.c:595:2: warning: implicit declaration of function 'avcodec_open' [-Wimplicit-function-declaration]
  err = avcodec_open(rec->avctx, rec->codec);
  ^
pcm_a52.c: In function '_snd_pcm_a52_open':
pcm_a52.c:858:2: warning: implicit declaration of function 'avcodec_init' [-Wimplicit-function-declaration]
  avcodec_init();
  ^
make[2]: *** [pcm_a52.lo] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/media-plugins/alsa-plugins-1.0.27/work/alsa-plugins-1.0.27/a52'
make[1]: *** [all-recursive] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/media-plugins/alsa-plugins-1.0.27/work/alsa-plugins-1.0.27'
make: *** [all] Błąd 2


Reproducible: Always
Comment 1 Huang Hang 2013-08-03 13:25:56 UTC
Created attachment 355028 [details]
Fail build log for media-plugins/alsa-plugins-1.0.27
Comment 2 Huang Hang 2013-08-03 13:26:14 UTC
I've also met the same issue. It may due to the API change of libavcodev (ffmpeg-2.0) from a54 to a55

Here's my emerge --info:

Portage 2.1.13.2 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.10.0-gentoo x86_64)
=================================================================
System uname: Linux-3.10.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770S_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:    16194832 total,   4720000 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 03 Aug 2013 08:15:01 +0000
ld GNU ld (Linux/GNU Binutils) 2.23.52.0.2.20130423
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.52.0.2
sys-devel/gcc:            4.8.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/games/angband/edit/ /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://gentoo.aditsu.net:8000/ http://mirrors.xmu.edu.cn/gentoo http://ftp.lecl.net/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.cn.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 avx bash-completion berkdb bidi bittorrent branding bzip2 cairo cdda cgi chardet cjk cli cracklib crypt ctype cue cups cxx dbus device-mapper dga djvu dns dri dts dvd emacs emboss encode exif fam fastcgi fasttrack ffmpeg filter firefox flac flv fontconfig fortran gd gdbm geoip gif gnome gnutella gnutls gpm gstreamer gtk gtk3 h323 hpijs httpd iconv icu id3tag ipv6 java jpeg kdrive kpathsea lame latex lcms ldap libkms libnotify live lzma mad magic matroska mmx mng modules mp3 mp4 mpeg mudflap multilib multitarget mysql mysqli nautilus ncurses networkmanager new-hpcups nls nptl ocamlopt ogg opengl openmp pam pango pcre pdf perl png policykit ppds preview-latex python qt3support qt4 rar readline samba scim sdl server session sip snmp spell spl sse sse2 sse3 sse4 sse4a ssl ssse3 startup-notification stream svg systemd taglib tcpd theora tiff truetype udev udisks unicode upnp upower usb utf-8 utf8 vaapi vlm vorbis wav wavpack webdav webkit wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel ca0132" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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" GRUB_PLATFORMS="coreboot efi-64 pc efi-32" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en zh zh_CN zh_HK zh_TW" NETBEANS_MODULES="enterprise apisupport harness ide java nb websvccommon php profiler mobility" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm armeb i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel vesa" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Kelly Price 2013-08-03 19:19:14 UTC
I'm also getting the same issue inside pcm_a52.c. Work-around is to not use ffmpeg ("-ffmpeg" use flag).
Comment 4 Alexis Ballier gentoo-dev 2013-08-07 02:15:27 UTC
+  07 Aug 2013; Alexis Ballier <aballier@gentoo.org> alsa-plugins-1.0.27.ebuild,
+  +files/alsa-plugins-1.0.27-ffmpeg-version-check.patch:
+  Fix build with ffmpeg 2.0 due to wrong version check. Bug #478084.
+