[FFmpeg-devel] Error during configure process

Luca Abeni lucabe72
Mon May 21 11:49:33 CEST 2007


Hi Michel,

Michel Bardiaux wrote:
[...]
>> /usr/include/linux/videodev2.h:438: error: syntax error before '*' token
>> /usr/include/linux/videodev2.h:439: error: syntax error before '}' token
>> /usr/include/linux/videodev2.h:810: error: field `win' has incomplete type
>> make[1]: *** [v4l2.o] Error 1
>> make[1]: Leaving directory `/usr/local/src/ffmpeg/libavformat'
>> make: *** [lib] Error 2
>>
>> My fault or a bug?
>>
> 
> ISTR you could try adding
> 
> #include <linux/compiler.h>
> 
> before
> 
> #include <linux/videodev2.h>
> 
> in v4l2.c. If that works, submit a patch.
Are you sure including linux/compiler.h is ok for user-space 
applications? Isn't it a "private" kernel header, which should not be 
included from user space?
I think some distributions do not even install it in /usr/include...

I suspect the problem here is that the /usr/include/linux/videodev2.h 
header is not properly "sanitized".



				Luca




More information about the ffmpeg-devel mailing list