Hi!
> You should also make sure, that the header files sg.h and scsi.h in
> /usr/include/scsi/ and /usr/src/linux/include/scsi/ are identical.
Yes, they were not identical. So delete the /usr/include/scsi and made
a link to the kernel subdirectory and recompiled everything -> nothing changed.
> Well, I was most puzzled by the fact that Sane does not see a newer SG
> driver for kernel 2.2.17. So it could also help, if you have a look,
> which SG driver is installed for the 2.2.17 kernel. If necessary, you
> can download a recent version from http://www.torque.net/sg .
I've download the newest SG driver for Kernel 2.2 from torque.net (sg3017.tgz) and
recompiled the kernel and the sane-backend -> nothing changed -> still Segmentation Fault.
I saw, that sane is compiled with a bigger scsi buffer than 32k, so recompiled sane
with the appropriate configure-parameter to achieve, that it uses also 32k -> nothing changed.
That's the current debug-output of scanimage. I think nothing changed (detects old SG version!?) ... :-((((
# scanimage
[sanei_debug] Setting debug level of mustek to 255.
[mustek] SANE Mustek backend version 1.0 build 102 (SANE 1.0.4)
[mustek] sane_init: authorize != null
[mustek] sane_init: using sanei_scsi_open_extended
[mustek] sane_init: reading config file `mustek.conf'
[mustek] sane_init: config file line 1: ignoring comment line
[mustek] sane_init: config file line 2: ignoring empty line
[mustek] sane_init: config file line 3: ignoring comment line
[mustek] sane_init: config file line 4: strip-height set to 1 inches
[mustek] sane_init: freed
[mustek] sane_init: config file line 5: ignoring comment line
[mustek] sane_init: config file line 6: ignoring comment line
[mustek] sane_init: config file line 7: ignoring comment line
[mustek] sane_init: config file line 8: ignoring empty line
[mustek] sane_init: config file line 9: ignoring comment line
[mustek] sane_init: config file line 10: ignoring comment line
[mustek] sane_init: config file line 11: ignoring comment line
[mustek] sane_init: config file line 12: ignoring comment line
[mustek] sane_init: config file line 13: ignoring comment line
[mustek] sane_init: config file line 14: ignoring comment line
[mustek] sane_init: config file line 15: ignoring empty line
[mustek] sane_init: config file line 16: trying to attach `scsi SCANNER'
[sanei_debug] Setting debug level of sanei_scsi to 255.
[sanei_scsi] searched device is /dev/sg2
[mustek] attach: trying device /dev/sg2
[mustek] dev_open /dev/sg2
[sanei_debug] Setting debug level of sanei_scsi to 255.
[sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
[sanei_scsi] sanei_scsi_open: using old SG driver logic
[mustek] dev_open: /dev/sg2 is a SCSI device
[mustek] dev_open: wanted 8 kbytes, got 8 kbytes buffer
[mustek] attach: sending INQUIRY
[sanei_scsi] scsi_req_enter: entered 0x80506d8
[sanei_scsi] sanei_scsi.issue: 0x80506d8
[sanei_scsi] scsi_req_enter: queue_used: 1, queue_max: 1
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x80506d8
[sanei_scsi] sanei_scsi.issue: 0x80506d8
[sanei_scsi] sanei_scsi_req_wait: read 0 bytes
Segmentation fault
Regards, Christoph.
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Sun Feb 25 2001 - 15:15:58 PST