[vlc-devel] [PATCH] Fix for building V4L2 under Gentoo

Richard Hosking richard at hovis.net
Sun Nov 4 14:08:46 CET 2007


Ah thanks!  Despite me running 2.6.22 on Gentoo, I have headers
from 2.6.17 installed which did not have types.h included in
videodev2.h.  Grrr!  I'll now see how I managed to end up with
incorrect headers on this box.

So the problem is with my Gentoo... sorry about that.

Incidentally, compiles fine under Ubuntu 7.04 (kernel 2.6.20)
where I originally developed the file.

Regards,
Richard.

Alexis Ballier wrote:
> Hi, 
> 
> 
>> Attached is a patch to include types.h so v4l2.c compiles
>> under Gentoo (kernel 2.6.22).
>>
>> If types.h is not present, then I get build errors as shown
>> in the output here:-
>>
>> http://hovis.net/vlc-gentoo-make-error.txt
>>
>> Adding types.h fixes this.
> 
> here /usr/include/linux/videodev2.h already includes linux/types.h
> 
> what version of linux-headers are you using ?
> 
> you should try to compile a sample C file just including
> linux/videodev2.h and see what happens. I don't think v4l2.c from vlc
> uses anything from linux/types.h so it's most likely to be a
> linux-headers bug that should get tracked and reported on
> bugs.gentoo.org
> 
> Regards,
> 
> Alexis.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list