Quando tento compilar o modulo para minha webcam, recebo as seguintes menssagens:
[root@TOSHIBAM45S331 spca5xx-20060501]# make clean rm -r -f drivers/usb/*.o drivers/usb/.spcadecoder.o.cmd \ drivers/usb/.spca5xx.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i
[root@TOSHIBAM45S331 spca5xx-20060501]# make Building SPCA5XX driver for 2.5/2.6 kernel. Remember: you must have read/write access to your kernel source tree. make -C /lib/modules/`uname -r`/build SUBDIRS=/home/marcellino/spca5xx-20060501 CC=cc modules make[1]: Entrando no diretório `/usr/src/kernels/2.6.18-53.1.14.el5-i686' CC [M] /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.o In file included from /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:39: include/linux/config.h:6:2: warning: #warning Including config.h is deprecated. /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_open': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2392: error: implicit declaration of function 'video_devdata' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2392: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2397: error: implicit declaration of function 'video_get_drvdata' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2397: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_close': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2487: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_do_ioctl': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:2547: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_ioctl': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3091: error: implicit declaration of function 'video_usercopy' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_read': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3110: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_mmap': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3209: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: At top level: /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3261: error: variable 'spca50x_template' has initializer but incomplete type /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3262: error: unknown field 'owner' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3262: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3263: error: unknown field 'name' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3263: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3264: error: unknown field 'type' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3264: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3265: error: unknown field 'hardware' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3265: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3266: error: unknown field 'fops' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3266: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: unknown field 'release' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3268: error: 'video_device_release' undeclared here (not in a function) /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3268: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3270: error: unknown field 'minor' specified in initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: excess elements in struct initializer /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3270: warning: (near initialization for 'spca50x_template') /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'cd_to_spca50x': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3338: error: implicit declaration of function 'to_video_device' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3338: warning: initialization makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3339: warning: return makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca50x_create_sysfs': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:3448: error: implicit declaration of function 'video_device_create_file' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c: In function 'spca5xx_probe': /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5504: error: implicit declaration of function 'video_device_alloc' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5504: warning: assignment makes pointer from integer without a cast /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of 'sizeof' to incomplete type 'struct video_device' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of 'sizeof' to incomplete type 'struct video_device' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5507: error: invalid application of 'sizeof' to incomplete type 'struct video_device' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5509: error: dereferencing pointer to incomplete type /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5511: error: implicit declaration of function 'video_set_drvdata' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: implicit declaration of function 'video_register_device' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: 'VFL_TYPE_GRABBER' undeclared (first use in this function) /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: (Each undeclared identifier is reported only once /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5516: error: for each function it appears in.) /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5545: error: dereferencing pointer to incomplete type /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5546: error: implicit declaration of function 'video_device_release' /home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.c:5548: error: implicit declaration of function 'video_unregister_device' make[2]: ** [/home/marcellino/spca5xx-20060501/drivers/usb/spca5xx.o] Erro 1 make[1]: ** [_module_/home/marcellino/spca5xx-20060501] Erro 2 make[1]: Saindo do diretório `/usr/src/kernels/2.6.18-53.1.14.el5-i686' make: ** [default] Erro 2
Alguém tem idéia do que possa ser?
Sistema: CentOS 5.1
Abraços,
On Thu, May 1, 2008 at 1:10 PM, Marcellino Junior marcelljr@gmail.com wrote:
Quando tento compilar o modulo para minha webcam, recebo as seguintes menssagens:
<corte>
Alguém tem idéia do que possa ser?
Sistema: CentOS 5.1
Oi,
Veja se antes de dar "make" é possível executar ./configure
discuss-pt-br@lists.centos.org