Sane Compile on 2.4

From: Brooklyn Linux Solutions CEO (ruben@mrbrklyn.com)
Date: Tue Apr 24 2001 - 05:15:27 PDT

  • Next message: MaD dUCK: "scanjet 2100c"

    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.

    xsane says there is an i/o error

    I decided to recompile the backend and it is croaking on this line with
    this error message:

    make[1]: Entering directory `/home/ruben/sane-backends-1.0.4/sanei'
    rm -f .libs/sanei_scsi.lo
    gcc -c -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 -g -O2 -W
    -Wall -DHAVE_DEV_URANDOM -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC
    -o .libs/sanei_scsi.lo
    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'
    /usr/include/scsi/sg.h:40: warning: `sg_iovec_t' previously declared here
    /usr/include/linux/../scsi/sg.h:134: redefinition of `struct sg_io_hdr'
    /usr/include/linux/../scsi/sg.h:158: warning: redefinition of `sg_io_hdr_t'
    /usr/include/scsi/sg.h:68: warning: `sg_io_hdr_t' previously declared here
    /usr/include/linux/../scsi/sg.h:188: redefinition of `struct sg_scsi_id'
    /usr/include/linux/../scsi/sg.h:199: redefinition of `struct sg_req_info'
    /usr/include/linux/../scsi/sg.h:209: warning: redefinition of
    `sg_req_info_t'
    /usr/include/scsi/sg.h:129: warning: `sg_req_info_t' previously declared
    here
    /usr/include/linux/../scsi/sg.h:289: warning: redefinition of `Sg_io_hdr'
    /usr/include/scsi/sg.h:209: warning: `Sg_io_hdr' previously declared here
    /usr/include/linux/../scsi/sg.h:290: warning: redefinition of `Sg_io_vec'
    /usr/include/scsi/sg.h:210: warning: `Sg_io_vec' previously declared here
    /usr/include/linux/../scsi/sg.h:291: warning: redefinition of `Sg_scsi_id'
    /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
    /usr/include/linux/../scsi/sg.h:292: warning: redefinition of `Sg_req_info'
    /usr/include/scsi/sg.h:212: warning: `Sg_req_info' previously declared here
    /usr/include/linux/../scsi/sg.h:302: redefinition of `struct sg_header'
    make[1]: *** [sanei_scsi.o] Error 1
    make[1]: Leaving directory `/home/ruben/sane-backends-1.0.4/sanei'
    make: *** [all-recursive] Error 1

    It looks like a redefining of the scsi interfaces?

    I looked at the mailing list and saw the not to cp libs to /usr/include
    ...that seems to not to work.

    Any clues?

    Ruben

    -- 
    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 - 10:05:40 PDT