http://bugs.winehq.org/show_bug.cgi?id=3746
Summary: HAVE_V4L2 check and avicap32_main.c Product: Wine Version: 0.9 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-misc AssignedTo: wine-bugs@winehq.org ReportedBy: savzen@gmail.com
I'm not a c expert or a linux expert. So, I may have the explanation/wording wrong.
The kernel headers that wine uses during the compile are in "/usr/include/linux/" instead of possibly the "/lib/modules/version/build/include/linux" directory, which causes the HAVE_V4L2 check to possibly be inaccurate as it is defined in "/usr/include/linux/videodev.h". http://www.winehq.com/hypermail/wine-devel/2005/05/0176.html
From what I understand the kernel headers in "/usr/include/linux" should be the
ones that glibc were compiled against, even if the running kernel is different. http://www.ussg.iu.edu/hypermail/linux/kernel/0007.3/0587.html
In short I would assume that the kernel headers should be taken from the "/lib/modules/version/build/include/linux" directory using the version of the running kernel to decide which headers to use.
Perhaps only certain parts if not all should be compiled against the running kernel headers while others using the ones that Glibc were compiled against?
make failed orginally for me because of this when compiling avicap32_main.o