kopia lustrzana https://gitlab.com/sane-project/website
241 wiersze
8.4 KiB
HTML
241 wiersze
8.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="Benjamin Hell (ben@spectrum.uni-bielefeld.de)">
|
|||
|
<META NAME="Subject" CONTENT="Re: Problems with sane-scsi">
|
|||
|
</HEAD>
|
|||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|||
|
<H1>Re: Problems with sane-scsi</H1>
|
|||
|
<!-- received="Thu Jun 8 09:27:13 2000" -->
|
|||
|
<!-- isoreceived="20000608162713" -->
|
|||
|
<!-- sent="Thu, 8 Jun 2000 18:29:04 +0200" -->
|
|||
|
<!-- isosent="20000608162904" -->
|
|||
|
<!-- name="Benjamin Hell" -->
|
|||
|
<!-- email="ben@spectrum.uni-bielefeld.de" -->
|
|||
|
<!-- subject="Re: Problems with sane-scsi" -->
|
|||
|
<!-- id="20000608182904.A29563@spectrum.uni-bielefeld.de" -->
|
|||
|
<!-- inreplyto="393F8D0B.381CE640@satzbau-gmbh.de" -->
|
|||
|
<STRONG>From:</STRONG> Benjamin Hell (<A HREF="mailto:ben@spectrum.uni-bielefeld.de?Subject=Re:%20Problems%20with%20sane-scsi&In-Reply-To=<20000608182904.A29563@spectrum.uni-bielefeld.de>"><EM>ben@spectrum.uni-bielefeld.de</EM></A>)<BR>
|
|||
|
<STRONG>Date:</STRONG> Thu Jun 08 2000 - 09:29:04 PDT
|
|||
|
<P>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0068.html">Henning Meier-Geinitz: "Re: sane.init() and version_code"</A>
|
|||
|
<UL>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0066.html">Ashley Gittins: "Re: Saned and Inetd not getting along - at all"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0063.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#67">[ date ]</A>
|
|||
|
<A HREF="index.html#67">[ thread ]</A>
|
|||
|
<A HREF="subject.html#67">[ subject ]</A>
|
|||
|
<A HREF="author.html#67">[ author ]</A>
|
|||
|
</UL>
|
|||
|
<HR NOSHADE><P>
|
|||
|
<!-- body="start" -->
|
|||
|
<P>
|
|||
|
On Thu, Jun 08, 2000 at 02:09:47PM +0200, abel deuring wrote:
|
|||
|
<BR>
|
|||
|
<EM>> Benjamin Hell wrote:
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> > Today I tried to use a Canon CanoScan 2700F with
|
|||
|
</EM><BR>
|
|||
|
<EM>> > sane 1.0.2 on a Ultra Sparc 5 with Solaris 7.
|
|||
|
</EM><BR>
|
|||
|
<EM>> >
|
|||
|
</EM><BR>
|
|||
|
<EM>> > I got the newest sg-driver from J"org Schily and
|
|||
|
</EM><BR>
|
|||
|
<EM>> > the most recent driver for the 2700F. I compiled
|
|||
|
</EM><BR>
|
|||
|
<EM>> > sane and find-scanner correctly reports:
|
|||
|
</EM><BR>
|
|||
|
<EM>> [...]
|
|||
|
</EM><BR>
|
|||
|
<EM>> > [canon] attach: sending GET SCAN MODE for scan control conditions
|
|||
|
</EM><BR>
|
|||
|
<EM>> > sanei_scsi.c:3456: failed assertion 'Cdb_size == src_size'
|
|||
|
</EM><BR>
|
|||
|
<EM>> > zsh: IOT instruction (core dumped) scanimage -L
|
|||
|
</EM><BR>
|
|||
|
<EM>> >
|
|||
|
</EM><BR>
|
|||
|
<EM>> > Does anybody know what's going on here and perhaps
|
|||
|
</EM><BR>
|
|||
|
<EM>> > even knows a cure??
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> Benjamin,
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<EM>> The problem is, that the (vendor specific) GET SCAN MODE command uses an
|
|||
|
</EM><BR>
|
|||
|
<EM>> "unusual" command length, which cannot be handled properly in the recent
|
|||
|
</EM><BR>
|
|||
|
<EM>> Sane distributions. Please try this patch (mainly to sanei_scsi.c and to
|
|||
|
</EM><BR>
|
|||
|
<EM>> the Canon backend):
|
|||
|
</EM><BR>
|
|||
|
<EM>> <A HREF="http://www.mostang.com/mail-archive/sane-devel/2000-05/0057.html">http://www.mostang.com/mail-archive/sane-devel/2000-05/0057.html</A> .
|
|||
|
</EM><BR>
|
|||
|
<EM>> Please note, that I have only been able to test the patch with Linux; it
|
|||
|
</EM><BR>
|
|||
|
<EM>> could therefore of course be that I introduced another bug in the parts
|
|||
|
</EM><BR>
|
|||
|
<EM>> of sanei_scsi.c for other Unixes. But at least you should get a
|
|||
|
</EM><BR>
|
|||
|
<EM>> different error :)
|
|||
|
</EM><BR>
|
|||
|
<EM>>
|
|||
|
</EM><BR>
|
|||
|
<P>Hi,
|
|||
|
<BR>
|
|||
|
<P>I got the patch but now compilation fails:
|
|||
|
<BR>
|
|||
|
<P>gcc -I/usr/local/gimp/include -c -DHAVE_CONFIG_H -I. -I. -I../include
|
|||
|
<BR>
|
|||
|
-I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
|
|||
|
<BR>
|
|||
|
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W
|
|||
|
<BR>
|
|||
|
-Wall -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC -o
|
|||
|
<BR>
|
|||
|
.libs/sanei_scsi.lo
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: In function nit_ready':
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3647: warning: passing arg 6 of csi_cmd' makes pointer from
|
|||
|
<BR>
|
|||
|
integer without a cast
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3647: too few arguments to function csi_cmd'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: At top level:
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3659: conflicting types for anei_scsi_req_enter2'
|
|||
|
<BR>
|
|||
|
../include/sane/sanei_scsi.h:121: previous declaration of
|
|||
|
<BR>
|
|||
|
anei_scsi_req_enter2'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: In function anei_scsi_req_enter2':
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3660: md' undeclared (first use in this function)
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3660: (Each undeclared identifier is reported only once
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3660: for each function it appears in.)
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3660: md_size' undeclared (first use in this function)
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3658: warning: unused parameter dp'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: In function anei_scsi_req_wait':
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3664: warning: unused parameter d'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: In function anei_scsi_req_enter':
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3689: warning: passing arg 5 of anei_scsi_req_enter2' makes
|
|||
|
<BR>
|
|||
|
point
|
|||
|
<BR>
|
|||
|
er from integer without a cast
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3689: too many arguments to function anei_scsi_req_enter2'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: In function anei_scsi_find_devices':
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3713: warning: unused parameter indvendor'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3713: warning: unused parameter indmodel'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3714: warning: unused parameter indtype'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3715: warning: unused parameter indbus'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3715: warning: unused parameter indchannel'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3715: warning: unused parameter indid'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3715: warning: unused parameter indlun'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:3716: warning: unused parameter ttach'
|
|||
|
<BR>
|
|||
|
sanei_scsi.c: At top level:
|
|||
|
<BR>
|
|||
|
sanei_scsi.c:717: warning: g_version' defined but not used
|
|||
|
<BR>
|
|||
|
make[1]: *** [sanei_scsi.o] Error 1
|
|||
|
<BR>
|
|||
|
make[1]: Leaving directory /src/new/sane-1.0.2/sanei'
|
|||
|
<BR>
|
|||
|
make: *** [all-recursive] Error 1
|
|||
|
<BR>
|
|||
|
<P>At least I found out that the first error is due
|
|||
|
<BR>
|
|||
|
to a unpatched call to scsi_cmd in unit_ready which
|
|||
|
<BR>
|
|||
|
is still using the parameters of the unpatched scsi_cmd
|
|||
|
<BR>
|
|||
|
function. I think, this must be a solaris thing because of
|
|||
|
<BR>
|
|||
|
this block of code is enclosed in #if USE == SOLARIS_INTERFACE,
|
|||
|
<BR>
|
|||
|
so you won't get in touch with this under Linux or so, but I
|
|||
|
<BR>
|
|||
|
should better consign the analysis to the professionals :-)
|
|||
|
<BR>
|
|||
|
<P>Ben
|
|||
|
<BR>
|
|||
|
<P><PRE>
|
|||
|
--
|
|||
|
**************************************************
|
|||
|
** Benjamin Hell **
|
|||
|
** <A HREF="mailto:ben@spectrum.uni-bielefeld.de?Subject=Re:%20Problems%20with%20sane-scsi&In-Reply-To=<20000608182904.A29563@spectrum.uni-bielefeld.de>">ben@spectrum.uni-bielefeld.de</A> **
|
|||
|
** <A HREF="http://coral.lili.uni-bielefeld.de/~ben">http://coral.lili.uni-bielefeld.de/~ben</A> **
|
|||
|
** University of Bielefeld - Germany **
|
|||
|
** Faculty for Linguistics and Literary Studies **
|
|||
|
** Computational Linguistics & Spoken Language **
|
|||
|
**************************************************
|
|||
|
<P><P>--
|
|||
|
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=<20000608182904.A29563@spectrum.uni-bielefeld.de>">majordomo@mostang.com</A>
|
|||
|
</PRE>
|
|||
|
<P><!-- body="end" -->
|
|||
|
<HR NOSHADE>
|
|||
|
<UL>
|
|||
|
<!-- next="start" -->
|
|||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0068.html">Henning Meier-Geinitz: "Re: sane.init() and version_code"</A>
|
|||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0066.html">Ashley Gittins: "Re: Saned and Inetd not getting along - at all"</A>
|
|||
|
<LI><STRONG>In reply to:</STRONG> <A HREF="0063.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- nextthread="start" -->
|
|||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
|
|||
|
<!-- reply="end" -->
|
|||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|||
|
<A HREF="date.html#67">[ date ]</A>
|
|||
|
<A HREF="index.html#67">[ thread ]</A>
|
|||
|
<A HREF="subject.html#67">[ subject ]</A>
|
|||
|
<A HREF="author.html#67">[ 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>Thu Jun 08 2000 - 09:28:15 PDT</EM>
|
|||
|
</EM>
|
|||
|
</SMALL>
|
|||
|
</BODY>
|
|||
|
</HTML>
|