#10 qc-usb doesn\'t compile with kernel-2.6.16

open
None
5
2006-05-07
2006-03-30
No

This is the error when I try to compile with kernel 2.6.16
gcc -m32
-Wp,-MD,/home/fede/cvsroot/qc-usb/.qc-driver.o.d
-nostdinc -isystem
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include
-D__KERNEL__ -Iinclude -include
include/linux/autoconf.h -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -ffreestanding -Os -fomit-frame-pointer
-pipe -msoft-float -mpreferred-stack-boundary=2
-march=athlon -Iinclude/asm-i386/mach-default
-DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(qc_driver)"
-D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o
/home/fede/cvsroot/qc-usb/qc-driver.o
/home/fede/cvsroot/qc-usb/qc-driver.c
/home/fede/cvsroot/qc-usb/qc-driver.c:3031: error:
unknown field `owner' specified in initializer
/home/fede/cvsroot/qc-usb/qc-driver.c:3031: aviso:
inicialización de tipo de puntero incompatible
make[2]: *** [/home/fede/cvsroot/qc-usb/qc-driver.o]
Error 1
make[1]: *** [_module_/home/fede/cvsroot/qc-usb] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.6.16-gentoo-r1'
make: *** [quickcam.ko] Error 2

Discussion

  • Nobody/Anonymous

    Logged In: NO

    You can replace the structure beginning at line 3031 by this :

    static struct usb_driver qc_usb_driver = {
    .name = qc_name,
    .probe = qc_usb_probe,
    .disconnect = qc_usb_disconnect,
    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
    .driver = {
    .name = (char *) qc_name,
    .owner = THIS_MODULE,
    },
    #endif
    #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
    id_table: qc_device_table,
    #endif
    };

    This code has been modified by reading some example in the
    usb gadget section of the kernel. Tested and working with ekiga.

     
  • Kurt Wall

    Kurt Wall - 2006-05-07
    • assigned_to: nobody --> krwall
    • summary: qc-usb doesn't compile with kernel-2.6.16 --> qc-usb doesn\'t compile with kernel-2.6.16
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks