On Sunday 18 February 2007 16:29, Cristiane koda wrote: > Hi, > > I'm trying to install the uvcvideo driver on CENTOS, but I'm getting > some erros during make.. > The Kernel version is: 2.6.9-42.EL > > --------------------BEGIN--------------------- > [EMAIL PROTECTED] trunk]# make > Building USB Video Class driver... > make[1]: Entering directory `/usr/src/kernels/2.6.9-42.EL-i686' > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_driver.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_driver.c:44: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:134: error: syntax error > before "gfp_flags" > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `kzalloc': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: error: number of > arguments doesn't match prototype > include/linux/slab.h:101: error: prototype declaration > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:137: error: `size' undeclared > (first use in this function) > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:137: error: (Each undeclared > identifier is reported only once > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:137: error: for each function > it appears in.) > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:137: error: `gfp_flags' > undeclared (first use in this function) > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > make[2]: *** [/home/utrafe/uvcvideo-r75/trunk/uvc_driver.o] Error 1 > make[1]: *** [_module_/home/utrafe/uvcvideo-r75/trunk] Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.9-42.EL-i686' > make: *** [uvcvideo] Error 2 > ------------------END-------------------------------- > > So, as a test I modified the file uvc_compat.h, removing from the line > 134, "__nocast", then it compiles but I can't add the driver to the kernel, > using modprobe. > > Here is the output: > > ----------------BEGIN--------------------------- > [EMAIL PROTECTED] trunk]# make > Building USB Video Class driver... > make[1]: Entering directory `/usr/src/kernels/2.6.9-42.EL-i686' > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_driver.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_driver.c:44: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_queue.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_queue.c:24: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_v4l2.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_v4l2.c:28: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_video.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_video.c:24: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > /home/utrafe/uvcvideo-r75/trunk/uvc_video.c: In function > `uvc_video_enable': /home/utrafe/uvcvideo-r75/trunk/uvc_video.c:696: > warning: 'ep' might be used uninitialized in this function > CC [M] /home/utrafe/uvcvideo-r75/trunk/uvc_ctrl.o > In file included from /home/utrafe/uvcvideo-r75/trunk/uvcvideo.h:8, > from /home/utrafe/uvcvideo-r75/trunk/uvc_ctrl.c:24: > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:136: warning: static > declaration of 'kzalloc' follows non-static declaration > include/linux/slab.h:101: warning: previous declaration of 'kzalloc' was > here > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h: In function `vm_insert_page': > /home/utrafe/uvcvideo-r75/trunk/uvc_compat.h:158: warning: implicit > declaration of function `remap_pfn_range' > LD [M] /home/utrafe/uvcvideo-r75/trunk/uvcvideo.o > Building modules, stage 2. > MODPOST > *** Warning: "usb_get_intf" [/home/utrafe/uvcvideo-r75/trunk/uvcvideo.ko] > undefined! > *** Warning: "remap_pfn_range" > [/home/utrafe/uvcvideo-r75/trunk/uvcvideo.ko] undefined! > *** Warning: "usb_put_intf" [/home/utrafe/uvcvideo-r75/trunk/uvcvideo.ko] > undefined! > CC /home/utrafe/uvcvideo-r75/trunk/uvcvideo.mod.o > LD [M] /home/utrafe/uvcvideo-r75/trunk/uvcvideo.ko > make[1]: Leaving directory `/usr/src/kernels/2.6.9-42.EL-i686' > [EMAIL PROTECTED] trunk]# > ------------------END------------------------------- > > [EMAIL PROTECTED] trunk]# ls > Makefile uvc_ctrl.o uvc_queue.c uvc_v4l2.o uvcvideo.ko > uvc_video.o > uvc_compat.h uvc_driver.c uvc_queue.o uvc_video.c uvcvideo.mod.c > uvcvideo.o > uvc_ctrl.c uvc_driver.o uvc_v4l2.c uvcvideo.h uvcvideo.mod.o > [EMAIL PROTECTED] trunk]# modprobe uvcvideo > FATAL: Module uvcvideo not found. > > The dmesg output is: > usb 1-5: new high speed USB device using address 3 > usbcore: registered new driver snd-usb-audio > uvcvideo: Unknown symbol usb_put_intf > uvcvideo: Unknown symbol v4l_compat_translate_ioctl > uvcvideo: Unknown symbol remap_pfn_range > uvcvideo: Unknown symbol usb_get_intf > uvcvideo: Unknown symbol video_devdata > uvcvideo: Unknown symbol video_unregister_device > uvcvideo: Unknown symbol video_device_alloc > uvcvideo: Unknown symbol video_register_device > uvcvideo: Unknown symbol v4l2_ioctl_names > uvcvideo: Unknown symbol video_usercopy > uvcvideo: Unknown symbol video_device_release > > Any ideas? Any help is really appreciated.
Could you upgrade to Linux 2.6.15 or newer ? Older versions are not known to work properly with the driver. Cheers, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
