I get this after running make:
---
# make all
cc -I/usr/src/linux/drivers/usb
-I/usr/src/linux/include -include
/usr/src/linux/include/linux/config.h -O3 -Wall
-Wstrict-prototypes -fomit-frame-pointer -pipe
-DMODULE -D__KERNEL__ -c quickcam.c
In file included from
/usr/src/linux/include/asm/processor.h:18,
from
/usr/src/linux/include/asm/thread_info.h:13,
from
/usr/src/linux/include/linux/thread_info.h:21,
from
/usr/src/linux/include/linux/spinlock.h:12,
from
/usr/src/linux/include/linux/capability.h:45,
from
/usr/src/linux/include/linux/sched.h:7,
from quickcam.c:39:
/usr/src/linux/include/asm/system.h: In function
`__set_64bit_var':
/usr/src/linux/include/asm/system.h:193: warning:
dereferencing type-punned pointer will break
strict-aliasing rules
/usr/src/linux/include/asm/system.h:193: warning:
dereferencing type-punned pointer will break
strict-aliasing rules
quickcam.c:52:27: linux/wrapper.h: Onbekend bestand of map
In file included from
/usr/src/linux/include/linux/irq.h:20,
from
/usr/src/linux/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/interrupt.h:11,
from
/usr/src/linux/include/linux/usb.h:15,
from quickcam.c:55:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h:
Onbekend bestand of map
In file included from
/usr/src/linux/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/interrupt.h:11,
from
/usr/src/linux/include/linux/usb.h:15,
from quickcam.c:55:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:70: error: `NR_IRQS'
undeclared here (not in a function)
In file included from
/usr/src/linux/include/linux/irq.h:72,
from
/usr/src/linux/include/asm/hardirq.h:6,
from
/usr/src/linux/include/linux/interrupt.h:11,
from
/usr/src/linux/include/linux/usb.h:15,
from quickcam.c:55:
/usr/src/linux/include/asm/hw_irq.h:28: error:
`NR_IRQ_VECTORS' undeclared here (not in a function)
/usr/src/linux/include/asm/hw_irq.h:31: error:
`NR_IRQS' undeclared here (not in a function)
In file included from quickcam.c:58:
quickcam.h:80: error: parse error before "urb_t"
quickcam.h:80: warning: no semicolon at end of struct
or union
quickcam.h:190: error: field `sbuf' has incomplete type
quickcam.c: In function `quickcam_init_isoc':
quickcam.c:1079: error: `urb_t' undeclared (first use
in this function)
quickcam.c:1079: error: (Each undeclared identifier is
reported only once
quickcam.c:1079: error: for each function it appears in.)
quickcam.c:1079: error: `urb' undeclared (first use in
this function)
quickcam.c:1093: error: too few arguments to function
`usb_alloc_urb'
quickcam.c:1106: error: `USB_ISO_ASAP' undeclared
(first use in this function)
quickcam.c:1115: error: too few arguments to function
`usb_alloc_urb'
quickcam.c:1139: error: too few arguments to function
`usb_submit_urb'
quickcam.c:1143: error: too few arguments to function
`usb_submit_urb'
quickcam.c: In function `quickcam_open':
quickcam.c:1480: warning: `MOD_INC_USE_COUNT' is
deprecated (declared at
/usr/src/linux/include/linux/module.h:515)
quickcam.c: In function `quickcam_close':
quickcam.c:1515: warning: `MOD_DEC_USE_COUNT' is
deprecated (declared at
/usr/src/linux/include/linux/module.h:527)
quickcam.c: In function `quickcam_mmap':
quickcam.c:2100: warning: passing arg 1 of
`remap_page_range' makes pointer from integer without a
cast
quickcam.c:2100: error: incompatible type for argument
4 of `remap_page_range'
quickcam.c:2100: error: too few arguments to function
`remap_page_range'
quickcam.c: At top level:
quickcam.c:2121: error: unknown field `initialize'
specified in initializer
quickcam.c:2121: warning: initialization makes integer
from pointer without a cast
quickcam.c:2122: error: unknown field `open' specified
in initializer
quickcam.c:2122: warning: initialization from
incompatible pointer type
quickcam.c:2123: error: unknown field `close' specified
in initializer
quickcam.c:2124: error: unknown field `read' specified
in initializer
quickcam.c:2124: warning: initialization from
incompatible pointer type
quickcam.c:2125: error: unknown field `write' specified
in initializer
quickcam.c:2126: error: unknown field `ioctl' specified
in initializer
quickcam.c:2126: warning: initialization makes integer
from pointer without a cast
quickcam.c:2127: error: unknown field `mmap' specified
in initializer
quickcam.c:2127: warning: missing braces around initializer
quickcam.c:2127: warning: (near initialization for
`quickcam_template.lock')
quickcam.c:2127: warning: initialization makes integer
from pointer without a cast
quickcam.c: In function `usb_quickcam_configure':
quickcam.c:2224: warning: passing arg 2 of
`usb_driver_release_interface' from incompatible
pointer type
quickcam.c: In function `quickcam_probe':
quickcam.c:2243: error: request for member `altsetting'
in something not a structure or union
quickcam.c: In function `quickcam_disconnect':
quickcam.c:2303: warning: passing arg 2 of
`usb_driver_release_interface' from incompatible
pointer type
quickcam.c: At top level:
quickcam.c:2350: warning: initialization from
incompatible pointer type
quickcam.c:2351: warning: initialization from
incompatible pointer type
make: *** [quickcam.o] Fout 1
What should I do?
(Suse 9.1)
Logged In: NO
i also battled with a *boatload of make errs, the module finally
compiled and insmods just by commenting out line 813 of
qc-driver.c.
(SuSE 9.2)