spca5xx - erro ao compilar com kernel 2.6.13

1. spca5xx - erro ao compilar com kernel 2.6.13

Paulo Roberto Baartz
Zoltral

(usa Ubuntu)

Enviado em 21/11/2005 - 23:54h

Tenho uma câmera digital Aiptek PocketCam 3M, que também funciona como webcam, que já consegui fazer funcionar no liveCD do Kanotix.

Para a webcam funcionar, preciso do driver spca5xx.

Já consegui compilar o driver em uma máquina com o Slackware 10.2 + kernel 2.4.31.

Mas tenho problema para compilar numa máquina com Slackware 10.2 + kernel 2.6.13.

Quando dou o comando make ocorre isto:

---------- Código ----------
[21:42:25][/home/paulo/Downloads/spca5xx-20051105]
root@atlantida $ 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/paulo/Downloads/spca5xx-20051105 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.13'

WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/paulo/Downloads/spca5xx-20051105/drivers/usb/spca5xx.o
In file included from ./include/asm/system.h:5,
from ./include/asm/processor.h:18,
from ./include/asm/thread_info.h:17,
from ./include/linux/thread_info.h:21,
from ./include/linux/spinlock.h:12,
from ./include/linux/capability.h:45,
from ./include/linux/sched.h:7,
from ./include/linux/module.h:10,
from /home/paulo/Downloads/spca5xx-20051105/drivers/usb/spca5xx.c:40:
./include/linux/kernel.h:10:20: stdarg.h: No such file or directory
In file included from ./include/asm/system.h:5,
from ./include/asm/processor.h:18,
from ./include/asm/thread_info.h:17,
from ./include/linux/thread_info.h:21,
from ./include/linux/spinlock.h:12,
from ./include/linux/capability.h:45,
from ./include/linux/sched.h:7,
from ./include/linux/module.h:10,
from /home/paulo/Downloads/spca5xx-20051105/drivers/usb/spca5xx.c:40:
./include/linux/kernel.h:102: error: parse error before "va_list"
./include/linux/kernel.h:106: error: parse error before "va_list"
./include/linux/kernel.h:110: error: parse error before "va_list"
./include/linux/kernel.h:115: error: parse error before "va_list"
./include/linux/kernel.h:127: error: parse error before "va_list"
In file included from /home/paulo/Downloads/spca5xx-20051105/drivers/usb/spca5xx.c:787:
/home/paulo/Downloads/spca5xx-20051105/drivers/usb/pac207.h: In function `pac207_start':
/home/paulo/Downloads/spca5xx-20051105/drivers/usb/pac207.h:161: warning: ISO C90 forbids mixed declarations and code
make[2]: *** [/home/paulo/Downloads/spca5xx-20051105/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/home/paulo/Downloads/spca5xx-20051105] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13'
make: *** [default] Error 2
[21:42:28][/home/paulo/Downloads/spca5xx-20051105]
root@atlantida $
---------- Fim do código ----------


As linhas do arquivo pac207.h mencionadas na mensagem de erro são estas:

Código: 158 - static void pac207_start(struct usb_spca50x *spca50x )
159 - {
160 - PDEBUG(0,"pac207_start called");
161 - __u8 buffer;
162 - __u8 mode;


Alguêm tem alguma idéia?

Paulo Baartz
Linux User #155047
Slackware Linux 10.2
Jabber: zoltral @ jabber . org


  


2. Re: spca5xx - erro ao compilar com kernel 2.6.13

Fernando Iury Alves Costa
fernandoiury

(usa Red Hat)

Enviado em 22/11/2005 - 09:22h

tbm tive o mesmo problema, daí utilizei o kernel 2.6.9 e funcionou beleza

;)






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts