On Fri, Jun 09, 2000 at 12:04:28PM +0200, abel deuring wrote:
> Benjamin Hell wrote:
> > Hi,
> >
> > I got the patch but now compilation fails:
> >
> [...]
> > At least I found out that the first error is due
> > to a unpatched call to scsi_cmd in unit_ready which
> > is still using the parameters of the unpatched scsi_cmd
> > function. I think, this must be a solaris thing because of
> > this block of code is enclosed in #if USE == SOLARIS_INTERFACE,
> > so you won't get in touch with this under Linux or so, but I
> > should better consign the analysis to the professionals :-)
>
> You are right, the compiler errors are specific to Solaris, but I had to
> fiddle with all OS specific parts of sanei_scsi.c in order to get a
> flexible command length handling.
>
> I hope that the attached patch against the version of sanei_scsi.c that
> produced these errors compiles without errors.
>
Hi,
Thanks for the patch, appears as if it works now,
at least I can use the scanner and get some pictures!
But there is still a small bug apparently introduced
by the first patch in the sharp backend:
gcc -I/usr/local/gimp/include -c -g -O2 -W -Wall -DSCSIBUFFERSIZE=131072
-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=sharp -DLIBDIR=/usr/local/lib/sane sharp.c -fPIC -DPIC -o
.libs/sharp.lo
sharp.c: In function ense_handler':
sharp.c:385:
X350' undeclared (first use in this function)
sharp.c:385: (Each undeclared identifier is reported only once
sharp.c:385: for each function it appears in.)
sharp.c:310: warning: unused parameter d'
sharp.c: In function et_max_scan_size':
sharp.c:1206:
X350' undeclared (first use in this function)
sharp.c: In function ttach':
sharp.c:1301:
X350' undeclared (first use in this function)
sharp.c: In function nit_options':
sharp.c:1779:
X350' undeclared (first use in this function)
sharp.c: In function ane_sharp_init':
sharp.c:2243: warning: unused parameter uthorize'
sharp.c: In function ane_sharp_get_devices':
sharp.c:2442: warning: unused parameter ocal_only'
sharp.c: In function ane_sharp_control_option':
sharp.c:2580: warning: unused variable '
sharp.c: In function end_gamma_tables':
sharp.c:3112:
X350' undeclared (first use in this function)
sharp.c: In function ane_sharp_start':
sharp.c:3467:
X350' undeclared (first use in this function)
sharp.c:3754: warning: int format, pid_t arg (arg 5)
sharp.c: In function ane_sharp_read':
sharp.c:4014:
X350' undeclared (first use in this function)
sharp.c: In function ane_sharp_set_io_mode':
sharp.c:4043: warning: unused parameter andle'
sharp.c:4043: warning: unused parameter on_blocking'
sharp.c: In function ane_sharp_get_select_fd':
sharp.c:4052: warning: unused parameter andle'
sharp.c:4052: warning: unused parameter d'
make[1]: *** [sharp.lo] Error 1
make[1]: Leaving directory /src/new/sane-1.0.2/backend'
make: *** [all-recursive] Error 1
Again, thanks a lot for your support!
Ben
-- ************************************************** ** Benjamin Hell ** ** ben@spectrum.uni-bielefeld.de ** ** http://coral.lili.uni-bielefeld.de/~ben ** ** University of Bielefeld - Germany ** ** Faculty for Linguistics and Literary Studies ** ** Computational Linguistics & Spoken Language ** **************************************************-- 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 : Fri Jun 09 2000 - 15:35:11 PDT