Hi Petter!
I have downloaded sane-1.0.1 and had to make a few patches
to get it running under DEC Unix 4.0D. You find the patch
attached.
The former posted changes (14 Jun 1999 & 12 Aug 1999) were
not sufficient (esp. the sizeof(ccb) thing)!
The scanner (an HP6300C) works fine, so somebody could also
update the "Supported Platforms Page" as follows:
Latest SANE version tested: 1.0.1
Compiler: gcc 2.8.1
User-level SCSI support: yes
Shared Library Support: yes
Dynamic loading support: yes
X11 clients (xscanimage and xcam): xscanimage tested ok
GIMP support: untested
Have fun!
-- Christian Lorenz DFS Deutsche Flugsicherung GmbH fon: +49 6103 594 1650 Paul-Ehrlich-Str. 33 fax: +49 6103 594 1680 63225 Langen mailto:Christian.Lorenz@ast.dfs.de Germany --------------E99BBE5C4A8E8C9F7F3844B6 Content-Type: text/plain; charset=us-ascii; name="sane-1.0.1-DU4.0-patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sane-1.0.1-DU4.0-patch"diff -r -C 4 sane-1.0.1/backend/hp-scl.c sane-1.0.1-DU4.0/backend/hp-scl.c *** sane-1.0.1/backend/hp-scl.c Tue Mar 9 06:37:17 1999 --- sane-1.0.1-DU4.0/backend/hp-scl.c Tue Nov 2 17:50:23 1999 *************** *** 879,886 **** --- 879,888 ---- } quit: + close(outfd); + if ( image_buf ) sanei_hp_free ( image_buf ); if ( read_buf ) sanei_hp_free ( read_buf ); if (enable_requests && (reqs_completed < reqs_issued)) diff -r -C 4 sane-1.0.1/sanei/sanei_scsi.c sane-1.0.1-DU4.0/sanei/sanei_scsi.c *** sane-1.0.1/sanei/sanei_scsi.c Sat Apr 17 22:18:18 1999 --- sane-1.0.1-DU4.0/sanei/sanei_scsi.c Wed Nov 3 09:30:42 1999 *************** *** 676,683 **** --- 676,684 ---- for (fd = 0; fd < num_alloced; ++fd) if (!fd_info[fd].in_use) break; + fake_fd = 1; } #elif USE == DOMAINOS_INTERFACE { static int index; *************** *** 1873,1883 **** size_t cdb_size; cdb_size = CDB_SIZE (*(u_char *) src); ! memset (ccb, 0, sizeof (ccb)); ccb.cam_ch.my_addr = (CCB_HEADER *) & ccb; ! ccb.cam_ch.cam_ccb_len = sizeof (ccb); ccb.cam_ch.cam_func_code = XPT_SCSI_IO; ccb.cam_ch.cam_path_id = fd_info[fd].bus; ccb.cam_ch.cam_target_id = fd_info[fd].target; ccb.cam_ch.cam_target_lun = fd_info[fd].lun; --- 1874,1884 ---- size_t cdb_size; cdb_size = CDB_SIZE (*(u_char *) src); ! memset (&ccb, 0, sizeof (ccb)); ccb.cam_ch.my_addr = (CCB_HEADER *) & ccb; ! ccb.cam_ch.cam_ccb_len = sizeof(CCB_SCSIIO); ccb.cam_ch.cam_func_code = XPT_SCSI_IO; ccb.cam_ch.cam_path_id = fd_info[fd].bus; ccb.cam_ch.cam_target_id = fd_info[fd].target; ccb.cam_ch.cam_target_lun = fd_info[fd].lun; *************** *** 1905,1912 **** --- 1906,1914 ---- memcpy (&ccb.cam_cdb_io.cam_cdb_bytes[0], src, cdb_size); memset (&hdr, 0, sizeof (hdr)); hdr.uagt_ccb = (CCB_HEADER *) & ccb; + hdr.uagt_ccblen = sizeof(CCB_SCSIIO); hdr.uagt_buffer = ccb.cam_data_ptr; hdr.uagt_buflen = ccb.cam_dxfer_len; hdr.uagt_snsbuf = sense; hdr.uagt_snslen = sizeof (sense);
--------------E99BBE5C4A8E8C9F7F3844B6--
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com