I just tried compiling the latest SVN version againgst the new 2.6.35 kernel version. The compiling process failed with the following error:
v4l2vd.c:1570: error: implicit declaration of function 'kmalloc'
I think that something changed about the kernel headers and one of the header files used does not include the header file containing the declaration of kmalloc anymore. Adding the following include to the v4l2vd.h did the job:
#include <linux/slab.h>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:414: error: dereferencing pointer to incomplete type
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c: In function 'vloopback_release':
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:463: error: 'TASK_NORMAL' undeclared (first use in this function)
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:463: error: (Each undeclared identifier is reported only once
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:463: error: for each function it appears in.)
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c: In function 'vloopback_write':
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:517: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c: In function 'vloopback_read':
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:608: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:608: error: implicit declaration of function 'signal_pending'
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:608: error: implicit declaration of function 'schedule'
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c: In function 'vloopback_ioctl':
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:1036: warning: unused variable 'ret'
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c:1294: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
/usr/src/v4l2vd-cvs/v4l2vd/v4l2vd.c: At top level:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just tried compiling the latest SVN version againgst the new 2.6.35 kernel version. The compiling process failed with the following error:
v4l2vd.c:1570: error: implicit declaration of function 'kmalloc'
I think that something changed about the kernel headers and one of the header files used does not include the header file containing the declaration of kmalloc anymore. Adding the following include to the v4l2vd.h did the job:
#include <linux/slab.h>
Thanks fgarbsch!!
I was a bit scared as I am building a wifi camera app on Android and I desperate need this stuff for the server side.
Any ideas for 2.6.36? I'm getting these errors:
just including
#include <linux/shed.h>
worked for me.
Greets!