Erros de Compilação
ae turma estou tentando configuar meu modem, um intel 537EP mas dá alguns erros...
pegando uns tutoriais, eles mandam fazer download (baseado do cd) de uns arquivos q num sei bem pra q serve, segue a linha de comando e o erro:
sudo apt-get install build-essential linux-headers-386
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Quanto a compilação ele simplesmente não compila, dou o comando make 537 e retorna o seguinte erro:
Module precompile check
Current running kernel is: 2.6.20-15-generic
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: Arquivo ou diretório inexistente
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: Arquivo ou diretório inexistente
version.h matches running kernel
2.6.20-15-generic
make[1]: Entrando no diretório `/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv'
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv modules
make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.o
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In function ‘open’:
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:410: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:825:39: error: macro "DECLARE_WORK" passed 3 arguments, but takes just 2
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: At top level:
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:825:
warning: data definition has no type or storage class
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:825: warning: type defaults to ‘int’ in declaration of ‘DECLARE_WORK’
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:826:37: error: macro "DECLARE_WORK" passed 3 arguments, but takes just 2
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:826: warning: data definition has no type or storage class
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:826: warning: type defaults to ‘int’ in declaration of ‘DECLARE_WORK’
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In function ‘wake_up_interruptible_persistReadQ’:
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:840: error: ‘wait_wq’ undeclared (first use in this function)
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:840: error: (Each undeclared identifier is reported only once
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:840: error: for each function it appears in.)
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c: In function ‘interruptible_sleep_on_timeout_persistReadQ’:
/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.c:874: error: ‘wait_wq2’ undeclared (first use in this function)
make[3]: ** [/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv/coredrv.o] Erro 1
make[2]: ** [_module_/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv] Erro 2
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.20-15-generic'
make[1]: ** [537core_26] Erro 2
make[1]: Saindo do diretório `/root/Desktop/intel-537EP_secure-2.60.80.1/coredrv'
2.6.20-15-generic
Failed to build driver
Se alguem manjar aeee ficaria agradecido!