sane-project-website/old-archive/2001-05/0035.html

226 wiersze
8.1 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: [dev] New and updated backends</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
<META NAME="Subject" CONTENT="Re: [dev] New and updated backends">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: [dev] New and updated backends</H1>
<!-- received="Wed May 2 14:00:30 2001" -->
<!-- isoreceived="20010502210030" -->
<!-- sent="Wed, 2 May 2001 23:09:15 +0200" -->
<!-- isosent="20010502210915" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="henning@meier-geinitz.de" -->
<!-- subject="Re: [dev] New and updated backends" -->
<!-- id="20010502230915.J10470@vortex.swb.de" -->
<!-- inreplyto="3AEF1252.CC3878A6@t-online.de" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20[dev]%20New%20and%20updated%20backends&In-Reply-To=&lt;20010502230915.J10470@vortex.swb.de&gt;"><EM>henning@meier-geinitz.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed May 02 2001 - 14:09:15 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0036.html">Curious Forestweaver: "Re: Driver Status, Vuego Brisa 640 USB."</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0034.html">Henning Meier-Geinitz: "Re: Canon backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0015.html">Karsten Festag: "Re: [dev] New and updated backends"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#35">[ date ]</A>
<A HREF="index.html#35">[ thread ]</A>
<A HREF="subject.html#35">[ subject ]</A>
<A HREF="author.html#35">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>On Tue, May 01, 2001 at 09:45:22PM +0200, Karsten Festag wrote:
<BR>
<EM>&gt; I want to contribute my new version (0.9) of the microtek2 backend which
</EM><BR>
<EM>&gt; I made based on the one from Bernd Schroeder.
</EM><BR>
<EM>&gt; I added support for the Microtek Phantom 330CX and Phantom 636CX
</EM><BR>
<EM>&gt; (both on parallel port with the ppscsi - kernelpatch).
</EM><BR>
<EM>&gt; Furthermore I have reports that the V6USL is working now, as well as a
</EM><BR>
<EM>&gt; Scanport sq300 (which is recognized as a phantom) and the
</EM><BR>
<EM>&gt; ScanMaker E3 Plus (also on parport).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; The file is on my homepage <A HREF="http://home.t-online.de/home/karsten.festag">http://home.t-online.de/home/karsten.festag</A>.
</EM><BR>
<EM>&gt; The latest version is microtek2_20010501.tar.gz. Please can you and
</EM><BR>
<EM>&gt; other
</EM><BR>
<EM>&gt; experienced programmers have a look on it and do some tests
</EM><BR>
<EM>&gt; (compilation...)?
</EM><BR>
<P>A quick look into the source code:
<BR>
<P>* Look at the CVS version of microtek.c, there are some modifications
<BR>
&nbsp;&nbsp;concerning including internal header files.
<BR>
<P>Compiling on Linux with the CVS version of SANE:
<BR>
<P>No problems but lots of warnings:
<BR>
make[1]: Wechsel in das Verzeichnis Verzeichnis <20>/usr/src/sane/sane-backends/backend<6E>
<BR>
rm -f .libs/microtek2.lo
<BR>
gcc -c -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -pedantic -ansi -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -DBACKEND_NAME=microtek2 -DLIBDIR=/usr/local/lib/sane microtek2.c -fPIC -DPIC -o .libs/microtek2.lo
<BR>
microtek2.c:4457: warning: string constant runs past end of line
<BR>
microtek2.c: In function `check_option':
<BR>
microtek2.c:1442: warning: cast discards qualifiers from pointer target type
<BR>
microtek2.c:1443: warning: cast discards qualifiers from pointer target type
<BR>
[more lines about this]
<BR>
microtek2.c: In function `scsi_read_shading':
<BR>
microtek2.c:4457: warning: ANSI C forbids newline in string constant
<BR>
microtek2.c: At top level:
<BR>
microtek2.c:5257: warning: no previous prototype for `write_shading_pnm'
<BR>
microtek2.c:5306: warning: no previous prototype for `write_cshading_pnm'
<BR>
microtek2.c: In function `calc_cx_shading_line':
<BR>
microtek2.c:6084: warning: ANSI C forbids newline in string constant
<BR>
microtek2.c:6085: warning: ANSI C forbids newline in string constant
<BR>
microtek2.c:6086: warning: ANSI C forbids newline in string constant
<BR>
microtek2.c:6087: warning: ANSI C forbids newline in string constant
<BR>
microtek2.c:6088: warning: ANSI C forbids newline in string constant
<BR>
<P>Irix6.2:
<BR>
<P>cc -c -g -DHAVE_CONFIG_H -I. -I. -I../include -I../include
<BR>
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-bin/etc/sane.d
<BR>
-DPATH_SANE_DATA_DIR=/tmp/sane-bin/share -DV_MAJOR=1 -DV_MINOR=0
<BR>
-DBACKEND_NAME=microtek2 -DLIBDIR=/tmp/sane-bin/lib/sane microtek2.c
<BR>
-DPIC -o .libs/microtek2.lo
<BR>
cfe: Error: microtek2.c: 4457: Unterminated string or character constant
<BR>
cfe: Error: microtek2.c: 4458: Unterminated string or character constant
<BR>
cfe: Error: microtek2.c: 6084: Unterminated string or character constant
<BR>
cfe: Error: microtek2.c: 6089: Unterminated string or character constant
<BR>
gmake[1]: *** [microtek2.lo] Error 1
<BR>
<P>Use something like
<BR>
<P>DBG(1, &quot;bla&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;bla&quot;
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;bla %d\n&quot;, number);
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
instead.
<BR>
<P>Otherwise no problems.
<BR>
<P>AIX 4.3/gcc:
<BR>
<P>Similar warnings like Linux, otherwise no problems.
<BR>
<P>AIX cc:
<BR>
<P>gmake[1]: Entering directory /tmp/sane/sane-backends/backend'
<BR>
cc -c -g -DHAVE_CONFIG_H -I. -I. -I../include -I../include
<BR>
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-bin/etc/sane.d
<BR>
-DPATH_SANE_DATA_DIR=/tmp/sane-bin/share -DV_MAJOR=1 -DV_MINOR=0
<BR>
-DBACKEND_NAME=microtek2 -DLIBDIR=/tmp/sane-bin/lib/sane microtek2.c
<BR>
-DPIC
<BR>
&quot;microtek2.c&quot;, line 4457.63: 1506-186 (S) String literal must be ended before the end of line.
<BR>
&quot;microtek2.c&quot;, line 4458.35: 1506-191 (E) The character \ is not a valid C source character.
<BR>
&quot;microtek2.c&quot;, line 4458.39: 1506-186 (S) String literal must be ended before the end of line.
<BR>
&quot;microtek2.c&quot;, line 4458.15: 1506-276 (S) Syntax error: possible missing ')'?
<BR>
&quot;microtek2.c&quot;, line 6084.41: 1506-186 (S) String literal must be ended before the end of line.
<BR>
&quot;microtek2.c&quot;, line 6089.39: 1506-191 (E) The character \ is not a valid C source character.
<BR>
&quot;microtek2.c&quot;, line 6089.43: 1506-186 (S) String literal must be ended before the end of line.
<BR>
&quot;microtek2.c&quot;, line 6085.14: 1506-276 (S) Syntax error: possible missing ')'?
<BR>
gmake[1]: *** [microtek2.lo] Error 1
<BR>
<P>Same as above.
<BR>
<P>Bye,
<BR>
&nbsp;Henning
<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:%20[dev]%20New%20and%20updated%20backends&In-Reply-To=&lt;20010502230915.J10470@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0036.html">Curious Forestweaver: "Re: Driver Status, Vuego Brisa 640 USB."</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0034.html">Henning Meier-Geinitz: "Re: Canon backend"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0015.html">Karsten Festag: "Re: [dev] New and updated backends"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#35">[ date ]</A>
<A HREF="index.html#35">[ thread ]</A>
<A HREF="subject.html#35">[ subject ]</A>
<A HREF="author.html#35">[ 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>Wed May 02 2001 - 14:01:51 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>