problem with compiling

2008-12-15
2013-06-03
  • Lehel Kovach
    Lehel Kovach
    2008-12-15

    i couldn't compile the release nor the version on cvs. are they all working?

    this is the problem with the release version:
    rm -f *.o qcset show *~ .\#* .*.cmd *.mod.c *.ko
    rm -rf .tmp_versions
    make -C "/lib/modules/2.6.27-9-generic/build" SUBDIRS="/home/lehel/drivers/qc-usb-0.6.6" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
    make[1]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \ echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo; \ /bin/false)
    mkdir -p /home/lehel/drivers/qc-usb-0.6.6/.tmp_versions ; rm -f /home/lehel/drivers/qc-usb-0.6.6/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/lehel/drivers/qc-usb-0.6.6
    gcc -Wp,-MD,/home/lehel/drivers/qc-usb-0.6.6/.qc-driver.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -D__KERNEL__ -Iinclude -I/usr/src/linux-headers-2.6.27-9-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iinclude/asm-x86/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -Wdeclaration-after-statement -Wno-pointer-sign -DNOKERNEL -DHAVE_UTSRELEASE_H=1 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /home/lehel/drivers/qc-usb-0.6.6/.tmp_qc-driver.o /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c
    In file included from /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:47:
    /home/lehel/drivers/qc-usb-0.6.6/quickcam.h:129:1: warning: "BIT" redefined
    In file included from include/linux/kernel.h:15,
    from include/linux/cache.h:4,
    from include/linux/time.h:7,
    from include/linux/videodev2.h:60,
    from include/linux/videodev.h:16,
    from /home/lehel/drivers/qc-usb-0.6.6/quickcam.h:95,
    from /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:47:
    include/linux/bitops.h:6:1: warning: this is the location of the previous definition
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c: In function ‘qc_i2c_init’:
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:824: error: ‘struct urb’ has no member named ‘lock’
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:825: warning: assignment from incompatible pointer type
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c: In function ‘qc_isoc_start’:
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:1867: warning: assignment from incompatible pointer type
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c: In function ‘qc_v4l_ioctl’:
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:2529: error: ‘struct video_device’ has no member named ‘type’
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c: At top level:
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:3008: error: unknown field ‘type’ specified in initializer
    /home/lehel/drivers/qc-usb-0.6.6/qc-driver.c:3009: error: unknown field ‘hardware’ specified in initializer
    make[2]: *** [/home/lehel/drivers/qc-usb-0.6.6/qc-driver.o] Error 1

    and with the cvs version i got this:

    /lib/modules/2.6.27-9-generic/build/include/linux/mm.h:302: error: `CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
    /lib/modules/2.6.27-9-generic/build/include/linux/mm.h:302: warning: initialization makes pointer from integer without a cast
    In file included from quickcam.c:47:
    /lib/modules/2.6.27-9-generic/build/include/linux/mm.h: In function `lowmem_page_address':
    /lib/modules/2.6.27-9-generic/build/include/linux/mm.h:591: warning: implicit declaration of function `__page_to_pfn'
    /lib/modules/2.6.27-9-generic/build/include/linux/mm.h:591: error: `CONFIG_PAGE_OFFSETUL' undeclared (first use in this function)
    quickcam.c:52:27: linux/wrapper.h: No such file or directory
    In file included from /lib/modules/2.6.27-9-generic/build/include/linux/elf.h:7,
                     from /lib/modules/2.6.27-9-generic/build/include/linux/module.h:14,
                     from quickcam.c:53:
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h: In function `start_ia32_thread':
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:153: warning: implicit declaration of function `load_gs_index'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h: In function `elf_common_init':
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:166: error: structure has no member named `r8'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:166: error: structure has no member named `r9'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:166: error: structure has no member named `r10'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:166: error: structure has no member named `r11'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:167: error: structure has no member named `r12'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:167: error: structure has no member named `r13'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:167: error: structure has no member named `r14'
    /lib/modules/2.6.27-9-generic/build/include/asm/elf.h:167: error: structure has no member named `r15'
    In file included from /lib/modules/2.6.27-9-generic/build/include/linux/module.h:21,
                     from quickcam.c:53:
    /lib/modules/2.6.27-9-generic/build/include/asm/module.h:70:2: #error unknown processor family
    In file included from quickcam.c:55:
    /lib/modules/2.6.27-9-generic/build/include/linux/usb.h: In function `usb_register':
    /lib/modules/2.6.27-9-generic/build/include/linux/usb.h:1084: error: `KBUILD_MODNAME' undeclared (first use in this function)
    In file included from quickcam.c:59:
    quickcam.h: At top level:
    quickcam.h:144: error: field `vdev' has incomplete type
    quickcam.h:146: error: field `vpic' has incomplete type
    quickcam.h:147: error: field `vwin' has incomplete type
    quickcam.c:72: error: syntax error before string constant
    quickcam.c:72: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:72: warning: function declaration isn't a prototype
    quickcam.c:72: warning: data definition has no type or storage class
    quickcam.c:73: error: syntax error before string constant
    quickcam.c:73: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:73: warning: function declaration isn't a prototype
    quickcam.c:73: warning: data definition has no type or storage class
    quickcam.c:74: error: syntax error before string constant
    quickcam.c:74: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:74: warning: function declaration isn't a prototype
    quickcam.c:74: warning: data definition has no type or storage class
    quickcam.c:75: error: syntax error before string constant
    quickcam.c:75: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:75: warning: function declaration isn't a prototype
    quickcam.c:75: warning: data definition has no type or storage class
    quickcam.c:76: error: syntax error before string constant
    quickcam.c:76: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:76: warning: function declaration isn't a prototype
    quickcam.c:76: warning: data definition has no type or storage class
    quickcam.c:77: error: syntax error before string constant
    quickcam.c:77: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:77: warning: function declaration isn't a prototype
    quickcam.c:77: warning: data definition has no type or storage class
    quickcam.c:78: error: syntax error before string constant
    quickcam.c:78: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:78: warning: function declaration isn't a prototype
    quickcam.c:78: warning: data definition has no type or storage class
    quickcam.c:79: error: syntax error before string constant
    quickcam.c:79: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:79: warning: function declaration isn't a prototype
    quickcam.c:79: warning: data definition has no type or storage class
    quickcam.c:80: error: syntax error before string constant
    quickcam.c:80: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:80: warning: function declaration isn't a prototype
    quickcam.c:80: warning: data definition has no type or storage class
    quickcam.c:82: error: syntax error before string constant
    quickcam.c:82: warning: type defaults to `int' in declaration of `MODULE_PARM'
    quickcam.c:82: warning: function declaration isn't a prototype
    quickcam.c:82: warning: data definition has no type or storage class
    quickcam.c: In function `usb_quickcam_i2c_in':
    quickcam.c:320: error: `CONFIG_HZ' undeclared (first use in this function)
    quickcam.c: In function `usb_quickcam_get_i2c':
    quickcam.c:336: error: `CONFIG_HZ' undeclared (first use in this function)
    quickcam.c: In function `usb_quickcam_set1':
    quickcam.c:350: error: `CONFIG_HZ' undeclared (first use in this function)
    quickcam.c: In function `usb_quickcam_set2':
    quickcam.c:365: error: `CONFIG_HZ' undeclared (first use in this function)
    quickcam.c: In function `quickcam_usb_control_msg':
    quickcam.c:376: error: `CONFIG_HZ' undeclared (first use in this function)
    quickcam.c: In function `quickcam_init_isoc':
    quickcam.c:1096: error: too few arguments to function `usb_alloc_urb'
    quickcam.c:1109: error: `USB_ISO_ASAP' undeclared (first use in this function)
    quickcam.c:1118: error: too few arguments to function `usb_alloc_urb'
    quickcam.c:1139: error: structure has no member named `next'
    quickcam.c:1140: error: structure has no member named `next'
    quickcam.c:1142: error: too few arguments to function `usb_submit_urb'
    quickcam.c:1146: error: too few arguments to function `usb_submit_urb'
    quickcam.c: In function `quickcam_stop_isoc':
    quickcam.c:1252: error: structure has no member named `next'
    quickcam.c:1254: error: structure has no member named `next'
    quickcam.c: In function `quickcam_get_depth':
    quickcam.c:1369: error: `VIDEO_PALETTE_RGB32' undeclared (first use in this function)
    quickcam.c:1372: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
    quickcam.c:1375: error: `VIDEO_PALETTE_YUV420' undeclared (first use in this function)
    quickcam.c:1378: error: `VIDEO_PALETTE_YUV422' undeclared (first use in this function)
    quickcam.c:1381: error: `VIDEO_PALETTE_YUYV' undeclared (first use in this function)
    quickcam.c:1384: error: `VIDEO_PALETTE_RGB565' undeclared (first use in this function)
    quickcam.c:1387: error: `VIDEO_PALETTE_RGB555' undeclared (first use in this function)
    quickcam.c: In function `quickcam_open':
    quickcam.c:1413: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
    quickcam.c:1483: error: `MOD_INC_USE_COUNT' undeclared (first use in this function)
    quickcam.c: In function `quickcam_close':
    quickcam.c:1518: error: `MOD_DEC_USE_COUNT' undeclared (first use in this function)
    quickcam.c:1536: warning: implicit declaration of function `video_unregister_device'
    quickcam.c: In function `quickcam_ioctl':
    quickcam.c:1557: error: `VIDIOCGCAP' undeclared (first use in this function)
    quickcam.c:1559: error: storage size of 'b' isn't known
    quickcam.c:1564: error: `VID_TYPE_CAPTURE' undeclared (first use in this function)
    quickcam.c:1564: error: `VID_TYPE_SUBCAPTURE' undeclared (first use in this function)
    quickcam.c:1559: warning: unused variable `b'
    quickcam.c:1577: error: `VIDIOCGCHAN' undeclared (first use in this function)
    quickcam.c:1579: error: storage size of 'v' isn't known
    quickcam.c:1594: error: `VIDEO_TYPE_CAMERA' undeclared (first use in this function)
    quickcam.c:1579: warning: unused variable `v'
    quickcam.c:1602: error: `VIDIOCSCHAN' undeclared (first use in this function)
    quickcam.c:1618: error: `VIDIOCGPICT' undeclared (first use in this function)
    quickcam.c:1632: error: `VIDIOCSPICT' undeclared (first use in this function)
    quickcam.c:1634: error: storage size of 'p' isn't known
    quickcam.c:1634: warning: unused variable `p'
    quickcam.c:1674: error: `VIDIOCSWIN' undeclared (first use in this function)
    quickcam.c:1676: error: storage size of 'vw' isn't known
    quickcam.c:1676: warning: unused variable `vw'
    quickcam.c:1696: error: `VIDIOCGWIN' undeclared (first use in this function)
    quickcam.c:1706: error: `VIDIOCGMBUF' undeclared (first use in this function)
    quickcam.c:1708: error: storage size of 'vm' isn't known
    quickcam.c:1708: warning: unused variable `vm'
    quickcam.c:1723: error: `VIDIOCMCAPTURE' undeclared (first use in this function)
    quickcam.c:1725: error: storage size of 'vm' isn't known
    quickcam.c:1725: warning: unused variable `vm'
    quickcam.c:1764: error: `VIDIOCSYNC' undeclared (first use in this function)
    quickcam.c:1846: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
    quickcam.c:1855: error: `VIDIOCGFBUF' undeclared (first use in this function)
    quickcam.c:1857: error: storage size of 'vb' isn't known
    quickcam.c:1857: warning: unused variable `vb'
    quickcam.c:1869: error: `VIDIOCKEY' undeclared (first use in this function)
    quickcam.c:1871: error: `VIDIOCCAPTURE' undeclared (first use in this function)
    quickcam.c:1874: error: `VIDIOCSFBUF' undeclared (first use in this function)
    quickcam.c:1877: error: `VIDIOCGTUNER' undeclared (first use in this function)
    quickcam.c:1878: error: `VIDIOCSTUNER' undeclared (first use in this function)
    quickcam.c:1881: error: `VIDIOCGFREQ' undeclared (first use in this function)
    quickcam.c:1882: error: `VIDIOCSFREQ' undeclared (first use in this function)
    quickcam.c:1885: error: `VIDIOCGAUDIO' undeclared (first use in this function)
    quickcam.c:1886: error: `VIDIOCSAUDIO' undeclared (first use in this function)
    quickcam.c: In function `quickcam_read':
    quickcam.c:2044: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
    quickcam.c: In function `quickcam_mmap':
    quickcam.c:2099: warning: implicit declaration of function `remap_page_range'
    quickcam.c: At top level:
    quickcam.c:2116: error: variable `quickcam_template' has initializer but incomplete type
    quickcam.c:2117: error: unknown field `name' specified in initializer
    quickcam.c:2117: warning: excess elements in struct initializer
    quickcam.c:2117: warning: (near initialization for `quickcam_template')
    quickcam.c:2118: error: unknown field `type' specified in initializer
    quickcam.c:2118: error: `VID_TYPE_CAPTURE' undeclared here (not in a function)
    quickcam.c:2118: warning: excess elements in struct initializer
    quickcam.c:2118: warning: (near initialization for `quickcam_template')
    quickcam.c:2119: error: unknown field `hardware' specified in initializer
    quickcam.c:2119: warning: excess elements in struct initializer
    quickcam.c:2119: warning: (near initialization for `quickcam_template')
    quickcam.c:2120: error: unknown field `initialize' specified in initializer
    quickcam.c:2120: warning: excess elements in struct initializer
    quickcam.c:2120: warning: (near initialization for `quickcam_template')
    quickcam.c:2121: error: unknown field `open' specified in initializer
    quickcam.c:2121: warning: excess elements in struct initializer
    quickcam.c:2121: warning: (near initialization for `quickcam_template')
    quickcam.c:2122: error: unknown field `close' specified in initializer
    quickcam.c:2122: warning: excess elements in struct initializer
    quickcam.c:2122: warning: (near initialization for `quickcam_template')
    quickcam.c:2123: error: unknown field `read' specified in initializer
    quickcam.c:2123: warning: excess elements in struct initializer
    quickcam.c:2123: warning: (near initialization for `quickcam_template')
    quickcam.c:2124: error: unknown field `write' specified in initializer
    quickcam.c:2124: warning: excess elements in struct initializer
    quickcam.c:2124: warning: (near initialization for `quickcam_template')
    quickcam.c:2125: error: unknown field `ioctl' specified in initializer
    quickcam.c:2125: warning: excess elements in struct initializer
    quickcam.c:2125: warning: (near initialization for `quickcam_template')
    quickcam.c:2126: error: unknown field `mmap' specified in initializer
    quickcam.c:2126: warning: excess elements in struct initializer
    quickcam.c:2126: warning: (near initialization for `quickcam_template')
    quickcam.c: In function `usb_quickcam_configure':
    quickcam.c:2168: error: invalid application of `sizeof' to incomplete type `video_device'
    quickcam.c:2168: error: invalid application of `sizeof' to incomplete type `video_device'
    quickcam.c:2174: warning: implicit declaration of function `video_register_device'
    quickcam.c:2174: error: `VFL_TYPE_GRABBER' undeclared (first use in this function)
    quickcam.c:2209: error: `VIDEO_PALETTE_RGB24' undeclared (first use in this function)
    quickcam.c:2223: warning: passing arg 2 of `usb_driver_release_interface' from incompatible pointer type
    quickcam.c: In function `quickcam_probe':
    quickcam.c:2242: error: request for member `altsetting' in something not a structure or union
    quickcam.c: In function `quickcam_disconnect':
    quickcam.c:2304: warning: passing arg 2 of `usb_driver_release_interface' from incompatible pointer type
    quickcam.c:2329: error: structure has no member named `next'
    quickcam.c:2335: error: structure has no member named `next'
    quickcam.c: At top level:
    quickcam.c:2351: warning: initialization from incompatible pointer type
    quickcam.c:2352: warning: initialization from incompatible pointer type
    quickcam.c:2116: error: storage size of `quickcam_template' isn't known
    make: *** [quickcam.o] Error 1