scanner HP SCANJET 5100C no ubuntu 9.04

Iniciado por hzo, 18 de Julho de 2009, 23:20

tópico anterior - próximo tópico

hzo

Olá, preciso instalar o modulo ppscsi no ubuntu 9.04, para poder usar um scanner HP 5100C porta paralela, acontece que muito pesquisei e achei um site onde consegui instalar no ubuntu 8.04(inclusive achei na pesquisa do forum), porem no 9.04 não está dando certo, segui os procedimentos deste site :

http://www.porpoisehead.net/hi/?q=node/19


Porem na hora de instalar o ppscsi-beta2-20060424.tar.gz dá erro

hzo

o erro :

make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.28-13-generic'
  CC [M]  /home/hzo/ppscsi-beta2/ppscsi.o
In file included from /home/hzo/ppscsi-beta2/ppscsi.c:55:
/home/hzo/ppscsi-beta2/ppscsi.h:16:26: error: linux/config.h: Arquivo ou diretório inexistente
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_start':
/home/hzo/ppscsi-beta2/ppscsi.c:425: error: 'struct scsi_cmnd' has no member named 'use_sg'
/home/hzo/ppscsi-beta2/ppscsi.c:428: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c:434: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_update_sg':
/home/hzo/ppscsi-beta2/ppscsi.c:486: error: 'struct scatterlist' has no member named 'page'
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_engine':
/home/hzo/ppscsi-beta2/ppscsi.c:568: error: 'struct scsi_cmnd' has no member named 'use_sg'
/home/hzo/ppscsi-beta2/ppscsi.c:572: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c:573: error: 'struct scatterlist' has no member named 'page'
/home/hzo/ppscsi-beta2/ppscsi.c:576: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c:577: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/home/hzo/ppscsi-beta2/ppscsi.c:623: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_cleanup':
/home/hzo/ppscsi-beta2/ppscsi.c:818: error: 'struct scsi_cmnd' has no member named 'use_sg'
/home/hzo/ppscsi-beta2/ppscsi.c:819: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c:820: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_inquire':
/home/hzo/ppscsi-beta2/ppscsi.c:1017: error: 'struct scsi_cmnd' has no member named 'use_sg'
/home/hzo/ppscsi-beta2/ppscsi.c:1018: error: 'struct scsi_cmnd' has no member named 'request_buffer'
/home/hzo/ppscsi-beta2/ppscsi.c:1019: error: 'struct scsi_cmnd' has no member named 'request_bufflen'
/home/hzo/ppscsi-beta2/ppscsi.c:1148:39: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/home/hzo/ppscsi-beta2/ppscsi.c: In function 'ppsc_detect':
/home/hzo/ppscsi-beta2/ppscsi.c:1148: error: 'INIT_WORK' undeclared (first use in this function)
/home/hzo/ppscsi-beta2/ppscsi.c:1148: error: (Each undeclared identifier is reported only once
/home/hzo/ppscsi-beta2/ppscsi.c:1148: error: for each function it appears in.)
make[2]: ** [/home/hzo/ppscsi-beta2/ppscsi.o] Erro 1
make[1]: ** [_module_/home/hzo/ppscsi-beta2] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.28-13-generic'
make: ** [all] Erro 2

Tota

Citação de: hzo online 18 de Julho de 2009, 23:21
o erro :

make -C /lib/modules/`uname -r`/build M=`pwd` modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.28-13-generic'
  CC [M]  /home/hzo/ppscsi-beta2/ppscsi.o
In file included from /home/hzo/ppscsi-beta2/ppscsi.c:55:
/home/hzo/ppscsi-beta2/ppscsi.h:16:26: error: linux/config.h: Arquivo ou diretório inexistente


Este primeiro erro deve estar impedindo o prosseguimento dos demais

Crie um arquivo em branco chamado config.h e coloque em /inux, e tente "na unha"

[],s

hzo

resolvi o problema seguindo o tutorial deste site :

http://www.iadegesso.netsons.org/ppscsi0_92patch2_6_27up.html#ppscsiallegati



Ta em Italiano, mas nada que um tradutor não resolva, não esquecendo que é preciso editar o arquivo " /etc/modules ", colocando no final :

ppscsi
epst

abraços.