Oliver Rauch wrote:
>
> "Jeffrey W. Baker" wrote:
> >
> > Hi,
> >
> > Is it actually possible to compile sane? I downloaded both parts of the
> > 1.0.4 package. I tried to build the backends, but sanei_scsi.c has some
> > preprocessor horkage by which it includes /usr/include/scsi/sg.h and
> > /usr/include/linux/../scsi/sg.h, which are clearly the same file and gcc
> > gets pissed off by redefinition. After I fixed this problem (not the
> > right way, I'm sure, but by hard-coding #include <scsi/sg.h>), the package
> > compiled and installed.
>
> This seems to be a problem if incompatible system and kernel sg.files
>
> kernel-2.4.0 (/usr/src/linux/include/scsi/sg.h):
> #ifndef _SCSI_GENERIC_H
> suse-7.0 /usr/include/scsi/sg.h:
> #ifndef _SCSI_SG_H
>
> In previous kernel versions _SCSI_SG_H has been used to make sure
> sg.h is included only once.
Oliver,
I don't think this is a recent change; sg drivers back
the 2.0 have used _SCSI_GENERIC_H in the _kernel_
header file. I'll look into the possibility of closing
this discrepancy. Anyway, including both files in
sanei_scsi.c was probably not intended.
Doug Gilbert
-- 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 : Fri Jan 12 2001 - 10:55:32 PST