I have a 2.5.74 kernel with the fixe for modules ( "apt-get install module-init-tools" thx debian ;)
But when i am compil the driver ( 0.5.1 or 0.40b ) i have many errors :
root@neo:/root/qc-usb-0.5.1 # USER_OPT=-DNDEBUG make all
cc -I/lib/modules/2.5.74/build/include -nostdinc -iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall -Wstrict-prototypes -Wno-trigraphs -DNDEBUG -pipe -c qc-driver.c
In file included from /lib/modules/2.5.74/build/include/linux/irq.h:19,
from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/asm/irq.h:16:25: irq_vectors.h: Aucun fichier ou rpertoire de ce type
In file included from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/linux/irq.h:69: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.5.74/build/include/linux/irq.h:71,
from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/asm/hw_irq.h:27: `NR_IRQS' undeclared here (not in a function)
/lib/modules/2.5.74/build/include/asm/hw_irq.h:30: `NR_IRQS' undeclared here (not in a function)
qc-driver.c:68:27: linux/wrapper.h: Aucun fichier ou rpertoire de ce type
qc-driver.c:145: warning: type defaults to `int' in declaration of `EXPORT_NO_SYMBOLS'
qc-driver.c:145: warning: data definition has no type or storage class
qc-driver.c: In function `qc_i2c_nextpacket':
qc-driver.c:483: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_i2c_init':
qc-driver.c:650: too few arguments to function `usb_alloc_urb'
qc-driver.c:660: structure has no member named `next'
qc-driver.c: In function `qc_stream_add':
qc-driver.c:1439: warning: deprecated use of label at end of compound statement
qc-driver.c: In function `qc_isoc_handler':
qc-driver.c:1527: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_isoc_start':
qc-driver.c:1564: too few arguments to function `usb_alloc_urb'
qc-driver.c:1572: `USB_ISO_ASAP' undeclared (first use in this function)
qc-driver.c:1572: (Each undeclared identifier is reported only once
qc-driver.c:1572: for each function it appears in.)
qc-driver.c:1573: warning: assignment from incompatible pointer type
qc-driver.c:1595: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_v4l_open':
qc-driver.c:1950: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:1990: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: In function `qc_v4l_close':
qc-driver.c:2031: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: At top level:
qc-driver.c:2543: unknown field `initialize' specified in initializer
qc-driver.c:2543: warning: initialization makes integer from pointer without a cast
qc-driver.c:2544: unknown field `open' specified in initializer
qc-driver.c:2544: warning: initialization from incompatible pointer type
qc-driver.c:2545: unknown field `close' specified in initializer
qc-driver.c:2546: unknown field `read' specified in initializer
qc-driver.c:2546: warning: initialization makes integer from pointer without a cast
qc-driver.c:2547: unknown field `write' specified in initializer
qc-driver.c:2547: warning: missing braces around initializer
qc-driver.c:2547: warning: (near initialization for `qc_v4l_template.lock')
qc-driver.c:2547: warning: initialization makes integer from pointer without a cast
qc-driver.c:2548: unknown field `ioctl' specified in initializer
qc-driver.c:2548: warning: initialization makes integer from pointer without a cast
qc-driver.c:2548: initializer element is not computable at load time
qc-driver.c:2548: (near initialization for `qc_v4l_template.devfs_name[0]')
qc-driver.c:2549: initializer element is not constant
qc-driver.c:2549: (near initialization for `qc_v4l_template.devfs_name')
qc-driver.c:2549: unknown field `mmap' specified in initializer
qc-driver.c:2549: warning: excess elements in struct initializer
qc-driver.c:2549: warning: (near initialization for `qc_v4l_template')
qc-driver.c:2550: unknown field `poll' specified in initializer
qc-driver.c:2550: warning: excess elements in struct initializer
qc-driver.c:2550: warning: (near initialization for `qc_v4l_template')
qc-driver.c:2567: warning: initialization from incompatible pointer type
qc-driver.c:2568: warning: initialization from incompatible pointer type
qc-driver.c: In function `qc_usb_probe':
qc-driver.c:2756: warning: assignment from incompatible pointer type
qc-driver.c:2771: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:2774: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: In function `qc_usb_disconnect':
qc-driver.c:2813: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:2837: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
make: *** [qc-driver.o] Erreur 1
Help me please ..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have a 2.5.74 kernel with the fixe for modules ( "apt-get install module-init-tools" thx debian ;)
But when i am compil the driver ( 0.5.1 or 0.40b ) i have many errors :
root@neo:/root/qc-usb-0.5.1 # USER_OPT=-DNDEBUG make all
cc -I/lib/modules/2.5.74/build/include -nostdinc -iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall -Wstrict-prototypes -Wno-trigraphs -DNDEBUG -pipe -c qc-driver.c
In file included from /lib/modules/2.5.74/build/include/linux/irq.h:19,
from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/asm/irq.h:16:25: irq_vectors.h: Aucun fichier ou rpertoire de ce type
In file included from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/linux/irq.h:69: `NR_IRQS' undeclared here (not in a function)
In file included from /lib/modules/2.5.74/build/include/linux/irq.h:71,
from /lib/modules/2.5.74/build/include/asm/hardirq.h:6,
from /lib/modules/2.5.74/build/include/linux/interrupt.h:10,
from /lib/modules/2.5.74/build/include/linux/usb.h:15,
from quickcam.h:20,
from qc-driver.c:47:
/lib/modules/2.5.74/build/include/asm/hw_irq.h:27: `NR_IRQS' undeclared here (not in a function)
/lib/modules/2.5.74/build/include/asm/hw_irq.h:30: `NR_IRQS' undeclared here (not in a function)
qc-driver.c:68:27: linux/wrapper.h: Aucun fichier ou rpertoire de ce type
qc-driver.c:145: warning: type defaults to `int' in declaration of `EXPORT_NO_SYMBOLS'
qc-driver.c:145: warning: data definition has no type or storage class
qc-driver.c: In function `qc_i2c_nextpacket':
qc-driver.c:483: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_i2c_init':
qc-driver.c:650: too few arguments to function `usb_alloc_urb'
qc-driver.c:660: structure has no member named `next'
qc-driver.c: In function `qc_stream_add':
qc-driver.c:1439: warning: deprecated use of label at end of compound statement
qc-driver.c: In function `qc_isoc_handler':
qc-driver.c:1527: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_isoc_start':
qc-driver.c:1564: too few arguments to function `usb_alloc_urb'
qc-driver.c:1572: `USB_ISO_ASAP' undeclared (first use in this function)
qc-driver.c:1572: (Each undeclared identifier is reported only once
qc-driver.c:1572: for each function it appears in.)
qc-driver.c:1573: warning: assignment from incompatible pointer type
qc-driver.c:1595: too few arguments to function `usb_submit_urb'
qc-driver.c: In function `qc_v4l_open':
qc-driver.c:1950: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:1990: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: In function `qc_v4l_close':
qc-driver.c:2031: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: At top level:
qc-driver.c:2543: unknown field `initialize' specified in initializer
qc-driver.c:2543: warning: initialization makes integer from pointer without a cast
qc-driver.c:2544: unknown field `open' specified in initializer
qc-driver.c:2544: warning: initialization from incompatible pointer type
qc-driver.c:2545: unknown field `close' specified in initializer
qc-driver.c:2546: unknown field `read' specified in initializer
qc-driver.c:2546: warning: initialization makes integer from pointer without a cast
qc-driver.c:2547: unknown field `write' specified in initializer
qc-driver.c:2547: warning: missing braces around initializer
qc-driver.c:2547: warning: (near initialization for `qc_v4l_template.lock')
qc-driver.c:2547: warning: initialization makes integer from pointer without a cast
qc-driver.c:2548: unknown field `ioctl' specified in initializer
qc-driver.c:2548: warning: initialization makes integer from pointer without a cast
qc-driver.c:2548: initializer element is not computable at load time
qc-driver.c:2548: (near initialization for `qc_v4l_template.devfs_name[0]')
qc-driver.c:2549: initializer element is not constant
qc-driver.c:2549: (near initialization for `qc_v4l_template.devfs_name')
qc-driver.c:2549: unknown field `mmap' specified in initializer
qc-driver.c:2549: warning: excess elements in struct initializer
qc-driver.c:2549: warning: (near initialization for `qc_v4l_template')
qc-driver.c:2550: unknown field `poll' specified in initializer
qc-driver.c:2550: warning: excess elements in struct initializer
qc-driver.c:2550: warning: (near initialization for `qc_v4l_template')
qc-driver.c:2567: warning: initialization from incompatible pointer type
qc-driver.c:2568: warning: initialization from incompatible pointer type
qc-driver.c: In function `qc_usb_probe':
qc-driver.c:2756: warning: assignment from incompatible pointer type
qc-driver.c:2771: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:2774: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
qc-driver.c: In function `qc_usb_disconnect':
qc-driver.c:2813: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:481)
qc-driver.c:2837: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /lib/modules/2.5.74/build/include/linux/module.h:493)
make: *** [qc-driver.o] Erreur 1
Help me please ..
your running 2.5.72 it is an incomplete operating system blah blah blah.. =)
get a 2.4.x
www.kernel.org