Re: Sane Compile on 2.4

From: Brooklyn Linux Solutions CEO (ruben@mrbrklyn.com)
Date: Tue Apr 24 2001 - 07:39:04 PDT

  • Next message: Henning Meier-Geinitz: "Re: Sane Compile on 2.4"

    Thanks

    How about the compile problem?

    Ruben

    On 2001.04.24 15:37:20 -0400 abel deuring wrote:
    Brooklyn Linux Solutions CEO wrote:
    >
    > Hello
    >
    > I had a working HP 5P scanner on SUse 7.0 which I compiled Sane-Backend
    by
    > hand
    >
    > I upgraded to 2.4 and SuSe 7.1 and now I get this error message with
    >
    > scanimage -d hp:/dev/sga --format tiff --mode color > /tmp/image.tif
    > scanimage: sane_read: Error during device I/O
    >
    > It works with lineart or default mode - whatever that is.

    If the scanner needs a longer start time for color scans (calibration or
    whatever), this might be caused by a too short time out of SCSI commands
    for the new kernel.

    Please change line 1693 in sanei/sanei_scsi.c (Sane 1.0.4) from

          req->sgdata.sg3.hdr.timeout = 10000;

    to

          req->sgdata.sg3.hdr.timeout = 10000 * 60;

    Then you have the same timeout setting as for the 2.4 kernels.

    > In file included from linux_sg3_err.h:4,
    > from sanei_scsi.c:230:
    > /usr/include/linux/../scsi/sg.h:127: redefinition of `struct sg_iovec'
    > /usr/include/linux/../scsi/sg.h:130: warning: redefinition of
    `sg_iovec_t'

    Please remove the lines

    #include <linux/../scsi/scsi.h> /* cope with silly includes */
    #include <linux/../scsi/sg.h>

    from sanei/linux_sg3_err.h.

    Abel

    --
    Source code, list archive, and docs: http://www.mostang.com/sane/
    To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
    

    -- Brooklyn Linux Solutions http://www.mrbrklyn.com http://www.brooklynonline.com

    1-718-382-5752

    -- 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 : Tue Apr 24 2001 - 12:29:02 PDT