Cannot compile gspca
Hello,
I have installed linux-image-2.6.28-1-686 from the kernel trunk and the
corresponding header files (after building linux-kbuild from source).
Everything works fine except my webcam. The webcam works perfectly under
the kernel 2.6.26-1-686 from debian/testing.
I have downloaded the gspca-source and when I try to compile, I get the
following error (tried make as well as m-a) :
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca
CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-1-686'
CC [M] /usr/src/modules/gspca/gspca_core.o
/usr/src/modules/gspca/gspca_core.c:54:27: error: asm/semaphore.h: No
such file or directory
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_ioctl’:
/usr/src/modules/gspca/gspca_core.c:2463: error: implicit declaration
of function ‘video_usercopy’
/usr/src/modules/gspca/gspca_core.c: At top level:
/usr/src/modules/gspca/gspca_core.c:2609: error: unknown field ‘owner’
specified in initializer
/usr/src/modules/gspca/gspca_core.c:2609: warning: initialization from
incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2611: error: unknown field ‘type’
specified in initializer
/usr/src/modules/gspca/gspca_core.c: In function
‘spca50x_create_sysfs’:
/usr/src/modules/gspca/gspca_core.c:2769: error: implicit declaration
of function ‘video_device_create_file’
/usr/src/modules/gspca/gspca_core.c:2780: error: implicit declaration
of function ‘video_device_remove_file’
/usr/src/modules/gspca/gspca_core.c: In function ‘spca5xx_probe’:
/usr/src/modules/gspca/gspca_core.c:4301: error: incompatible types in
assignment
make[2]: *** [/usr/src/modules/gspca/gspca_core.o] Error 1
make[1]: *** [_module_/usr/src/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-1-686'
make: *** [default] Error 2
Anybody has a fix for this or any pointers?
Regards,
--
Sridhar M.A. GPG KeyID : F6A35935
Fingerprint: D172 22C4 7CDC D9CD 62B5 55C1 2A69 D5D8 F6A3 5935
Practice yourself what you preach.
-- Titus Maccius Plautus
Reply to: