error compiling sane-backends-1.0.4

From: Pete Rossi (pete@pjrnet.com)
Date: Sun May 20 2001 - 16:14:55 PDT

  • Next message: Glenn Ramsey: "Calibration algorithms"

    I downloaded sane-backends-1.0.4 and followed the instructions..

       ./configure
       make

    A little ways into the make I got the following error...

    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:102: redefinition of `struct sg_header'
    /usr/include/linux/../scsi/sg.h:120: redefinition of `struct sg_scsi_id'
    /usr/include/linux/../scsi/sg.h:130: warning: redefinition of `Sg_scsi_id'
    /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
    make[1]: *** [sanei_scsi.o] Error 1
    make[1]: Leaving directory `/usr/src/sane-backends-1.0.4/sanei'
    make: *** [all-recursive] Error 1

    I am working with a Slackware 7.2 (latest Slackware) with a 2.2.19 Kernel.

    The compiler is..

    >Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/2.95.2/specs
    >gcc version 2.95.2 19991024 (release)

    I had problems with some of my own programs when I started using
    compilers newer than gcc 2.7.3 where it was picky about the order
    of some of my #include lines..

    I also have ..

    >Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
    >gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

    Should I be using that compiler? I may try it if I get a chance..

    ---
    

    Pete Rossi - WA3NNA pete@pjrnet.com

    -- 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 : Sun May 20 2001 - 16:15:48 PDT