[sane-devel] failing make sane-backends-1.0.18; sanei_scsi question

Julien Michielsen julien at michkloo.xs4all.nl
Tue Jan 16 17:00:00 CET 2007


A couple of days ago I posted the message below. No one replied to it 
yet, so I may have been unclear, and I'll add a few sentences that may 
make my question clearer.
Before upgrading my SuSE from 10.1 to 10.2 my Epson Perfection 2580 
fotoscan worked fine, and gave me good quality scans. I was unable to 
get it installed on SuSE 10.2, appearantly because (as written below) it 
could not read ../mfpportctrl/mfpport.ko.  Indeed no subdirectory
./mfpportctrl exists under /lib/../drivers. I am afraid to show my 
ignorance with this question, but yet:
My system does not contain any scsi peripherals but stll appears to bomb 
on this sanei_scsi function. Points of error:
-1 Warning
sanei_scsi.c:781: warning: 'rsm_open_device' is deprecated (declared at 
/usr/include/resmgr.h:24)
program-line 781: fd = rsm_open_device(file, O_RDWR);
-2 Identical warning for line 1245
progl 1245: fd = rsm_open_device(dev, O_RDWR | O_EXCL | O_NONBLOCK);
-3 Error
sanei_scsi.c:1276: error: 'HZ' undeclared (first use in this function)
progl 1276:timeout = sane_scsicmd_timeout * HZ;

I reported the failure of SuSE 10.2 to get my Epson working to the 
bug-list (jan. 1st) but did not get any reply. My knowledge (and 
interest ;-( ) are at a too low level to go much deeper into this. Would 
somebody be able to give me a hint how to get this installed and 
running? Bypassing the sanei_scsi-function will not be an option, I suppose.
Thanks


Message from about a week ago:
> Today I started an attemp to install a self-made xsane, but allready 
> failed in the attempt to make sane-backends-1.0.18 .
> This is my first attempt of a "home-install" xsane. Before I obediently 
> installed the ready-made rpm's that came with my SuSE distribution, but 
> this time (SuSE 10.2) the system was unable to install. On january 1st I 
> posted a message to this list ("Anyone aware of mfpport.ko?"). The xsane 
> version that comes with SuSE 10.2 only gives "insmod: can't read
> '/lib/modules/2.6.18.2-34-default/kernel/drivers/mfpportctrl/mfpport.ko'", 
> and subsequently dies. I posted this to the suse-bugs list, but still 
> got no reply.
> So now I tried it myself, but already in the make process it bumps out.
> My motherboard is a Asus 8N-E with an Athlon 64+ processor.
> Scanner: Epson Perfection 2580 fotoscan
> The make-process appearantly breaks when it compiles sanei_scsi.c, which 
> in it's turn uses rsm_open_device. The compiler warns
> "sanei_scsi.c:781: warning: 'rsm_open_device' is deprecated (declared at 
> /usr/include/resmgr.h:24)"
> 
> the messages:
> 
> gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_REENTRANT 
> -DPATH_SAN
> E_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share
>           -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 
> -DV_MINOR=0 -g -O2 -W -Wall sanei_codec_bin.c
> gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_REENTRANT 
> -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d 
> -DPATH_SANE_DATA_DIR=/usr/local/share
>           -DPATH_SANE_LOCK_DIR=/usr/local/var/lock/sane -DV_MAJOR=1 
> -DV_MINOR=0 -g -O2 -W -Wall sanei_scsi.c
> sanei_scsi.c: In function 'get_max_buffer_size':
> sanei_scsi.c:781: warning: 'rsm_open_device' is deprecated (declared at 
> /usr/include/resmgr.h:24)
> sanei_scsi.c: In function 'sanei_scsi_open_extended':
> sanei_scsi.c:1245: warning: 'rsm_open_device' is deprecated (declared at 
> /usr/include/resmgr.h:24)
> sanei_scsi.c:1276: error: 'HZ' undeclared (first use in this function)
> sanei_scsi.c:1276: error: (Each undeclared identifier is reported only once
> sanei_scsi.c:1276: error: for each function it appears in.)
> sanei_scsi.c: In function 'lx_mk_devicename':
> sanei_scsi.c:2491: warning: 'rsm_open_device' is deprecated (declared at 
> /usr/include/resmgr.h:24)
> sanei_scsi.c: In function 'sanei_scsi_find_devices':
> sanei_scsi.c:2775: warning: assignment discards qualifiers from pointer 
> target type
> make[1]: *** [sanei_scsi.o] Error 1
> make[1]: Leaving directory `/home/julien/local/sane-backends-1.0.18/sanei'
> make: *** [all-recursive] Error 1
> 
> Anyone who might be able to help me getting rhis installed?
> Thanks
> 
> Julien


-- 
Julien Michielsen




More information about the sane-devel mailing list