Results 1 to 10 of 11

Thread: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Location
    Czech republic
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    Hi, I have problem with compile AVLD on Ubuntu KK 2.6.31-17-generic.

    make:
    make -C /lib/modules/2.6.31-17-generic/build M=/home/maso/Plocha/HG12605/avld_0.1.4 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.31-17-generic'
    CC [M] /home/maso/Plocha/HG12605/avld_0.1.4/video_device.o
    /home/maso/Plocha/HG12605/avld_0.1.4/video_device.c:627: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
    /home/maso/Plocha/HG12605/avld_0.1.4/video_device.c:637: warning: initialization from incompatible pointer type
    make[2]: *** [/home/maso/Plocha/HG12605/avld_0.1.4/video_device.o] Error 1
    make[1]: *** [_module_/home/maso/Plocha/HG12605/avld_0.1.4] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-17-generic'
    make: *** [all] Error 2

    Where is defined function "v4l_compat_ioctl32"? On Debian 5 2.6.26 this work and is located in linux-headers-...-common/include/media/v4l2-dev.h

    I need avld for showing video on LCD via parallel port and /dev/video0 (HG12605).

    http://allonlinux.free.fr/Projets/AVLD/

    thanks for help

  2. #2
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    hi there, i believe it was something to do with the v4l ioctl32 stuff being moved and should not be handled by the drivers themselves in newer kernels ( >2.6.29? ). its a little hazy but the fix attached works here, it simply ignores the compat_ioctl: v4l_compat_ioctl32 line on kernels >=2.6.29, which as far as i can remember is an ok thing to do.
    as i say, seems to work fine but you should probably contact the author and get him to actively update the driver or find a more actively developed equivalent
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2010
    Location
    Czech republic
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    Quote Originally Posted by SevenMachines View Post
    hi there, i believe it was something to do with the v4l ioctl32 stuff being moved and should not be handled by the drivers themselves in newer kernels ( >2.6.29? ). its a little hazy but the fix attached works here, it simply ignores the compat_ioctl: v4l_compat_ioctl32 line on kernels >=2.6.29, which as far as i can remember is an ok thing to do.
    as i say, seems to work fine but you should probably contact the author and get him to actively update the driver or find a more actively developed equivalent
    big thanks for right way
    I tested before you wrote, comment a line with v4l_compat_ioctl32 and make and make install works and too
    modprobe avld width=....
    but if I can accessing to this with any program include hg12605, error is occured while opening device (/dev/video0):
    Unknown error 515

    rights of /dev/video0 are:
    crw-rw----+ 1 root video 81, 0 2010-01-22 08:28 /dev/video0

    I tested rw-rw-rw and rwxrwxrwx and not works (err 515)

  4. #4
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    sounds like actual problems in the avld driver codes v4l stuff to me, though i could be wrong. Probably needs some fixing to work with newer kernel v4l stuff. i really dont know anything about v4l drivers though... if the authors still maintaining it you should probably contact them and see what they say

  5. #5
    Join Date
    Jan 2010
    Location
    Czech republic
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    Quote Originally Posted by SevenMachines View Post
    sounds like actual problems in the avld driver codes v4l stuff to me, though i could be wrong. Probably needs some fixing to work with newer kernel v4l stuff. i really dont know anything about v4l drivers though... if the authors still maintaining it you should probably contact them and see what they say
    I emailed to author, see if will be any reaction from him...

    Thanks for helping

  6. #6
    Join Date
    Nov 2005
    Beans
    144

    Re: Can't compile avld Ubuntu KK: v4l_compat_ioctl32 undeclared

    Hi,

    please find attached a patch to get the avld module working.

    Best regards,
    Whoopie
    Attached Files Attached Files

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •