While the patch I just sent makes the code compile, I just tried using it to scan with the onscsi module (microtek scanner), and both xsane and xscanimage segfault. Backtrace from xsane: (gdb) bt #0 0xb6e33c45 in sanei_scsi_req_enter2 () from /usr/lib/sane/libsane-microtek2.so.1 #1 0xb6e341de in sanei_scsi_cmd2 () from /usr/lib/sane/libsane-microtek2.so.1 #2 0xb6e34270 in sanei_scsi_cmd () from /usr/lib/sane/libsane-microtek2.so.1 #3 0xb6e279de in sane_microtek2_start () from /usr/lib/sane/libsane-microtek2.so.1 #4 0xb7f31a8f in sane_dll_start () from /usr/lib/libsane.so.1 #5 0xb7f337bd in sane_start () from /usr/lib/libsane.so.1
It seems to be a bug in sane, but it seemed a good idea to mention it before this patch is applied. :-) Any reports of scanners which do work with this patch would probably be welcome, though, as they would mean that the patch is at least useful: without it the code doesn't even compile, anyway. :-) Thanks, Bas -- I encourage people to send encrypted e-mail (see http://www.gnupg.org). If you have problems reading my e-mail, use a better reader. Please send the central message of e-mails as plain text in the message body, not as HTML and definitely not as MS Word. Please do not use the MS Word format for attachments either. For more information, see http://pcbcn10.phys.rug.nl/e-mail.html
signature.asc
Description: Digital signature