trouble compiling sane-1.0.2 on linux

From: Bernhard Mogens Ege (
Date: Thu Jul 20 2000 - 04:27:45 PDT

  • Next message: abel deuring: "Re: trouble compiling sane-1.0.2 on linux"

    I have just downloaded the 1.0.2 source and was compiling it when this
    error popped up:

    gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/pack-linux86/sane-1.0.2/etc/sane.d -DPATH_SANE_DATA_DIR=/pack-linux86/sane-1.0.2/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -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:100: redefinition of `struct sg_header'
    /usr/include/linux/../scsi/sg.h:118: redefinition of `struct sg_scsi_id'
    /usr/include/linux/../scsi/sg.h:128: 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 `/pack-linux86/sane-1.0.2/src/sane-1.0.2/sanei'
    make: *** [all-recursive] Error 1

    I have run "./configure --prefix=/pack-linux86/sane-1.0.2" followed by
    make. I am using the 2.2.16 kernel and have enabled SCSI support.

    Any ideas to what could be the problem?


    Bernhard Ege

    Source code, list archive, and docs:
    To unsubscribe: echo unsubscribe sane-devel | mail

    This archive was generated by hypermail 2b29 : Thu Jul 20 2000 - 04:30:16 PDT