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

235 wiersze
7.7 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!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="Fri Jun 9 15:31:06 2000" -->
<!-- isoreceived="20000609223106" -->
<!-- sent="Sat, 10 Jun 2000 00:30:00 +0200" -->
<!-- isosent="20000609223000" -->
<!-- name="Benjamin Hell" -->
<!-- email="ben@spectrum.uni-bielefeld.de" -->
<!-- subject="Re: Problems with sane-scsi" -->
<!-- id="20000610003000.A3119@spectrum.uni-bielefeld.de" -->
<!-- inreplyto="3940C12C.A20DC9B7@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=&lt;20000610003000.A3119@spectrum.uni-bielefeld.de&gt;"><EM>ben@spectrum.uni-bielefeld.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri Jun 09 2000 - 15:30:00 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0082.html">khk@khk.net: "Re: invalid argument?"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0080.html">david.naura@st.com: "Phantom Microtek 330CX"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0086.html">Ben Speirs: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0086.html">Ben Speirs: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0094.html">abel deuring: "Re: Problems with sane-scsi"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#81">[ date ]</A>
<A HREF="index.html#81">[ thread ]</A>
<A HREF="subject.html#81">[ subject ]</A>
<A HREF="author.html#81">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
On Fri, Jun 09, 2000 at 12:04:28PM +0200, abel deuring wrote:
<BR>
<EM>&gt; Benjamin Hell wrote:
</EM><BR>
<EM>&gt; &gt; Hi,
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; &gt; I got the patch but now compilation fails:
</EM><BR>
<EM>&gt; &gt;
</EM><BR>
<EM>&gt; [...]
</EM><BR>
<EM>&gt; &gt; At least I found out that the first error is due
</EM><BR>
<EM>&gt; &gt; to a unpatched call to scsi_cmd in unit_ready which
</EM><BR>
<EM>&gt; &gt; is still using the parameters of the unpatched scsi_cmd
</EM><BR>
<EM>&gt; &gt; function. I think, this must be a solaris thing because of
</EM><BR>
<EM>&gt; &gt; this block of code is enclosed in #if USE == SOLARIS_INTERFACE,
</EM><BR>
<EM>&gt; &gt; so you won't get in touch with this under Linux or so, but I
</EM><BR>
<EM>&gt; &gt; should better consign the analysis to the professionals :-)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; You are right, the compiler errors are specific to Solaris, but I had to
</EM><BR>
<EM>&gt; fiddle with all OS specific parts of sanei_scsi.c in order to get a
</EM><BR>
<EM>&gt; flexible command length handling.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I hope that the attached patch against the version of sanei_scsi.c that
</EM><BR>
<EM>&gt; produced these errors compiles without errors.
</EM><BR>
<EM>&gt;
</EM><BR>
<P>Hi,
<BR>
<P>Thanks for the patch, appears as if it works now,
<BR>
at least I can use the scanner and get some pictures!
<BR>
But there is still a small bug apparently introduced
<BR>
by the first patch in the sharp backend:
<BR>
<P>gcc -I/usr/local/gimp/include -c -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072
<BR>
-DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE
<BR>
-DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
<BR>
-DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0
<BR>
-DBACKEND_NAME=sharp -DLIBDIR=/usr/local/lib/sane sharp.c -fPIC -DPIC -o
<BR>
.libs/sharp.lo
<BR>
sharp.c: In function ense_handler':
<BR>
sharp.c:385:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c:385: (Each undeclared identifier is reported only once
<BR>
sharp.c:385: for each function it appears in.)
<BR>
sharp.c:310: warning: unused parameter d'
<BR>
sharp.c: In function et_max_scan_size':
<BR>
sharp.c:1206:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c: In function ttach':
<BR>
sharp.c:1301:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c: In function nit_options':
<BR>
sharp.c:1779:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c: In function ane_sharp_init':
<BR>
sharp.c:2243: warning: unused parameter uthorize'
<BR>
sharp.c: In function ane_sharp_get_devices':
<BR>
sharp.c:2442: warning: unused parameter ocal_only'
<BR>
sharp.c: In function ane_sharp_control_option':
<BR>
sharp.c:2580: warning: unused variable '
<BR>
sharp.c: In function end_gamma_tables':
<BR>
sharp.c:3112:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c: In function ane_sharp_start':
<BR>
sharp.c:3467:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c:3754: warning: int format, pid_t arg (arg 5)
<BR>
sharp.c: In function ane_sharp_read':
<BR>
sharp.c:4014:
<BR>
X350' undeclared (first use in this function)
<BR>
sharp.c: In function ane_sharp_set_io_mode':
<BR>
sharp.c:4043: warning: unused parameter andle'
<BR>
sharp.c:4043: warning: unused parameter on_blocking'
<BR>
sharp.c: In function ane_sharp_get_select_fd':
<BR>
sharp.c:4052: warning: unused parameter andle'
<BR>
sharp.c:4052: warning: unused parameter d'
<BR>
make[1]: *** [sharp.lo] Error 1
<BR>
make[1]: Leaving directory /src/new/sane-1.0.2/backend'
<BR>
make: *** [all-recursive] Error 1
<BR>
<P>Again, thanks a lot for your support!
<BR>
<P>Ben
<BR>
<PRE>
--
**************************************************
** Benjamin Hell **
** <A HREF="mailto:ben@spectrum.uni-bielefeld.de?Subject=Re:%20Problems%20with%20sane-scsi&In-Reply-To=&lt;20000610003000.A3119@spectrum.uni-bielefeld.de&gt;">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 &amp; 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=&lt;20000610003000.A3119@spectrum.uni-bielefeld.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0082.html">khk@khk.net: "Re: invalid argument?"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0080.html">david.naura@st.com: "Phantom Microtek 330CX"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0077.html">abel deuring: "Re: Problems with sane-scsi"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0086.html">Ben Speirs: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0086.html">Ben Speirs: "Re: Problems with sane-scsi"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0094.html">abel deuring: "Re: Problems with sane-scsi"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#81">[ date ]</A>
<A HREF="index.html#81">[ thread ]</A>
<A HREF="subject.html#81">[ subject ]</A>
<A HREF="author.html#81">[ 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 - 15:35:11 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>