#28 Unable to compile on 2.6.31 kernel - Patch Submission

open
nobody
None
5
2010-06-06
2010-06-06
Malcolm Lewis
No

Hi
The current version 1.4.0 won't compile with the 2.6.31 kernel on openSUSE 11.2, attached please find a patch that enables the module to be built. This patch was located on the Ubuntu forum (http://ubuntuforums.org/showthread.php?t=970777&page=3) and have redone suitable for openSUSE building

I have also built the package and kernel modules for openSUSE 11.2 and are available here;
http://software.opensuse.org/search?q=smartcam&baseproject=openSUSE%3A11.2

Discussion

  • Stevan White
    Stevan White
    2010-09-13

    Version 1.4.0 won't compile for me either, but the patch doesn't work for me in the 2.6.32 kernel.

    In function ‘vidioc_s_fmt_cap’:
    smartcam.c:174: error: dereferencing pointer to incomplete type
    smartcam.c: In function ‘smartcam_write’:
    smartcam.c:529: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)

    That is just some kind of ugly debug string.... so I comment it out. But then we're left with

    smartcam.c: In function ‘smartcam_write’:
    smartcam.c:529: error: ‘TASK_INTERRUPTIBLE’ undeclared (first use in this function)

    And THAT, horrifically, is because of some kind of macro silliness with wake_up_interruptible_all().
    And I don't have time for this kind of nonsense.

     
  • Malcolm Lewis
    Malcolm Lewis
    2010-09-14

    Updated module patch for <= kernel 2.6.34

     
    Attachments
  • Malcolm Lewis
    Malcolm Lewis
    2010-09-14

    Hi
    @stevan_white Nice way to ask for help isn't it??

    A simple google would have led to a simple fix.