Menu

compiling against kernel version 2.6.35 (fix)

2010-08-04
2013-04-29
  • Falk Garbsch

    Falk Garbsch - 2010-08-04

    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>

     
  • NagPer

    NagPer - 2010-10-22

    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.

     
  • Squirrel

    Squirrel - 2011-02-21

    Any ideas for 2.6.36?  I'm getting these errors:

    /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:
    
     
  • David Gaydou

    David Gaydou - 2011-09-09

    just including
    #include <linux/shed.h>
    worked for me.
    Greets!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.