Bernhard Mogens Ege wrote:
> On my machine, /usr/include/scsi/sg.h and
> /usr/include/linux/../scsi/sg.h do NOT resolve to the same
> file. /usr/include/linux/../scsi/sg.h resolves to
> /usr/src/redhat/include/scsi/sg.h as /usr/include/linux is a symbolic
> link to /usr/src/linux/include/linux
>
> This problem seems to occur because of that link. This is however that
> usual redhat way (in my experience).
>
> I have created a c program, which includes <scsi/sg.h> twice which
> causes no trouble.
>
> It seems to me that sane should use either /usr/include/scsi/sg.h OR
> /usr/src/redhat/include/scsi/sg.h, but not both.
>
> Is my system messed up or should sane be modified to use only one sg.h?
Both. You can do it as you want: Either clean up the installed sg.h
files or fix linux_sg3_err.h in sane. To remove the line "#include
<linux/../scsi/sg.h>" or to replace it with "#include <scsi.sg.h>"
should work if yor prefer the latter.
Abel
-- 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 : Thu Jul 20 2000 - 08:20:56 PDT