Re: Canon backend

From: Henning Meier-Geinitz (henning@meier-geinitz.de)
Date: Wed May 02 2001 - 14:09:37 PDT

  • Next message: Henning Meier-Geinitz: "Re: [dev] New and updated backends"

    Hi,

    On Wed, May 02, 2001 at 09:52:24PM +0000, Deiters wrote:
    > > Should/will this be included into the SANE CVS?
    > >
    >
    > I hope so. Whoever of the Grand Masters of SANE is reading this:
    > Please accept our humble offering. :-)

    Not a grand master :-) but:

    Have you tried to contact the original authors? At least Manuel Panea
    is marked as active but I don't know if this is still true.

    Can you update the manpage?

    Shouldn't the FB620S be added to canon.desc? The version number is 0.1
    in canon.desc. Shouldn't this number be increased?

    Ok, I'm trying to compile your backend on Linux/gcc with the CVS
    version of SANE:

    making all in backend
    make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/sane/sane-backends/backend«
    rm -f .libs/canon.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=canon -DLIBDIR=/usr/local/lib/sane canon.c -fPIC -DPIC -o .libs/canon.lo
    In file included from canon.c:201:
    canon-scsi.c: In function `set_density_curve_fs2710':
    canon-scsi.c:643: warning: unused parameter `buf_size'
    canon-scsi.c: In function `set_parameters_fs2710':
    canon-scsi.c:686: parse error before `;'
    canon-scsi.c:686: parse error before `;'
    [...]

    After removing a ";" in canon.h (MIN, MAX) compilation works. Please
    check the other warnings:
    make[1]: Wechsel in das Verzeichnis Verzeichnis »/usr/src/sane/sane-backends/backend«
    rm -f .libs/canon.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=canon -DLIBDIR=/usr/local/lib/sane canon.c -fPIC -DPIC -o .libs/canon.lo
    In file included from canon.c:201:
    canon-scsi.c: In function `set_density_curve_fs2710':
    canon-scsi.c:643: warning: unused parameter `buf_size'
    In file included from canon.c:2342:
    canon-sane.c: In function `sane_canon_init':
    canon-sane.c:4: warning: unused parameter `authorize'
    canon-sane.c: In function `sane_canon_exit':
    canon-sane.c:56: warning: cast discards qualifiers from pointer target type
    canon-sane.c:57: warning: cast discards qualifiers from pointer target type
    canon-sane.c: In function `sane_canon_get_devices':
    canon-sane.c:67: warning: unused parameter `local_only'
    canon-sane.c: At top level:
    canon-sane.c:1596: warning: no previous prototype for `sane_read_direct'
    canon-sane.c:1633: warning: no previous prototype for `read_fs2710'
    canon-sane.c: In function `read_fs2710':
    canon-sane.c:1647: warning: comparison between signed and unsigned
    canon-sane.c:1672: warning: pointer targets in passing arg 3 of `read_data' differ in signedness
    canon-sane.c:1685: warning: pointer targets in passing arg 3 of `read_data' differ in signedness
    canon-sane.c: In function `sane_canon_set_io_mode':
    canon-sane.c:1849: warning: unused parameter `handle'
    canon-sane.c:1849: warning: unused parameter `non_blocking'
    canon-sane.c: In function `sane_canon_get_select_fd':
    canon-sane.c:1859: warning: unused parameter `handle'
    canon-sane.c:1859: warning: unused parameter `fd'

    Irix 6.2/cc: Same MIN/MAX problem as above.

    AIX 4.3/gcc: See 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:45 PDT