Tyler Trafford wrote:

Mike Krufky wrote:

Trev Jackson wrote:

Hi

Thanks, that fixed that problem, unfortunately it still does not compile:

make[2]: Leaving directory `/home/mythtv/ivtv-2833/driver'
cc -I../v4l-kernel/linux/include -I../driver -D_GNU_SOURCE -O2 -Wall -c -o ivtvctl.o ivtvctl.c
In file included from ivtvctl.c:40:
../v4l-kernel/linux/include/linux/videodev2.h:22:40: missing binary operator before token "(" ../v4l-kernel/linux/include/linux/videodev2.h:25:40: missing binary operator before token "(" ../v4l-kernel/linux/include/linux/videodev2.h:46:41: missing binary operator before token "(" ../v4l-kernel/linux/include/linux/videodev2.h:59:40: missing binary operator before token "("
In file included from ivtvctl.c:40:
../v4l-kernel/linux/include/linux/videodev2.h:83: error: field `lock' has incomplete type ../v4l-kernel/linux/include/linux/videodev2.h:84:40: missing binary operator before token "(" ../v4l-kernel/linux/include/linux/videodev2.h:89:41: missing binary operator before token "(" ../v4l-kernel/linux/include/linux/videodev2.h:116: warning: "struct file" declared inside parameter list ../v4l-kernel/linux/include/linux/videodev2.h:116: warning: its scope is only this definition or declaration, which is probably not what you want ../v4l-kernel/linux/include/linux/videodev2.h:116: warning: "struct inode" declared inside parameter list
make[1]: *** [ivtvctl.o] Error 1
make[1]: Leaving directory `/home/mythtv/ivtv-2833/utils'
make: *** [all] Error 2

That's a problem due to the fact that videodev2.h uses #if kernel version stuff

you can fix it yourself by adding a #include <linux/version.h> above the #include "videodev2.h" in ivtvctl.c

...or was it utsname.h ?


I think it's a problem with videodev2.h, they shouldn't be checking for a version if __KERNEL__ isn't defined.

Mauro,

Why not #include "compat.h" inside videodev2.h? This what I think needs to be done here.... Otherwise, please advise the ivtv guys on what to do next.

...we spoke about this in irc today, this is also what broke "make kernel-links".

The same goes for videodev.h.

--
Michael Krufky


_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to