kopia lustrzana https://gitlab.com/sane-project/website
158 wiersze
5.3 KiB
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=<3940C12C.A20DC9B7@satzbau-gmbh.de>"><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>> Hi,
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I got the patch but now compilation fails:
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
[...]
|
|
<BR>
|
|
<EM>> At least I found out that the first error is due
|
|
</EM><BR>
|
|
<EM>> to a unpatched call to scsi_cmd in unit_ready which
|
|
</EM><BR>
|
|
<EM>> is still using the parameters of the unpatched scsi_cmd
|
|
</EM><BR>
|
|
<EM>> function. I think, this must be a solaris thing because of
|
|
</EM><BR>
|
|
<EM>> this block of code is enclosed in #if USE == SOLARIS_INTERFACE,
|
|
</EM><BR>
|
|
<EM>> so you won't get in touch with this under Linux or so, but I
|
|
</EM><BR>
|
|
<EM>> 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>
|
|
{0, 0, 0, 0, 0, 0};
|
|
<BR>
|
|
int status;
|
|
<BR>
|
|
|
|
<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>
|
|
return (status == SANE_STATUS_GOOD);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
|
|
<BR>
|
|
@@ -3654,7 +3655,8 @@
|
|
<BR>
|
|
|
|
<BR>
|
|
SANE_Status
|
|
<BR>
|
|
|
|
<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>
|
|
void *dst, size_t * dst_size, void **idp)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
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=<3940C12C.A20DC9B7@satzbau-gmbh.de>">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>
|