[MPlayer-users] ffmpeg.c:3850: error: syntax error before 'FFMPEG_CONFIGURATION' , missing indication of what is wrong ?

Tobias Gerschner tobias.gerschner at gmail.com
Fri Oct 6 12:25:24 CEST 2006


Hi,

I spent quite some time today getting a recent version of ffmpeg
compiled. I tried r6555 and r6555 straight from svn. Though without
luck

At the bottom you see the error I got . I looked through your list and
also looked through the revisions to find a further indication of what
I did wrong. No luck though.

Below a compilation of the information you request:

uname - a |
Linux Yoper 2.6.17_yos_3_1 #1 Mon Oct 2 19:57:04 Local time zone must
be set--see zic manua i686 i686 i386 GNU/Linux

mach at Yoper ~/BUILD/ffmpeg-SVN-r6565 $ ls -l /lib/libc[.-]*
-rwxr-xr-x  1 root root 1408578 Mar 12  2006 /lib/libc-2.3.90.so
lrwxrwxrwx  1 root root      14 Oct  7 01:26 /lib/libc.so.6 -> libc-2.3.90.so


mach at Yoper ~/BUILD/ffmpeg-SVN-r6565 $ gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.3/configure --host=i686-pc-linux-gnu
--build=i686-pc-linux-gnu --target=i686-pc-linux-gnu --prefix=/usr
--sysconfdir=/etc --sharedstatedir=/var/com --localstatedir=/var
--libdir=/usr/lib --includedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --enable-shared --enable-threads=posix
--disable-libmudflap --enable-nls --with-system-zlib
--enable-__cxa_atexit --enable-clocale=gnu
--enable-languages=c,c++,java --enable-bootstrap --disable-werror
Thread model: posix
gcc version 4.0.3
mach at Yoper ~/BUILD/ffmpeg-SVN-r6565 $ ld -v
GNU ld version 2.17

mach at Yoper ~/BUILD/ffmpeg-SVN-r6565 $ as --version
GNU assembler 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-yoper-linux-gnu'.


make[1]: Leaving directory `/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat'
gcc -I/usr/include/faad2 -I/usr/X11R6/include -g
-Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3
-I. -I/usr/src/yoper/BUILD/ffmpeg-SVN-r6565
-I/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavutil
-I/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavcodec
-I/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -c -o
ffmpeg.o ffmpeg.c
In file included from ffmpeg.c:22:
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:247:
warning: 'AVFrac' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:403:
warning: 'AVImageInfo' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:406:
warning: 'AVImageInfo' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:411:
warning: 'AVImageFormat' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:416:
warning: 'AVImageFormat' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:417:
warning: 'AVImageInfo' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:418:
warning: 'AVImageFormat' is deprecated
/usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:418:
warning: 'AVImageInfo' is deprecated
ffmpeg.c:92: warning: 'AVImageFormat' is deprecated
ffmpeg.c: In function 'opt_image_format':
ffmpeg.c:2055: warning: 'AVImageFormat' is deprecated
ffmpeg.c:2057: warning: 'first_image_format' is deprecated (declared
at /usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:420)
ffmpeg.c: In function 'show_formats':
ffmpeg.c:3340: warning: 'AVImageFormat' is deprecated
ffmpeg.c:3385: warning: 'first_image_format' is deprecated (declared
at /usr/src/yoper/BUILD/ffmpeg-SVN-r6565/libavformat/avformat.h:420)
ffmpeg.c: In function 'show_banner':
ffmpeg.c:3850: error: syntax error before 'FFMPEG_CONFIGURATION'
make: *** [ffmpeg.o] Error 1


The only solution was commenting out the offending line , which of
course is not the right way. So please tell me where I am heading
wrong. I tried to be really conservative with tweaking. Just to be on
the safe side:

export CFLAGS="-I/usr/include/faad2 -I/usr/X11R6/include"
./configure --prefix=%{_prefix} --libdir=%{_libdir}
--mandir=%{_mandir} --incdir=%{_includedir}/ffmpeg \
    --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad
--enable-faac --enable-xvid \
    --enable-a52 --enable-a52bin --enable-pp \
    --enable-shared --enable-gpl --disable-strip --disable-mmx

I played around with the switches back and forth , though it always
fails at latest at this point.

Any help welcome.

regards

-- 
Tobias Gerschner
Member of Board of Yoper Linux Ltd. NZ

Knowing is not enough; we must apply. Willing is not enough; we must do.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: application/octet-stream
Size: 13890 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20061006/1a68ad66/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.mak
Type: application/octet-stream
Size: 12547 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20061006/1a68ad66/attachment-0001.obj>


More information about the MPlayer-users mailing list