Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#44 Can't compile module...get a bunch of errors..

open
nobody
None
5
2015-02-24
2004-03-08
Anonymous
No

First off I want to say thanks for writing a module for
my webcam: VERY COOL! But, for some reason I get the
following errors when trying to compile the module
(NOTE: this is about half of the error message when I
compile it under FC1 Linux):

qc-driver.c:2090: error: dereferencing pointer to
incomplete type
qc-driver.c:2091: error: dereferencing pointer to
incomplete type
qc-driver.c:2093: error: dereferencing pointer to
incomplete type
qc-driver.c:2096: error: dereferencing pointer to
incomplete type
qc-driver.c:2096: error: `NULL' undeclared (first use
in this function)
qc-driver.c:2105: error: dereferencing pointer to
incomplete type
qc-driver.c:2112:39: missing binary operator before
token "("
qc-driver.c:2110: warning: statement with no effect
qc-driver.c:2118:41: missing binary operator before
token "("
qc-driver.c:2124:41: missing binary operator before
token "("
qc-driver.c: In function `qc_v4l_read':
qc-driver.c:2128: error: dereferencing pointer to
incomplete type
qc-driver.c:2137: error: `EFAULT' undeclared (first use
in this function)
qc-driver.c:2140: error: dereferencing pointer to
incomplete type
qc-driver.c:2140: error: `ERESTARTSYS' undeclared
(first use in this function)
qc-driver.c:2141: error: dereferencing pointer to
incomplete type
qc-driver.c:2142: error: `ENODEV' undeclared (first use
in this function)
qc-driver.c:2146: error: `EAGAIN' undeclared (first use
in this function)
qc-driver.c:2155: warning: implicit declaration of
function `copy_to_user'
qc-driver.c:2162: error: dereferencing pointer to
incomplete type
qc-driver.c:2168:41: missing binary operator before
token "("
qc-driver.c:2178:41: missing binary operator before
token "("
qc-driver.c: In function `qc_v4l_mmap':
qc-driver.c:2183: error: dereferencing pointer to
incomplete type
qc-driver.c:2186:51: missing binary operator before
token "("
qc-driver.c:2191: error: dereferencing pointer to
incomplete type
qc-driver.c:2191: error: `ERESTARTSYS' undeclared
(first use in this function)
qc-driver.c:2192: error: dereferencing pointer to
incomplete type
qc-driver.c:2192: error: `ENODEV' undeclared (first use
in this function)
qc-driver.c:2195: error: `vma' undeclared (first use in
this function)
qc-driver.c:2198: error: dereferencing pointer to
incomplete type
qc-driver.c:2204:39: missing binary operator before
token "("
qc-driver.c:2210:41: missing binary operator before
token "("
qc-driver.c: In function `qc_v4l_ioctl':
qc-driver.c:2214: error: dereferencing pointer to
incomplete type
qc-driver.c:2219: error: dereferencing pointer to
incomplete type
qc-driver.c:2219: error: `ERESTARTSYS' undeclared
(first use in this function)
qc-driver.c:2220: error: dereferencing pointer to
incomplete type
qc-driver.c:2221: error: `ENODEV' undeclared (first use
in this function)
qc-driver.c:2226: error: `VIDIOCGCAP' undeclared (first
use in this function)
qc-driver.c:2228: error: storage size of `b' isn't known
qc-driver.c:2231: warning: implicit declaration of
function `strcpy'
qc-driver.c:2232: error: dereferencing pointer to
incomplete type
qc-driver.c:2235: error: dereferencing pointer to
incomplete type
qc-driver.c:2236: error: dereferencing pointer to
incomplete type
qc-driver.c:2237: error: dereferencing pointer to
incomplete type
qc-driver.c:2243: error: `EFAULT' undeclared (first use
in this function)
qc-driver.c:2228: warning: unused variable `b'
qc-driver.c:2248: error: `VIDIOCGCHAN' undeclared
(first use in this function)
qc-driver.c:2250: error: storage size of `v' isn't known
qc-driver.c:2251: warning: implicit declaration of
function `copy_from_user'
qc-driver.c:2257: error: `EINVAL' undeclared (first use
in this function)
qc-driver.c:2262: error: `VIDEO_TYPE_CAMERA' undeclared
(first use in this function)
qc-driver.c:2250: warning: unused variable `v'
qc-driver.c:2269: error: `VIDIOCSCHAN' undeclared
(first use in this function)
qc-driver.c:2281: error: `VIDIOCGPICT' undeclared
(first use in this function)
qc-driver.c:2284: error: dereferencing pointer to
incomplete type
qc-driver.c:2284: error: dereferencing pointer to
incomplete type
qc-driver.c:2289: error: `VIDIOCSPICT' undeclared
(first use in this function)
qc-driver.c:2291: error: storage size of `p' isn't known
qc-driver.c:2301: error: dereferencing pointer to
incomplete type
qc-driver.c:2302: error: dereferencing pointer to
incomplete type
qc-driver.c:2303: error: dereferencing pointer to
incomplete type
qc-driver.c:2306: error: dereferencing pointer to
incomplete type
qc-driver.c:2307: error: dereferencing pointer to
incomplete type
qc-driver.c:2308: error: dereferencing pointer to
incomplete type
qc-driver.c:2309: error: dereferencing pointer to
incomplete type
qc-driver.c:2311: error: dereferencing pointer to
incomplete type
qc-driver.c:2313: error: dereferencing pointer to
incomplete type
qc-driver.c:2313: error: dereferencing pointer to
incomplete type
qc-driver.c:2313: error: dereferencing pointer to
incomplete type
qc-driver.c:2313: error: dereferencing pointer to
incomplete type
qc-driver.c:2313: error: dereferencing pointer to
incomplete type
qc-driver.c:2315: error: dereferencing pointer to
incomplete type
qc-driver.c:2315: error: `NULL' undeclared (first use
in this function)
qc-driver.c:2316: error: dereferencing pointer to
incomplete type
qc-driver.c:2316: error: dereferencing pointer to
incomplete type
qc-driver.c:2291: warning: unused variable `p'
qc-driver.c:2322: error: `VIDIOCSWIN' undeclared (first
use in this function)
qc-driver.c:2324: error: storage size of `vw' isn't known
qc-driver.c:2331: error: dereferencing pointer to
incomplete type
qc-driver.c:2324: warning: unused variable `vw'
qc-driver.c:2340: error: `VIDIOCGWIN' undeclared (first
use in this function)
qc-driver.c:2343: error: dereferencing pointer to
incomplete type
qc-driver.c:2343: error: dereferencing pointer to
incomplete type
qc-driver.c:2348: error: `VIDIOCGMBUF' undeclared
(first use in this function)
qc-driver.c:2350: error: storage size of `vm' isn't known
qc-driver.c:2360: error: dereferencing pointer to
incomplete type
qc-driver.c:2350: warning: unused variable `vm'
qc-driver.c:2370: error: `VIDIOCMCAPTURE' undeclared
(first use in this function)
qc-driver.c:2372: error: storage size of `vm' isn't known
qc-driver.c:2379: error: dereferencing pointer to
incomplete type
qc-driver.c:2380: error: `KERN_NOTICE' undeclared
(first use in this function)
qc-driver.c:2380: error: syntax error before string
constant
qc-driver.c:2384: error: dereferencing pointer to
incomplete type
qc-driver.c:2390: error: dereferencing pointer to
incomplete type
qc-driver.c:2391: error: dereferencing pointer to
incomplete type
qc-driver.c:2372: warning: unused variable `vm'
qc-driver.c:2398: error: `VIDIOCSYNC' undeclared (first
use in this function)
qc-driver.c:2407: error: `VIDIOCGFBUF' undeclared
(first use in this function)
qc-driver.c:2409: error: storage size of `vb' isn't known
qc-driver.c:2409: warning: unused variable `vb'
qc-driver.c:2417: error: `VIDIOCKEY' undeclared (first
use in this function)
qc-driver.c:2423: error: `VIDIOCCAPTURE' undeclared
(first use in this function)qc-driver.c:2429: error:
`VIDIOCSFBUF' undeclared (first use in this function)
qc-driver.c:2435: error: `VIDIOCGTUNER' undeclared
(first use in this function)
qc-driver.c:2436: error: `VIDIOCSTUNER' undeclared
(first use in this function)
qc-driver.c:2442: error: `VIDIOCGFREQ' undeclared
(first use in this function)
qc-driver.c:2443: error: `VIDIOCSFREQ' undeclared
(first use in this function)
qc-driver.c:2449: error: `VIDIOCGAUDIO' undeclared
(first use in this function)
qc-driver.c:2450: error: `VIDIOCSAUDIO' undeclared
(first use in this function)
qc-driver.c:2457: warning: implicit declaration of
function `_IOWR'
qc-driver.c:2457: error: syntax error before "int"
qc-driver.c:2459: warning: implicit declaration of
function `_IOR'
qc-driver.c:2459: error: syntax error before "int"
qc-driver.c:2222: error: label `fail' used but not defined
qc-driver.c:2460: error: break statement not within
loop or switch
qc-driver.c: At top level:
qc-driver.c:2461: error: syntax error before "if"
qc-driver.c:2569:41: missing binary operator before
token "("
qc-driver.c:2588: warning: type defaults to `int' in
declaration of `val'
qc-driver.c:2588: error: `val' used prior to declaration
qc-driver.c:2588: error: `qc' undeclared here (not in a
function)
qc-driver.c:2588: error: `reg' undeclared here (not in
a function)
qc-driver.c:2588: error: initializer element is not
constant
qc-driver.c:2588: warning: data definition has no type
or storage class
qc-driver.c:2589: error: syntax error before "if"
qc-driver.c:2590: warning: type defaults to `int' in
declaration of `val'
qc-driver.c:2590: error: redefinition of `val'
qc-driver.c:2588: error: `val' previously defined here
qc-driver.c:2590: error: `reg' undeclared here (not in
a function)
qc-driver.c:2590: warning: data definition has no type
or storage class
qc-driver.c:2591: error: syntax error before "if"
qc-driver.c:2599: warning: type defaults to `int' in
declaration of `retval'
qc-driver.c:2599: error: `qc' undeclared here (not in a
function)
qc-driver.c:2599: error: `regval' undeclared here (not
in a function)
qc-driver.c:2599: error: `regval' undeclared here (not
in a function)
qc-driver.c:2599: error: initializer element is not
constant
qc-driver.c:2599: warning: data definition has no type
or storage class
qc-driver.c:2600: error: syntax error before "break"
qc-driver.c:2610: warning: type defaults to `int' in
declaration of `val'
qc-driver.c:2610: error: redefinition of `val'
qc-driver.c:2590: error: `val' previously defined here
qc-driver.c:2610: error: `qc' undeclared here (not in a
function)
qc-driver.c:2610: error: `qc' undeclared here (not in a
function)
qc-driver.c:2610: error: `reg' undeclared here (not in
a function)
qc-driver.c:2610: error: initializer element is not
constant
qc-driver.c:2610: warning: data definition has no type
or storage class
qc-driver.c:2611: error: syntax error before "if"
qc-driver.c:2612: warning: type defaults to `int' in
declaration of `val'
qc-driver.c:2612: error: redefinition of `val'
qc-driver.c:2610: error: `val' previously defined here
qc-driver.c:2612: error: `reg' undeclared here (not in
a function)
qc-driver.c:2612: warning: data definition has no type
or storage class
qc-driver.c:2613: error: syntax error before "if"
qc-driver.c:2621: warning: type defaults to `int' in
declaration of `retval'
qc-driver.c:2621: error: redefinition of `retval'
qc-driver.c:2599: error: `retval' previously defined here
qc-driver.c:2621: error: `qc' undeclared here (not in a
function)
qc-driver.c:2621: error: `regval' undeclared here (not
in a function)
qc-driver.c:2621: error: `regval' undeclared here (not
in a function)
qc-driver.c:2621: error: initializer element is not
constant
qc-driver.c:2621: warning: data definition has no type
or storage class
qc-driver.c:2622: error: syntax error before "if"
qc-driver.c:2623: warning: type defaults to `int' in
declaration of `retval'
qc-driver.c:2623: error: redefinition of `retval'
qc-driver.c:2621: error: `retval' previously defined here
qc-driver.c:2623: error: `qc' undeclared here (not in a
function)
qc-driver.c:2623: error: initializer element is not
constant
qc-driver.c:2623: warning: data definition has no type
or storage class
qc-driver.c:2624: error: syntax error before "break"
qc-driver.c:2629: warning: type defaults to `int' in
declaration of `retval'
qc-driver.c:2629: error: redefinition of `retval'
qc-driver.c:2623: error: `retval' previously defined here
qc-driver.c:2629: error: `ENOIOCTLCMD' undeclared here
(not in a function)
qc-driver.c:2629: warning: data definition has no type
or storage class
qc-driver.c:2630: error: syntax error before "break"
qc-driver.c:2633: error: syntax error before '&' token
qc-driver.c:2633: warning: type defaults to `int' in
declaration of `up'
qc-driver.c:2633: warning: function declaration isn't a
prototype
qc-driver.c:2633: warning: data definition has no type
or storage class
qc-driver.c:2639:38: missing binary operator before
token "("
qc-driver.c:2648:41: missing binary operator before
token "("
qc-driver.c:2662: error: variable `qc_v4l_template' has
initializer but incomplete type
qc-driver.c:2663: error: unknown field `name' specified
in initializer
qc-driver.c:2663: warning: excess elements in struct
initializer
qc-driver.c:2663: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2664: error: unknown field `type' specified
in initializer
qc-driver.c:2664: error: `VID_TYPE_CAPTURE' undeclared
here (not in a function)
qc-driver.c:2664: error: `VID_TYPE_SUBCAPTURE'
undeclared here (not in a function)
qc-driver.c:2664: warning: excess elements in struct
initializer
qc-driver.c:2664: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2665: error: unknown field `hardware'
specified in initializer
qc-driver.c:2665: warning: excess elements in struct
initializer
qc-driver.c:2665: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2666: error: unknown field `minor'
specified in initializer
qc-driver.c:2666: warning: excess elements in struct
initializer
qc-driver.c:2666: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2667:41: missing binary operator before
token "("
qc-driver.c:2671: error: unknown field `initialize'
specified in initializer
qc-driver.c:2671: error: `NULL' undeclared here (not in
a function)
qc-driver.c:2671: warning: excess elements in struct
initializer
qc-driver.c:2671: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2672: error: unknown field `open' specified
in initializer
qc-driver.c:2672: warning: excess elements in struct
initializer
qc-driver.c:2672: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2673: error: unknown field `close'
specified in initializer
qc-driver.c:2673: warning: excess elements in struct
initializer
qc-driver.c:2673: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2674: error: unknown field `read' specified
in initializer
qc-driver.c:2674: warning: excess elements in struct
initializer
qc-driver.c:2674: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2675: error: unknown field `write'
specified in initializer
qc-driver.c:2675: error: `qc_v4l_write' undeclared here
(not in a function)
qc-driver.c:2675: warning: excess elements in struct
initializer
qc-driver.c:2675: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2676: error: unknown field `ioctl'
specified in initializer
qc-driver.c:2676: warning: excess elements in struct
initializer
qc-driver.c:2676: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2677: error: unknown field `mmap' specified
in initializer
qc-driver.c:2677: warning: excess elements in struct
initializer
qc-driver.c:2677: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2678: error: unknown field `poll' specified
in initializer
qc-driver.c:2678: error: `qc_v4l_poll' undeclared here
(not in a function)
qc-driver.c:2678: warning: excess elements in struct
initializer
qc-driver.c:2678: warning: (near initialization for
`qc_v4l_template')
qc-driver.c:2683:41: missing binary operator before
token "("
qc-driver.c:2685:43: missing binary operator before
token "("
qc-driver.c:2691:41: missing binary operator before
token "("
qc-driver.c:2697: error: variable `qc_usb_driver' has
initializer but incomplete type
qc-driver.c:2698: error: unknown field `name' specified
in initializer
qc-driver.c:2698: warning: excess elements in struct
initializer
qc-driver.c:2698: warning: (near initialization for
`qc_usb_driver')
qc-driver.c:2699: error: unknown field `probe'
specified in initializer
qc-driver.c:2699: warning: excess elements in struct
initializer
qc-driver.c:2699: warning: (near initialization for
`qc_usb_driver')
qc-driver.c:2700: error: unknown field `disconnect'
specified in initializer
qc-driver.c:2700: warning: excess elements in struct
initializer
qc-driver.c:2700: warning: (near initialization for
`qc_usb_driver')
qc-driver.c:2701:41: missing binary operator before
token "("
qc-driver.c:2704:41: missing binary operator before
token "("
qc-driver.c: In function `qc_usb_init':
qc-driver.c:2720: error: `NULL' undeclared (first use
in this function)
qc-driver.c:2720: error: `KERN_CRIT' undeclared (first
use in this function)
qc-driver.c:2720: error: syntax error before string
constant
qc-driver.c:2725: error: `quickcam_list_lock'
undeclared (first use in this function)
qc-driver.c:2726: error: `quickcam_list' undeclared
(first use in this function)qc-driver.c:2726: error:
syntax error before "typeof"
qc-driver.c:2726: error: dereferencing pointer to
incomplete type
qc-driver.c:2726: error: dereferencing pointer to
incomplete type
qc-driver.c:2726: error: syntax error before "typeof"
qc-driver.c:2729: error: dereferencing pointer to
incomplete type
qc-driver.c:2734: error: dereferencing pointer to
incomplete type
qc-driver.c:2735: error: `KERN_NOTICE' undeclared
(first use in this function)
qc-driver.c:2735: error: syntax error before string
constant
qc-driver.c:2737: error: dereferencing pointer to
incomplete type
qc-driver.c:2717: warning: unused variable `i'
qc-driver.c:2717: warning: unused variable `r'
qc-driver.c:2732: error: continue statement not within
a loop
qc-driver.c:2738: error: continue statement not within
a loop
qc-driver.c:2742: error: break statement not within
loop or switch
qc-driver.c: At top level:
qc-driver.c:2745: error: syntax error before "if"
qc-driver.c:2748: error: syntax error before string
constant
qc-driver.c:2748: warning: type defaults to `int' in
declaration of `printk'
qc-driver.c:2748: warning: function declaration isn't a
prototype
qc-driver.c:2748: warning: data definition has no type
or storage class
qc-driver.c:2749: warning: type defaults to `int' in
declaration of `qc_isoc_stop'
qc-driver.c:2749: warning: parameter names (without
types) in function declaration
qc-driver.c:2749: error: conflicting types for
`qc_isoc_stop'
qc-driver.c:1686: error: previous declaration of
`qc_isoc_stop'
qc-driver.c:2749: warning: data definition has no type
or storage class
qc-driver.c:2750: warning: type defaults to `int' in
declaration of `qc_i2c_wait'
qc-driver.c:2750: warning: parameter names (without
types) in function declaration
qc-driver.c:2750: warning: data definition has no type
or storage class
qc-driver.c:2751: warning: type defaults to `int' in
declaration of `qc_frame_flush'
qc-driver.c:2751: warning: parameter names (without
types) in function declaration
qc-driver.c:2751: error: conflicting types for
`qc_frame_flush'
qc-driver.c:1356: error: previous declaration of
`qc_frame_flush'
qc-driver.c:2751: warning: data definition has no type
or storage class
qc-driver.c:2752: error: syntax error before '}' token
qc-driver.c:2755: warning: type defaults to `int' in
declaration of `qc'
qc-driver.c:2755: error: invalid type argument of `unary *'
qc-driver.c:2755: error: `GFP_KERNEL' undeclared here
(not in a function)
qc-driver.c:2755: error: initializer element is not
constant
qc-driver.c:2755: warning: data definition has no type
or storage class
qc-driver.c:2756: error: syntax error before "if"
qc-driver.c:2758: error: syntax error before "if"
qc-driver.c:2759: error: syntax error before '&' token
qc-driver.c:2759: warning: type defaults to `int' in
declaration of `init_MUTEX_LOCKED'
qc-driver.c:2759: warning: function declaration isn't a
prototype
qc-driver.c:2759: warning: data definition has no type
or storage class
qc-driver.c:2760: error: syntax error before '->' token
qc-driver.c:2767: warning: type defaults to `int' in
declaration of `qc_i2c_wait'
qc-driver.c:2767: warning: parameter names (without
types) in function declaration
qc-driver.c:2767: warning: data definition has no type
or storage class
qc-driver.c:2768: error: syntax error before "if"
qc-driver.c:2772: warning: type defaults to `int' in
declaration of `r'
qc-driver.c:2772: error: redefinition of `r'
qc-driver.c:2027: error: `r' previously defined here
qc-driver.c:2772: error: `i' undeclared here (not in a
function)
qc-driver.c:2772: warning: data definition has no type
or storage class
qc-driver.c:2773: error: syntax error before "if"
qc-driver.c:2777: error: syntax error before string
constant
qc-driver.c:2777: warning: type defaults to `int' in
declaration of `printk'
qc-driver.c:2777: warning: function declaration isn't a
prototype
qc-driver.c:2777: warning: data definition has no type
or storage class
qc-driver.c:2781: error: syntax error before string
constant
qc-driver.c:2781: warning: type defaults to `int' in
declaration of `printk'
qc-driver.c:2781: warning: function declaration isn't a
prototype
qc-driver.c:2781: warning: data definition has no type
or storage class
qc-driver.c:2807: error: syntax error before '&' token
qc-driver.c:2809: warning: type defaults to `int' in
declaration of `r'
qc-driver.c:2809: error: redefinition of `r'
qc-driver.c:2772: error: `r' previously defined here
qc-driver.c:2809: warning: implicit declaration of
function `video_register_device'
qc-driver.c:2809: error: invalid type argument of `->'
qc-driver.c:2809: error: `VFL_TYPE_GRABBER' undeclared
here (not in a function)
qc-driver.c:2809: error: `video_nr' undeclared here
(not in a function)
qc-driver.c:2809: error: initializer element is not
constant
qc-driver.c:2809: warning: data definition has no type
or storage class
qc-driver.c:2810: error: syntax error before "if"
qc-driver.c:2811: error: syntax error before string
constant
qc-driver.c:2811: warning: type defaults to `int' in
declaration of `printk'
qc-driver.c:2811: warning: function declaration isn't a
prototype
qc-driver.c:2811: warning: data definition has no type
or storage class
qc-driver.c:2814: error: syntax error before '&' token
qc-driver.c:2814: warning: type defaults to `int' in
declaration of `list_add'
qc-driver.c:2814: warning: function declaration isn't a
prototype
qc-driver.c:2814: warning: data definition has no type
or storage class
qc-driver.c:2820: error: invalid type argument of `->'
qc-driver.c:2822: warning: type defaults to `int' in
declaration of `qc_isoc_stop'
qc-driver.c:2822: warning: parameter names (without
types) in function declaration
qc-driver.c:2822: warning: data definition has no type
or storage class
qc-driver.c:2823: warning: type defaults to `int' in
declaration of `r'
qc-driver.c:2823: error: redefinition of `r'
qc-driver.c:2809: error: `r' previously defined here
qc-driver.c:2823: warning: passing arg 1 of
`qc_sensor_init' makes pointer from integer without a cast
qc-driver.c:2823: error: initializer element is not
constant
qc-driver.c:2823: warning: data definition has no type
or storage class
qc-driver.c:2824: warning: type defaults to `int' in
declaration of `r'
qc-driver.c:2824: error: redefinition of `r'
qc-driver.c:2823: error: `r' previously defined here
qc-driver.c:2824: warning: passing arg 1 of
`qc_isoc_start' makes pointer from integer without a cast
qc-driver.c:2824: error: initializer element is not
constant
qc-driver.c:2824: warning: data definition has no type
or storage class
qc-driver.c:2825: warning: type defaults to `int' in
declaration of `r'
qc-driver.c:2825: error: redefinition of `r'
qc-driver.c:2824: error: `r' previously defined here
qc-driver.c:2825: error: `width' undeclared here (not
in a function)
qc-driver.c:2825: warning: passing arg 1 of
`qc_sensor_setsize' makes pointer from integer without
a cast
qc-driver.c:2825: error: initializer element is not
constant
qc-driver.c:2825: warning: data definition has no type
or storage class
qc-driver.c:2858: error: syntax error before '}' token
qc-driver.c:2860: error: syntax error before '&' token
qc-driver.c:2860: warning: type defaults to `int' in
declaration of `up'
qc-driver.c:2860: warning: function declaration isn't a
prototype
qc-driver.c:2860: warning: data definition has no type
or storage class
qc-driver.c:2862: error: syntax error before '&' token
qc-driver.c:2862: warning: type defaults to `int' in
declaration of `up'
qc-driver.c:2862: warning: function declaration isn't a
prototype
qc-driver.c:2862: warning: data definition has no type
or storage class
qc-driver.c:2870: error: syntax error before '&' token
qc-driver.c:2870: warning: type defaults to `int' in
declaration of `up'
qc-driver.c:2870: warning: function declaration isn't a
prototype
qc-driver.c:2870: warning: data definition has no type
or storage class
qc-driver.c:2871: error: syntax error before ':' token
qc-driver.c:2874: error: syntax error before '&' token
qc-driver.c:2874: warning: type defaults to `int' in
declaration of `up'
qc-driver.c:2874: warning: function declaration isn't a
prototype
qc-driver.c:2874: warning: data definition has no type
or storage class
qc-driver.c:2881:41: missing binary operator before
token "("
qc-driver.c:2883:43: missing binary operator before
token "("
qc-driver.c:2891:41: missing binary operator before
token "("
qc-driver.c: In function `qc_usb_probe':
qc-driver.c:2896: error: `NULL' undeclared (first use
in this function)
qc-driver.c:2899:40: missing binary operator before
token "("
qc-driver.c:2908: error: `KERN_CRIT' undeclared (first
use in this function)
qc-driver.c:2908: error: syntax error before string
constant
qc-driver.c:2911: error: dereferencing pointer to
incomplete type
qc-driver.c:2918:41: missing binary operator before
token "("
qc-driver.c:2922: error: dereferencing pointer to
incomplete type
qc-driver.c:2925: error: dereferencing pointer to
incomplete type
qc-driver.c:2925: error: syntax error before string
constant
qc-driver.c:2926: error: dereferencing pointer to
incomplete type
qc-driver.c:2927: error: dereferencing pointer to
incomplete type
qc-driver.c:2930: error: `KERN_INFO' undeclared (first
use in this function)
qc-driver.c:2930: error: syntax error before string
constant
qc-driver.c:2931: error: syntax error before string
constant
qc-driver.c:2937: error: `MOD_INC_USE_COUNT' undeclared
(first use in this function)
qc-driver.c:2941:41: missing binary operator before
token "("
qc-driver.c:2940: warning: statement with no effect
qc-driver.c: In function `qc_usb_exit':
qc-driver.c:2963: warning: implicit declaration of
function `video_unregister_device'
qc-driver.c:2963: error: dereferencing pointer to
incomplete type
qc-driver.c:2965: warning: implicit declaration of
function `list_del'
qc-driver.c:2965: error: dereferencing pointer to
incomplete type
qc-driver.c:2976:41: missing binary operator before
token "("
qc-driver.c:2982:41: missing binary operator before
token "("
qc-driver.c: In function `qc_usb_disconnect':
qc-driver.c:2995: error: `MOD_INC_USE_COUNT' undeclared
(first use in this function)
qc-driver.c:2997: error: `quickcam_list_lock'
undeclared (first use in this function)
qc-driver.c:2999: error: dereferencing pointer to
incomplete type
qc-driver.c:3000:41: missing binary operator before
token "("
qc-driver.c:3007: error: dereferencing pointer to
incomplete type
qc-driver.c:3013: error: dereferencing pointer to
incomplete type
qc-driver.c:3013: error: `NULL' undeclared (first use
in this function)
qc-driver.c:3017: error: dereferencing pointer to
incomplete type
qc-driver.c:3022: warning: statement with no effect
qc-driver.c: At top level:
qc-driver.c:3031: error: syntax error before "qc_init"
qc-driver.c:3032: warning: return type defaults to `int'
qc-driver.c: In function `qc_init':
qc-driver.c:3039: warning: implicit declaration of
function `usb_register'
qc-driver.c: At top level:
qc-driver.c:3047: error: syntax error before "qc_exit"
qc-driver.c:3048: warning: return type defaults to `int'
qc-driver.c: In function `qc_exit':
qc-driver.c:3050: warning: implicit declaration of
function `usb_deregister'
qc-driver.c: At top level:
qc-driver.c:3055: warning: type defaults to `int' in
declaration of `module_init'
qc-driver.c:3055: warning: parameter names (without
types) in function declaration
qc-driver.c:3055: warning: data definition has no type
or storage class
qc-driver.c:3056: warning: type defaults to `int' in
declaration of `module_exit'
qc-driver.c:3056: warning: parameter names (without
types) in function declaration
qc-driver.c:3056: warning: data definition has no type
or storage class
qc-driver.c:2662: error: storage size of
`qc_v4l_template' isn't known
qc-driver.c:2697: error: storage size of
`qc_usb_driver' isn't known
qc-driver.c:83: warning: `keepsettings' defined but not
used
qc-driver.c:87: warning: `settle' defined but not used
qc-driver.c:92: warning: `subsample' defined but not used
qc-driver.c:96: warning: `compress' defined but not used
qc-driver.c:100: warning: `frameskip' defined but not used
qc-driver.c:104: warning: `quality' defined but not used
qc-driver.c:108: warning: `adaptive' defined but not used
qc-driver.c:112: warning: `equalize' defined but not used
qc-driver.c:116: warning: `retryerrors' defined but not
used
qc-driver.c:121: warning: `compatible' defined but not used
qc-driver.c:174: warning: `LIST_HEAD' declared `static'
but never defined
qc-driver.c:175: warning: `DECLARE_MUTEX' declared
`static' but never defined
qc-driver.c:673: warning: `qc_i2c_init' defined but not
used
qc-driver.c:1969: warning: `qc_v4l_init' defined but
not used
qc-driver.c:2662: warning: `qc_v4l_template' defined
but not used
{standard input}: Assembler messages:
{standard input}:303: Error: symbol `val' is already
defined
{standard input}:315: Error: symbol `val' is already
defined
{standard input}:321: Error: symbol `val' is already
defined
{standard input}:327: Error: symbol `retval' is already
defined
{standard input}:333: Error: symbol `retval' is already
defined
{standard input}:339: Error: symbol `retval' is already
defined
{standard input}:351: Error: symbol `r' is already defined
{standard input}:357: Error: symbol `r' is already defined
{standard input}:369: Error: symbol `r' is already defined
{standard input}:375: Error: symbol `r' is already defined
{standard input}:381: Error: symbol `r' is already defined
make: *** [qc-driver.o] Error 1
[root@game qc-usb-0.6.0]# vi errors
[root@game qc-usb-0.6.0]# make all | errors
bash: errors: command not found
which: no depmod in
(/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/gnome/bin)
awk: cmd. line:2: fatal: cannot open file
`/lib/modules/2.4.22-1.2174.nptl/build/include/linux/version.h'
for reading (No such file or directory)
/bin/sh: line 1: [: -ge: unary operator expected
/bin/sh: line 1: [: -ge: unary operator expected

Thanks again!

-Adam

Discussion