ffmpeg failed to build. with new versions also fails >=media-video/ffmpeg-0.4.9_p20081014 Reproducible: Always Steps to Reproduce: 1.# eix-sync 2.# emerge -vp ffmpeg These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] media-video/ffmpeg-0.4.9_p20081014 USE="X aac encode ipv6 mmx mp3 xvid zlib (-altivec) -amr -bindist -debug -dirac -doc -gsm -hardcoded-tables -ieee1394 -mmxext -network -schroedinger -sdl -ssse3 -test -theora -threads -v4l -v4l2 -vhook -vorbis -x264" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB # 3.# emerge ffmpeg Actual Results: In file included from libavdevice/x11grab.c:51: /usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE" x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/work/ffmpeg" -march=native -O2 -pipe -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -fno-math-errno -fno-signed-zeros -fPIC -DPIC -c -o ffmpeg.o ffmpeg.c x86_64-pc-linux-gnu-gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/work/ffmpeg" -march=native -O2 -pipe -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -fno-math-errno -fno-signed-zeros -fPIC -DPIC -c -o cmdutils.o cmdutils.c cmdutils.c: In function 'show_banner': cmdutils.c:282: error: expected ')' before 'FFMPEG_VERSION' cmdutils.c:283: warning: too few arguments for format cmdutils.c: In function 'show_version': cmdutils.c:295: error: expected ')' before 'FFMPEG_VERSION' cmdutils.c:295: warning: too few arguments for format make: *** [cmdutils.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ffmpeg.c:37: libavformat/framehook.h:25:2: warning: #warning VHOOK is deprecated. Please help finishing libavfilter instead of wasting your time writing new filters for this crappy filter system. ffmpeg.c: In function 'av_encode': ffmpeg.c:1718: warning: passing argument 1 of 'av_codec_get_id' discards qualifiers from pointer target type ffmpeg.c:1719: warning: passing argument 1 of 'av_codec_get_tag' discards qualifiers from pointer target type * * ERROR: media-video/ffmpeg-0.4.9_p20081014 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2506: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/temp/environment'. * * Messages for package media-video/ffmpeg-0.4.9_p20081014: * * ERROR: media-video/ffmpeg-0.4.9_p20081014 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2506: Called die * The specific snippet of code: * emake || die "make failed" * The die message: * make failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/temp/environment'. * # # emerge --info Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.27.10 x86_64) ================================================================= System uname: 2.6.27.10 x86_64 AMD Athlon(tm) 64 Processor 3200+ Timestamp of tree: Tue, 23 Dec 2008 12:15:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/source/ " LANG="es_ES" LC_ALL="es_ES" LDFLAGS="-Wl,-O1" LINGUAS="es es_ES" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/java-gcj-overlay /usr/portage/local/layman/java-overlay /usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gif gpm iconv ipv6 isdnlog jpeg midi mmx mp3 mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS #
locate version.h it should be somewhere in your include path because it seems the dep computation didn't get it and it included the wrong one. if that's it, try running 'make version.h' and then 'make' again in the directory, that might fix it.
works , thanks I was using ffmepg from overlay berkano.
should be fixed now
ffmpeg now compiles properly, thanks