# Re: Compile error

From: Douglas Gilbert (dgilbert@interlog.com)
Date: Sat Mar 24 2001 - 07:33:44 PST

- Next message: Jim Ford: "Colour matching"
  - Previous message: Peter Kirchgessner: "Re: HP ScanJet Plus woes"
  - In reply to: Malcolm White: "Compile error"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  Malcolm White wrote:
  >
  > Hi,
  >
  > I keep getting the following error when trying to compile the sane-backend 1.0.4
  > on a Slackware Current 2.2.18 kernel with usb.
  >
  > 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 `/tmp/sane-backends-1.0.4/sanei'
  > make: *** [all-recursive] Error 1
  Malcolm,
  In file sane-backends-1.0.4/sanei/linux_sg3_err.h comment
  out the 2 includes (on lines 3 and 4). I believe that
  this is fixed in SANE's CVS.

  Doug Gilbert

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

  - Next message: Jim Ford: "Colour matching"
  - Previous message: Peter Kirchgessner: "Re: HP ScanJet Plus woes"
  - In reply to: Malcolm White: "Compile error"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Sat Mar 24 2001 - 07:26:27 PST