Created attachment 351790 [details] The build log A case of implicit function declaration + -Werror. Build log attached. [ebuild R ] media-video/libav-9.7:0/9 USE="3dnow 3dnowext X aac alsa bzip2 encode gpl gsm hardcoded-tables jpeg2k mmx mmxext mp3 network schroedinger sdl speex ssl theora threads truetype v4l vaapi vdpau vorbis x264 xvid zlib (-altivec) -amr -avx -bindist -cdio -cpudetection -custom-cflags -debug -doc -faac -fdk -frei0r -ieee1394 -jack (-neon) -openssl -opus -oss -pic -pulseaudio -rtmp -ssse3 -static-libs {-test} -tools (-vis) -vpx" 0 kB [ebuild R ] media-libs/xine-lib-1.2.3:1 USE="X a52 aac alsa css dts dvb flac gtk ipv6 jpeg mad mmap mng nls opengl sdl speex truetype vaapi vorbis wavpack xcb xv xvmc -aalib (-altivec) -bluray -directfb -dxr3 -fbcon -fusion -imagemagick -jack -libcaca -modplug -musepack -oss -pulseaudio -samba -theora -v4l -vcd -vdpau -vdr (-vidix) (-vis) -xinerama" 0 kB -- Portage 2.2.0_alpha184 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.9.0-mgorny-amd64+ x86_64) ================================================================= System uname: Linux-3.9.0-mgorny-amd64+-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.2 KiB Mem: 3082220 total, 581460 free KiB Swap: 0 total, 0 free Timestamp of tree: Mon, 24 Jun 2013 05:00:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.5.4-r5, 2.6.8-r1, 2.7.5, 3.1.5-r1, 3.2.5, 3.3.2 dev-util/ccache: 3.1.9-r1::science 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.11.6, 1.12.6, 1.13.4, 1.14 sys-devel/binutils: 2.23.1 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 mgorny vdr-devel vdr-testing x11 sunrise science gentoo-cvs Installed sets: @mg_depends, @mg_depends_identitygo, @mg_vdr, @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/yp/Makefile" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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=athlon64 -O2 -pipe" DISTDIR="/srv/nfs/common/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --ask --keep-going --quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="" LANG="C" LC_ALL="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/srv/nfs/common/packages/athlon64" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --times --compress --force --whole-file --delete --stats --timeout=45 --exclude=/distfiles --exclude=/packages --exclude=/local --exclude=CVS --exclude=/metadata/cache" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/mgorny /var/lib/layman/vdr-devel /var/lib/layman/vdr-testing /var/lib/layman/x11 /var/lib/layman/sunrise /var/lib/layman/science /usr/src/gx86" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl adns aio alsa amd64 bash-completion bluetooth branding bzip2 cairo caps cdda cdr cli crypt cups curl cxx dbus djvu dri dts dvb dvd dvdr egl emboss exif fftw firefox flac fontconfig fortran gd gif glamor gles2 gmp gnuplot gnutls gstreamer gtk iconv idn imagemagick ipv6 jpeg jpeg2k kate latex lcms libass liblockfile libnotify libproxy libsamplerate libtiger lzma lzo mad mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg openal opengl openmp openvg osmesa pam pango pch pcre pdf plotutils png postscript ppds qt3support readline sdl session slang smp sndfile speex spell sse sse2 ssl startup-notification svg systemd t1lib tcpd threads tiff truetype udev udisks unicode upower usb v4l2 vim-syntax vorbis wavpack wayland webp wmf wxwidgets x264 xattr xcb xft xml xpm xv xvid xvmc zlib" ABI_X86="32 64" ALSA_CARDS="hda-intel emu10k1 virmidi mpu401 pcsp" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" LIRC_DEVICES="serial" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python2_6 python3_3 python3_2 python3_1 pypy1_9 pypy2_0 jython2_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 ppc ppc64 ppc64abi32 arm" QEMU_USER_TARGETS="ppc ppc64 arm" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="nouveau vesa radeon r600 s3" 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" USE_PYTHON="2.7 2.6 2.5 3.3 3.2 3.1 2.7-pypy-1.9 2.7-pypy-2.0 2.7-jython" Unset: CPPFLAGS, CTARGET, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
If I set USE="-vaapi" xine-lib compiles fine.
exactly same issue here
How is xine-lib-1.2.4?
The same. Plus you should really kill this -Werror, you know.
Well, it's -Werror-implicit-function-declaration not -Werror and I don't see any undefined reference w/ media-video/ffmpeg so this bug should really be fixed properly instead of ignoring it by removing -Werror-implicit-function-declaration
Then fix it properly, or remove libav from the deps since it obviously does not work.
(In reply to Michał Górny from comment #6) > Then fix it properly, or remove libav from the deps since it obviously does > not work. But it compiles fine with USE -vaapi even with libav. A sidenote on behalf of those users - including me - on libav.
trying to understand the actual bug: av_free() is coming from libavutil/mem.h and the src/video_out/video_out_vaapi.c has: #ifdef HAVE_FFMPEG_AVUTIL_H # include <mem.h> #else # include <libavutil/mem.h> #endif and the mem.h looks okay in libav-9.9 sourcetree I just extracted :/
(In reply to Samuli Suominen from comment #8) > trying to understand the actual bug: > > av_free() is coming from libavutil/mem.h and the > src/video_out/video_out_vaapi.c has: > > #ifdef HAVE_FFMPEG_AVUTIL_H > # include <mem.h> > #else > # include <libavutil/mem.h> > #endif > > and the mem.h looks okay in libav-9.9 sourcetree I just extracted :/ It still fails to compile against libav-9.9. Removing vaapi USE flag is a possible workaround until this gets fixed. Any ideas to test?
(In reply to Samuli Suominen from comment #8) > trying to understand the actual bug: > > av_free() is coming from libavutil/mem.h and the > src/video_out/video_out_vaapi.c has: > > #ifdef HAVE_FFMPEG_AVUTIL_H > # include <mem.h> > #else > # include <libavutil/mem.h> > #endif > > and the mem.h looks okay in libav-9.9 sourcetree I just extracted :/ xine-lib-1.2.4 now compiles fine against libav-9.9 with USE vaapi enabled. This new version will solve this issue.
(In reply to Attila Tóth from comment #10) > (In reply to Samuli Suominen from comment #8) > > trying to understand the actual bug: > > > > av_free() is coming from libavutil/mem.h and the > > src/video_out/video_out_vaapi.c has: > > > > #ifdef HAVE_FFMPEG_AVUTIL_H > > # include <mem.h> > > #else > > # include <libavutil/mem.h> > > #endif > > > > and the mem.h looks okay in libav-9.9 sourcetree I just extracted :/ > > xine-lib-1.2.4 now compiles fine against libav-9.9 with USE vaapi enabled. > This new version will solve this issue. Yet in Comment #4 I'm hearing exactly different: https://bugs.gentoo.org/show_bug.cgi?id=474564#c4
(In reply to Samuli Suominen from comment #11) > (In reply to Attila Tóth from comment #10) > > xine-lib-1.2.4 now compiles fine against libav-9.9 with USE vaapi enabled. > > This new version will solve this issue. > > Yet in Comment #4 I'm hearing exactly different: > https://bugs.gentoo.org/show_bug.cgi?id=474564#c4 It fails for me (In reply to Samuli Suominen from comment #11) > (In reply to Attila Tóth from comment #10) > > (In reply to Samuli Suominen from comment #8) > > > trying to understand the actual bug: > > > > > > av_free() is coming from libavutil/mem.h and the > > > src/video_out/video_out_vaapi.c has: > > > > > > #ifdef HAVE_FFMPEG_AVUTIL_H > > > # include <mem.h> > > > #else > > > # include <libavutil/mem.h> > > > #endif > > > > > > and the mem.h looks okay in libav-9.9 sourcetree I just extracted :/ > > > > xine-lib-1.2.4 now compiles fine against libav-9.9 with USE vaapi enabled. > > This new version will solve this issue. > > Yet in Comment #4 I'm hearing exactly different: > https://bugs.gentoo.org/show_bug.cgi?id=474564#c4 Don't ask me. This was before libav-9.9, I guess. Now it seems to build. Attila may have something to say, though.
(In reply to Michał Górny from comment #12) > Don't ask me. This was before libav-9.9, I guess. Now it seems to build. (In reply to Attila Tóth from comment #10) > xine-lib-1.2.4 now compiles fine against libav-9.9 with USE vaapi enabled. closing then as 'fixed by xine-lib-1.2.4 or libav-9.9, don't care which'