kopia lustrzana https://gitlab.com/sane-project/website
184 wiersze
6.4 KiB
HTML
184 wiersze
6.4 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="Sun Jun 11 07:41:51 2000" -->
|
|||
|
<!-- isoreceived="20000611144151" -->
|
|||
|
<!-- sent="Sun, 11 Jun 2000 16:25:34 +0200" -->
|
|||
|
<!-- isosent="20000611142534" -->
|
|||
|
<!-- name="abel deuring" -->
|
|||
|
<!-- email="a.deuring@satzbau-gmbh.de" -->
|
|||
|
<!-- subject="Re: Problems with sane-scsi" -->
|
|||
|
<!-- id="3943A15E.61C1F24E@satzbau-gmbh.de" -->
|
|||
|
<!-- inreplyto="20000610003000.A3119@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=<3943A15E.61C1F24E@satzbau-gmbh.de>"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
|
|||
|
<STRONG>Date:</STRONG> Sun Jun 11 2000 - 07:25:34 PDT
|
|||
|
<P>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0095.html">John Fremlin: "Re: Color problems with Microtek Scanmaker X6"</A>
|
|||
|
<UL>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0093.html">Steve Underwood: "Re: snapscan vs. acer 310S"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0099.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0099.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#94">[ date ]</A>
|
|||
|
<A HREF="index.html#94">[ thread ]</A>
|
|||
|
<A HREF="subject.html#94">[ subject ]</A>
|
|||
|
<A HREF="author.html#94">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<HR NOSHADE><P>
|
|||
|
<!-- body="start" -->
|
|||
|
<P>
|
|||
|
Benjamin Hell wrote:
|
|||
|
<BR>
|
|||
|
<P><EM>> Thanks for the patch, appears as if it works now,
|
|||
|
</EM><BR>
|
|||
|
<EM>> at least I can use the scanner and get some pictures!
|
|||
|
</EM><BR>
|
|||
|
<EM>> But there is still a small bug apparently introduced
|
|||
|
</EM><BR>
|
|||
|
<EM>> by the first patch in the sharp backend:
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> gcc -I/usr/local/gimp/include -c -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072
|
|||
|
</EM><BR>
|
|||
|
<EM>> -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
|
|||
|
</EM><BR>
|
|||
|
<EM>> -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
|
|||
|
</EM><BR>
|
|||
|
<EM>> -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
|
|||
|
</EM><BR>
|
|||
|
<EM>> -DBACKEND_NAME=sharp -DLIBDIR=/usr/local/lib/sane sharp.c -fPIC -DPIC -o
|
|||
|
</EM><BR>
|
|||
|
<EM>> .libs/sharp.lo
|
|||
|
</EM><BR>
|
|||
|
<EM>> sharp.c: In function ense_handler':
|
|||
|
</EM><BR>
|
|||
|
<EM>> sharp.c:385:
|
|||
|
</EM><BR>
|
|||
|
<EM>> X350' undeclared (first use in this function)
|
|||
|
</EM><BR>
|
|||
|
<EM>> sharp.c:385: (Each undeclared identifier is reported only once
|
|||
|
</EM><BR>
|
|||
|
<EM>> sharp.c:385: for each function it appears in.)
|
|||
|
</EM><BR>
|
|||
|
<P>Uuhhh... This proves that I am not a good bureaucrat. I wrote the patch
|
|||
|
<BR>
|
|||
|
to sanei_scsi.c in my "personal version" of the Sane package, which
|
|||
|
<BR>
|
|||
|
contains version 0.31 of the Sharp backend. After finishing and testing
|
|||
|
<BR>
|
|||
|
the patch (with a Sharp scanner...), I copied the files sanei_scsi.[ch],
|
|||
|
<BR>
|
|||
|
canon-scsi.c (or which was it??) and sharp.c to a directory containing
|
|||
|
<BR>
|
|||
|
the Sane sources version 1.0.2 (containing an older version of Sharp
|
|||
|
<BR>
|
|||
|
backend), and let diff run against the unpatched 1.0.2 version.
|
|||
|
<BR>
|
|||
|
Obviously, I forgot to copy sharp.h... That file should have an entry
|
|||
|
<BR>
|
|||
|
'JX350' in the enum list together with JX330, JX250 and so on. I attach
|
|||
|
<BR>
|
|||
|
another patch for sharp.h. (No, I'm not going to start a patch series
|
|||
|
<BR>
|
|||
|
like the one for the Columbia Appletalk package with more tha 100 patch
|
|||
|
<BR>
|
|||
|
files :) I'm only a little bit busy with other stuff right now.)
|
|||
|
<BR>
|
|||
|
<P>Anyway, its fine to hear that the patch now really works for Solaris,
|
|||
|
<BR>
|
|||
|
and FreeBSD. Thanks to you, Benjamin and Ben, for testing and reporting!
|
|||
|
<BR>
|
|||
|
<P>I would really appreciate it, if other people could test the patch for
|
|||
|
<BR>
|
|||
|
other Unixes. Of course it would be best, if the test is made with a
|
|||
|
<BR>
|
|||
|
Canon scanner, but the patch affects _all_ SCSI commands sent to any
|
|||
|
<BR>
|
|||
|
SCSI scanner. Therefore, a test with any SCSI scanner would help a lot.
|
|||
|
<BR>
|
|||
|
<P>Abel
|
|||
|
<BR>
|
|||
|
|
|||
|
<BR><P>
|
|||
|
--- ../../../sane-sharp-0.31/backend/sharp.h Mon Mar 6 08:57:30 2000
|
|||
|
<BR>
|
|||
|
+++ sharp.h Sun Mar 5 14:42:39 2000
|
|||
|
<BR>
|
|||
|
@@ -160,13 +160,12 @@
|
|||
|
<BR>
|
|||
|
|
|||
|
<BR>
|
|||
|
typedef enum
|
|||
|
<BR>
|
|||
|
{
|
|||
|
<BR>
|
|||
|
- /* JX250, JX330, JX350, JX610 are used as array indices, so the
|
|||
|
<BR>
|
|||
|
- corresponding numbers should start at 0
|
|||
|
<BR>
|
|||
|
+ /* JX250, JX330, JX610 are used as array indices, so the corresponding
|
|||
|
<BR>
|
|||
|
+ numbers should start at 0
|
|||
|
<BR>
|
|||
|
*/
|
|||
|
<BR>
|
|||
|
unknown = -1,
|
|||
|
<BR>
|
|||
|
JX250,
|
|||
|
<BR>
|
|||
|
JX330,
|
|||
|
<BR>
|
|||
|
- JX350,
|
|||
|
<BR>
|
|||
|
JX610
|
|||
|
<BR>
|
|||
|
}
|
|||
|
<BR>
|
|||
|
SHARP_Model;
|
|||
|
<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=<3943A15E.61C1F24E@satzbau-gmbh.de>">majordomo@mostang.com</A>
|
|||
|
</PRE>
|
|||
|
<P><!-- body="end" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<UL>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0095.html">John Fremlin: "Re: Color problems with Microtek Scanmaker X6"</A>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0093.html">Steve Underwood: "Re: snapscan vs. acer 310S"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0081.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0099.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0099.html">Benjamin Hell: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#94">[ date ]</A>
|
|||
|
<A HREF="index.html#94">[ thread ]</A>
|
|||
|
<A HREF="subject.html#94">[ subject ]</A>
|
|||
|
<A HREF="author.html#94">[ 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>Sun Jun 11 2000 - 07:42:59 PDT</EM>
|
|||
|
</EM>
|
|||
|
</SMALL>
|
|||
|
</BODY>
|
|||
|
</HTML>
|