sane-project-website/old-archive/2000-06/0077.html

158 wiersze
5.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Problems with sane-scsi</TITLE>
<META NAME="Author" CONTENT="abel deuring (a.deuring@satzbau-gmbh.de)">
<META NAME="Subject" CONTENT="Re: Problems with sane-scsi">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Problems with sane-scsi</H1>
<!-- received="Fri Jun 9 04:43:27 2000" -->
<!-- isoreceived="20000609114327" -->
<!-- sent="Fri, 09 Jun 2000 12:04:28 +0200" -->
<!-- isosent="20000609100428" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: Problems with sane-scsi" -->
<!-- id="3940C12C.A20DC9B7@satzbau-gmbh.de" -->
<!-- inreplyto="20000608182904.A29563@spectrum.uni-bielefeld.de" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20Problems%20with%20sane-scsi&In-Reply-To=&lt;3940C12C.A20DC9B7@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Jun 09 2000 - 03:04:28 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0078.html">Daniel James: "invalid argument?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0076.html">Jerome Hettich: "Re: Parallel Scanners (UMAX Astra 1220P)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0067.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#77">[ date ]</A>
<A HREF="index.html#77">[ thread ]</A>
<A HREF="subject.html#77">[ subject ]</A>
<A HREF="author.html#77">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Benjamin Hell wrote:
<BR>
<EM>&gt; Hi,
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I got the patch but now compilation fails:
</EM><BR>
<EM>&gt;
</EM><BR>
[...]
<BR>
<EM>&gt; At least I found out that the first error is due
</EM><BR>
<EM>&gt; to a unpatched call to scsi_cmd in unit_ready which
</EM><BR>
<EM>&gt; is still using the parameters of the unpatched scsi_cmd
</EM><BR>
<EM>&gt; function. I think, this must be a solaris thing because of
</EM><BR>
<EM>&gt; this block of code is enclosed in #if USE == SOLARIS_INTERFACE,
</EM><BR>
<EM>&gt; so you won't get in touch with this under Linux or so, but I
</EM><BR>
<EM>&gt; should better consign the analysis to the professionals :-)
</EM><BR>
<P>You are right, the compiler errors are specific to Solaris, but I had to
<BR>
fiddle with all OS specific parts of sanei_scsi.c in order to get a
<BR>
flexible command length handling.
<BR>
<P>I hope that the attached patch against the version of sanei_scsi.c that
<BR>
produced these errors compiles without errors.
<BR>
<P>Abel
<BR>
<BR><P>
--- sanei_scsi.c-orig Fri Jun 9 11:38:44 2000
<BR>
+++ sanei_scsi.c Fri Jun 9 11:49:43 2000
<BR>
@@ -3644,7 +3644,8 @@
<BR>
&nbsp;&nbsp;&nbsp;{0, 0, 0, 0, 0, 0};
<BR>
&nbsp;&nbsp;&nbsp;int status;
<BR>
&nbsp;
<BR>
- status = scsi_cmd (fd, test_unit_ready, sizeof (test_unit_ready), 0, 0, 1);
<BR>
+ status = scsi_cmd (fd, test_unit_ready, sizeof (test_unit_ready),
<BR>
+ 0, 0, 0, 0, 1);
<BR>
&nbsp;&nbsp;&nbsp;return (status == SANE_STATUS_GOOD);
<BR>
&nbsp;}
<BR>
&nbsp;
<BR>
@@ -3654,7 +3655,8 @@
<BR>
&nbsp;
<BR>
&nbsp;SANE_Status
<BR>
&nbsp;
<BR>
-sanei_scsi_req_enter2 (int fd, const void *src, size_t src_size,
<BR>
+sanei_scsi_req_enter2 (int fd, const void *cmd, size_t cmd_size,
<BR>
+ const void *src, size_t src_size,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;void *dst, size_t * dst_size, void **idp)
<BR>
&nbsp;{
<BR>
&nbsp;&nbsp;&nbsp;return sanei_scsi_cmd2 (fd, cmd, cmd_size, src, src_size, dst, dst_size);
<BR>
<P><P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Problems%20with%20sane-scsi&In-Reply-To=&lt;3940C12C.A20DC9B7@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0078.html">Daniel James: "invalid argument?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0076.html">Jerome Hettich: "Re: Parallel Scanners (UMAX Astra 1220P)"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0067.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#77">[ date ]</A>
<A HREF="index.html#77">[ thread ]</A>
<A HREF="subject.html#77">[ subject ]</A>
<A HREF="author.html#77">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri Jun 09 2000 - 04:44:18 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>