[FFmpeg-cvslog] r14769 - trunk/configure
Stefano Sabatini
stefano.sabatini-lala
Mon Aug 18 21:56:45 CEST 2008
On date Friday 2008-08-15 01:38:09 +0200, michael wrote:
> Author: michael
> Date: Fri Aug 15 01:38:09 2008
> New Revision: 14769
>
> Log:
> Add -fasm and -std=c99 when supported.
>
>
> Modified:
> trunk/configure
>
> Modified: trunk/configure
> ==============================================================================
> --- trunk/configure (original)
> +++ trunk/configure Fri Aug 15 01:38:09 2008
> @@ -1125,6 +1125,9 @@ TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$
> TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
> TMPSH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.sh"
>
> +check_cflags -fasm
> +check_cflags -std=c99
> +
The -std=c99 part breaks v4l2 compilation here:
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. -I"/home/stefano/src/ffmpeg" -I/home/stefano/include/ -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -pthread -I/usr/include/schroedinger-1.0 -I/usr/include/liboil-0.3 -g3 -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -fno-math-errno -c -o libavdevice/v4l2.o libavdevice/v4l2.c
In file included from libavdevice/v4l2.c:38:
/usr/include/linux/videodev2.h:600: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?v4l2_std_id?
/usr/include/linux/videodev2.h:692: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:709: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:747: error: expected specifier-qualifier-list before ?v4l2_std_id?
/usr/include/linux/videodev2.h:770: error: expected specifier-qualifier-list before ?__s64?
/usr/include/linux/videodev2.h:1145: error: expected specifier-qualifier-list before ?__u64?
/usr/include/linux/videodev2.h:1306: error: expected specifier-qualifier-list before ?__u64?
libavdevice/v4l2.c: In function ?first_field?:
libavdevice/v4l2.c:191: error: ?v4l2_std_id? undeclared (first use in this function)
libavdevice/v4l2.c:191: error: (Each undeclared identifier is reported only once
libavdevice/v4l2.c:191: error: for each function it appears in.)
libavdevice/v4l2.c:191: error: expected ?;? before ?std?
libavdevice/v4l2.c:193: error: ?std? undeclared (first use in this function)
libavdevice/v4l2.c:197: error: expected ?)? before numeric constant
libavdevice/v4l2.c:197: error: expected ?)? before numeric constant
libavdevice/v4l2.c:197: error: expected ?)? before numeric constant
libavdevice/v4l2.c: In function ?v4l2_set_parameters?:
libavdevice/v4l2.c:474: error: ?struct v4l2_standard? has no member named ?name?
libavdevice/v4l2.c:480: error: ?struct v4l2_standard? has no member named ?id?
libavdevice/v4l2.c:481: error: ?v4l2_std_id? undeclared (first use in this function)
libavdevice/v4l2.c:481: error: ?struct v4l2_standard? has no member named ?id?
make: *** [libavdevice/v4l2.o] Error 1
stefano at geppetto ~/s/ffmpeg> uname -a
Linux geppetto 2.6.22-3-486 #1 Mon Nov 12 07:53:08 UTC 2007 i686 GNU/Linux
stefano at geppetto ~/s/ffmpeg> gcc --version
gcc (GCC) 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Also reported on ffmpeg-user.
Regards.
More information about the ffmpeg-cvslog
mailing list