[sane-devel] snapscan (agfa 1236s) not working since 1.0.4

Michal Maruška mmc@maruska.dyndns.org
10 Apr 2002 01:29:44 +0200


a few months ago i upgraded my 1.0.4 version. The agfa 1236s scanner stopped
working (hp 4c works well). Till now i have had to use the old version for that
model.

Broken sane says:

$ scanimage snapscan > /tmp/scan.pnm
[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.9
[snapscan] add_scsi_device((null))
[snapscan] add_scsi_device: Detected (kind of) a SCSI device
[snapscan] snapscani_check_device()
[snapscan] mini_inquiry
[snapscan] snapscan_cmd
[snapscan] snapscani_check_device: Is vendor "AGFA" model "SNAPSCAN 1236" a supported scanner?
[snapscan] snapscani_get_model_id(SNAPSCAN 1236, 4, 1)
[snapscan] snapscani_check_device: Autodected driver: SnapScan1236
[snapscan] snapscani_init_device_structure()
[snapscan] sane_snapscan_get_devices (0xbfffeb48, 0)
[snapscan] sane_snapscan_open (/dev/sgc, 0xbfffeb44)
[snapscan] find_device
[snapscan] sane_snapscan_open: Allocating 131072 bytes as scanner buffer.
[snapscan] sane_snapscan_open: allocated scanner structure at 0x80550f0
[snapscan] open_scanner
[snapscan] sane_snapscan_open: waiting for scanner to warm up.
[snapscan] wait_scanner_ready
[snapscan] test_unit_ready
[snapscan] snapscan_cmd
[snapscan] sane_snapscan_open: performing scanner self test.
[snapscan] send_diagnostic
[snapscan] snapscan_cmd
[snapscan] send_diagnostic: snapscan_cmd command failed: Error during device I/O
[snapscan] sane_snapscan_open: send_diagnostic reports Error during device I/O
scanimage: open of device snapscan:/dev/sgc failed: Error during device I/O
[snapscan] sane_snapscan_exit



The old version 1.0.4 (compiled 21/2/2001) works ok. Another 1.0.4 from June
2001 does not work. I don't recall the difference between those 2 compilations, sorry.

Today I tried to recompile the 1.0.[234] versions but i get:

In file included from ../sanei/linux_sg3_err.h:4,
                 from ../sanei/sanei_scsi.c:230:
/usr/include/linux/../scsi/sg.h:136: warning: `SG_DXFER_NONE' redefined
/usr/include/scsi/sg.h:72: warning: this is the location of the previous definition
/usr/include/linux/../scsi/sg.h:137: warning: `SG_DXFER_TO_DEV' redefined
/usr/include/scsi/sg.h:73: warning: this is the location of the previous definition
/usr/include/linux/../scsi/sg.h:138: warning: `SG_DXFER_FROM_DEV' redefined
/usr/include/scsi/sg.h:74: warning: this is the location of the previous definition
/usr/include/linux/../scsi/sg.h:142: warning: `SG_DXFER_TO_FROM_DEV' redefined
/usr/include/scsi/sg.h:78: warning: this is the location of the previous definition
In file included from ../sanei/linux_sg3_err.h:4,
                 from ../sanei/sanei_scsi.c:230:

.... 


what should i do ?