Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242642 - media-video/ffmpeg-0.4.9_p20081018 fails to build with error: expected ‘)’ before ‘FFMPEG_VERSION’
Summary: media-video/ffmpeg-0.4.9_p20081018 fails to build with error: expected ‘)’ be...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-18 19:12 UTC by Graham Murray
Modified: 2008-10-19 21:24 UTC (History)
0 users

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


Attachments
Build log as requested (media-video:ffmpeg-0.4.9_p20081014:20081019-173422.log,631.70 KB, text/plain)
2008-10-19 20:35 UTC, Graham Murray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2008-10-18 19:12:06 UTC
i686-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" -O2 -march=native -mtune=native -pipe -ggdb -fomit-frame-pointer -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -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          -c -o ffmpeg.o ffmpeg.c
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
i686-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" -O2 -march=native -mtune=native -pipe -ggdb -fomit-frame-pointer -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -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          -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

emerge --info                                                                  
Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-ext4-2 i686)
=================================================================                                                
System uname: Linux-2.6.27-gentoo-ext4-2-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-glibc2.0                
Timestamp of tree: Sat, 18 Oct 2008 16:46:01 +0000                                                               
app-shells/bash:     3.2_p39                                                                                     
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                            
dev-lang/python:     2.4.4-r11, 2.5.2-r8                                                                         
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 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:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -mtune=native -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="buildsyspkg distlocks installsources parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.blueyonder.co.uk http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en fr_FR fr"
MAKEOPTS="-j3"
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/sunrise /usr/portage/local/layman/perl-experimental /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr cjk clicracklib crypt cups curl cvs cxx dbus directfb doc dri dts dvd dvdr dvdread eds emacs emboss encode esd ethereal evo examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal htmlhandbook iconv icq idn ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility kerberos ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lirc lm_sensors logrotate lua m17n-lib mad matroska mbox midi mikmod milter mime mmap mmx mng modplug mono mozilla mp3 mpeg mpi mplayer msn mudflap musepack ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcntl pcre pdf perl png postgres ppds pppd profile pulseaudio python qt3 qt3support qt4 quicktime readline recode reflection ruby sasl sdl session sharedmem sndfile snmp sockets sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs sysvipc tcl tcltk tcpd theora threads tiff tk truetype uicktime unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xface xine xml xml2 xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en fr_FR fr" LIRC_DEVICES="asusdh" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev vga v4l"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexis Ballier gentoo-dev 2008-10-19 15:03:33 UTC
could you please paste the contents of the version.h file which is in the build dir here ?
Comment 2 Graham Murray 2008-10-19 17:53:19 UTC
(In reply to comment #1)
> could you please paste the contents of the version.h file which is in the build
> dir here ?
> 

Unfortunately there is no version.h anywhere under /var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/work/ffmpeg. There is a version.sh which I think generates the version number from svn information, but it looks as though this is only called (by common.mak) if we running from an svn working directory (which we are not).

Comment 3 Alexis Ballier gentoo-dev 2008-10-19 20:15:22 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > could you please paste the contents of the version.h file which is in the build
> > dir here ?
> > 
> 
> Unfortunately there is no version.h anywhere under
> /var/tmp/portage/media-video/ffmpeg-0.4.9_p20081014/work/ffmpeg. There is a
> version.sh which I think generates the version number from svn information, but
> it looks as though this is only called (by common.mak) if we running from an
> svn working directory (which we are not).


nope; it should be there.

what's in cmdutils.d ?

and could you please attach the full build log ?
Comment 4 Graham Murray 2008-10-19 20:35:58 UTC
Created attachment 169126 [details]
Build log as requested
Comment 5 Graham Murray 2008-10-19 20:36:42 UTC
(In reply to comment #3)
> what's in cmdutils.d ?



./cmdutils.o: cmdutils.c config.h libavformat/avformat.h \
  libavcodec/avcodec.h libavutil/avutil.h libavutil/common.h config.h \
  libavutil/internal.h libavutil/intreadwrite.h libavutil/bswap.h \
  libavutil/mem.h libavutil/mathematics.h libavutil/rational.h \
  libavutil/intfloat_readwrite.h libavutil/log.h libavformat/avio.h \
  libavfilter/avfilter.h libavdevice/avdevice.h libswscale/swscale.h \
  libpostproc/postprocess.h libavutil/avstring.h libavcodec/opt.h \
  libavutil/rational.h cmdutils.h libavcodec/avcodec.h
Comment 6 Alexis Ballier gentoo-dev 2008-10-19 20:46:17 UTC
try this:
i686-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" -O2 -march=native -mtune=native -pipe -ggdb -fomit-frame-pointer -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -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         -MM -MG cmdutils.c | sed -e "/^#.*/d" -e "1s,^,./," -e "s,\\([[:space:]]\\)\\(version\\.h\\),\\1\$(BUILD_ROOT_REL)/\\2," > cmdutils.d

in the build dir

then paste cmdutils.d here


then try the same with LC_ALL=C and paste cmdutils.d too

it should really contain version.h, more specifically:
$(BUILD_ROOT_REL)/version.h

also please give me the output without the | sed ... > cmdutils.d
Comment 7 Alexis Ballier gentoo-dev 2008-10-19 20:50:16 UTC
now that i'm thinking about it... your build log doesn't have a gcc error about failing to include version.h; please attach your cmdutils.c too
Comment 8 Graham Murray 2008-10-19 21:15:17 UTC
(In reply to comment #7)
> now that i'm thinking about it... your build log doesn't have a gcc error about
> failing to include version.h; please attach your cmdutils.c too
> 

I have solved that, it was picking up version.h from /usr/local/include/version.h, which is unrelated to this package.
Comment 9 Graham Murray 2008-10-19 21:24:13 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > now that i'm thinking about it... your build log doesn't have a gcc error about
> > failing to include version.h; please attach your cmdutils.c too
> > 
> 
> I have solved that, it was picking up version.h from
> /usr/local/include/version.h, which is unrelated to this package.
> 

Having deleted /usr/local/include/version.h and rerun the emerge, ffmpeg built successfully. So it looks like the presence of /usr/local/include/version.h was blocking the ffmpeg build from generating version.h in its build directory - strange.