Hi,
On Tue, May 01, 2001 at 09:45:22PM +0200, Karsten Festag wrote:
> I want to contribute my new version (0.9) of the microtek2 backend which
> I made based on the one from Bernd Schroeder.
> I added support for the Microtek Phantom 330CX and Phantom 636CX
> (both on parallel port with the ppscsi - kernelpatch).
> Furthermore I have reports that the V6USL is working now, as well as a
> Scanport sq300 (which is recognized as a phantom) and the
> ScanMaker E3 Plus (also on parport).
>
> The file is on my homepage http://home.t-online.de/home/karsten.festag.
> The latest version is microtek2_20010501.tar.gz. Please can you and
> other
> experienced programmers have a look on it and do some tests
> (compilation...)?
A quick look into the source code:
* Look at the CVS version of microtek.c, there are some modifications
concerning including internal header files.
Compiling on Linux with the CVS version of SANE:
No problems but lots of warnings:
make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/sane/sane-backends/backend«
rm -f .libs/microtek2.lo
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
microtek2.c:4457: warning: string constant runs past end of line
microtek2.c: In function `check_option':
microtek2.c:1442: warning: cast discards qualifiers from pointer target type
microtek2.c:1443: warning: cast discards qualifiers from pointer target type
[more lines about this]
microtek2.c: In function `scsi_read_shading':
microtek2.c:4457: warning: ANSI C forbids newline in string constant
microtek2.c: At top level:
microtek2.c:5257: warning: no previous prototype for `write_shading_pnm'
microtek2.c:5306: warning: no previous prototype for `write_cshading_pnm'
microtek2.c: In function `calc_cx_shading_line':
microtek2.c:6084: warning: ANSI C forbids newline in string constant
microtek2.c:6085: warning: ANSI C forbids newline in string constant
microtek2.c:6086: warning: ANSI C forbids newline in string constant
microtek2.c:6087: warning: ANSI C forbids newline in string constant
microtek2.c:6088: warning: ANSI C forbids newline in string constant
Irix6.2:
cc -c -g -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-bin/etc/sane.d
-DPATH_SANE_DATA_DIR=/tmp/sane-bin/share -DV_MAJOR=1 -DV_MINOR=0
-DBACKEND_NAME=microtek2 -DLIBDIR=/tmp/sane-bin/lib/sane microtek2.c
-DPIC -o .libs/microtek2.lo
cfe: Error: microtek2.c: 4457: Unterminated string or character constant
cfe: Error: microtek2.c: 4458: Unterminated string or character constant
cfe: Error: microtek2.c: 6084: Unterminated string or character constant
cfe: Error: microtek2.c: 6089: Unterminated string or character constant
gmake[1]: *** [microtek2.lo] Error 1
Use something like
DBG(1, "bla"
"bla"
"bla %d\n", number);
instead.
Otherwise no problems.
AIX 4.3/gcc:
Similar warnings like Linux, otherwise no problems.
AIX cc:
gmake[1]: Entering directory /tmp/sane/sane-backends/backend'
cc -c -g -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/tmp/sane-bin/etc/sane.d
-DPATH_SANE_DATA_DIR=/tmp/sane-bin/share -DV_MAJOR=1 -DV_MINOR=0
-DBACKEND_NAME=microtek2 -DLIBDIR=/tmp/sane-bin/lib/sane microtek2.c
-DPIC
"microtek2.c", line 4457.63: 1506-186 (S) String literal must be ended before the end of line.
"microtek2.c", line 4458.35: 1506-191 (E) The character \ is not a valid C source character.
"microtek2.c", line 4458.39: 1506-186 (S) String literal must be ended before the end of line.
"microtek2.c", line 4458.15: 1506-276 (S) Syntax error: possible missing ')'?
"microtek2.c", line 6084.41: 1506-186 (S) String literal must be ended before the end of line.
"microtek2.c", line 6089.39: 1506-191 (E) The character \ is not a valid C source character.
"microtek2.c", line 6089.43: 1506-186 (S) String literal must be ended before the end of line.
"microtek2.c", line 6085.14: 1506-276 (S) Syntax error: possible missing ')'?
gmake[1]: *** [microtek2.lo] Error 1
Same as above.
Bye,
Henning
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Wed May 02 2001 - 14:01:51 PDT