sane-project-website/old-archive/2000-07/0177.html

184 wiersze
7.0 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: trouble compiling sane-1.0.2 on linux</TITLE>
<META NAME="Author" CONTENT="Bernhard Mogens Ege (bme@vision.auc.dk)">
<META NAME="Subject" CONTENT="Re: trouble compiling sane-1.0.2 on linux">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: trouble compiling sane-1.0.2 on linux</H1>
<!-- received="Thu Jul 20 06:41:44 2000" -->
<!-- isoreceived="20000720134144" -->
<!-- sent="Thu, 20 Jul 2000 15:44:33 +0200 (MET DST)" -->
<!-- isosent="20000720134433" -->
<!-- name="Bernhard Mogens Ege" -->
<!-- email="bme@vision.auc.dk" -->
<!-- subject="Re: trouble compiling sane-1.0.2 on linux" -->
<!-- id="14711.577.271204.661733@aegir.vision.auc.dk" -->
<!-- inreplyto="3976F66A.B0749A4B@satzbau-gmbh.de" -->
<STRONG>From:</STRONG> Bernhard Mogens Ege (<A HREF="mailto:bme@vision.auc.dk?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=&lt;14711.577.271204.661733@aegir.vision.auc.dk&gt;"><EM>bme@vision.auc.dk</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Jul 20 2000 - 06:44:33 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0176.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0176.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#177">[ date ]</A>
<A HREF="index.html#177">[ thread ]</A>
<A HREF="subject.html#177">[ subject ]</A>
<A HREF="author.html#177">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
<EM>&gt;&gt;&gt;&gt;&gt; &quot;abel&quot; == abel deuring &lt;<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=&lt;14711.577.271204.661733@aegir.vision.auc.dk&gt;">a.deuring@satzbau-gmbh.de</A>&gt; writes:
</EM><BR>
<P><EM>&gt; Bernhard Mogens Ege wrote:
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I have just downloaded the 1.0.2 source and was compiling it when this
</EM><BR>
<EM>&gt;&gt; error popped up:
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; 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
</EM><BR>
<EM>&gt;&gt; In file included from linux_sg3_err.h:4,
</EM><BR>
<EM>&gt;&gt; from sanei_scsi.c:230:
</EM><BR>
<EM>&gt;&gt; /usr/include/linux/../scsi/sg.h:100: redefinition of `struct sg_header'
</EM><BR>
<EM>&gt;&gt; /usr/include/linux/../scsi/sg.h:118: redefinition of `struct sg_scsi_id'
</EM><BR>
<EM>&gt;&gt; /usr/include/linux/../scsi/sg.h:128: warning: redefinition of `Sg_scsi_id'
</EM><BR>
<EM>&gt;&gt; /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
</EM><BR>
<EM>&gt;&gt; make[1]: *** [sanei_scsi.o] Error 1
</EM><BR>
<EM>&gt;&gt; make[1]: Leaving directory `/pack-linux86/sane-1.0.2/src/sane-1.0.2/sanei'
</EM><BR>
<EM>&gt;&gt; make: *** [all-recursive] Error 1
</EM><BR>
<EM>&gt;&gt;
</EM><BR>
<EM>&gt;&gt; I have run &quot;./configure --prefix=/pack-linux86/sane-1.0.2&quot; followed by
</EM><BR>
<EM>&gt;&gt; make. I am using the 2.2.16 kernel and have enabled SCSI support.
</EM><BR>
<P><EM>&gt; Bernhard,
</EM><BR>
<P><EM>&gt; you have probably more than one version of sg.h installed on your
</EM><BR>
<EM>&gt; machine; the &quot;Suse default&quot; for example is to put a really old version
</EM><BR>
<EM>&gt; of sg.h in /usr/include/scsi, and a recent version in
</EM><BR>
<EM>&gt; /usr/linux/include/scsi.
</EM><BR>
<P><EM>&gt; Run &quot;find /usr . -name sg.h -print&quot; to get a list of all files named
</EM><BR>
<EM>&gt; sg.h, 
</EM><BR>
<P>[snip]
<BR>
<P>My list:
<BR>
<P>/usr/include/scsi/sg.h
<BR>
/usr/src/linux-2.2.16/include/scsi/sg.h
<BR>
/usr/src/linux-2.2.16/include/config/chr/dev/sg.h
<BR>
/usr/src/linux-2.2.14/include/scsi/sg.h
<BR>
/usr/src/linux-2.2.14/include/config/chr/dev/sg.h
<BR>
/usr/i386-glibc20-linux/include/scsi/sg.h
<BR>
<P>This is the order of some of the included files for compiling
<BR>
sane_scsi.c:
<BR>
<P>/usr/include/scsi/sg.h
<BR>
../include/sane/sanei_scsi.h
<BR>
linux_sg3_err.h
<BR>
&nbsp;/usr/include/linux/../scsi/scsi.h
<BR>
&nbsp;/usr/include/linux/../scsi/sg.h
<BR>
<P>On my machine, /usr/include/scsi/sg.h and
<BR>
/usr/include/linux/../scsi/sg.h do NOT resolve to the same
<BR>
file. /usr/include/linux/../scsi/sg.h resolves to
<BR>
/usr/src/redhat/include/scsi/sg.h as /usr/include/linux is a symbolic
<BR>
link to /usr/src/linux/include/linux
<BR>
<P>This problem seems to occur because of that link. This is however that
<BR>
usual redhat way (in my experience).
<BR>
<P>I have created a c program, which includes &lt;scsi/sg.h&gt; twice which
<BR>
causes no trouble.
<BR>
<P>It seems to me that sane should use either /usr/include/scsi/sg.h OR
<BR>
/usr/src/redhat/include/scsi/sg.h, but not both.
<BR>
<P>Is my system messed up or should sane be modified to use only one sg.h?
<BR>
<P>regards,
<BR>
<P>Bernhard Ege
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=&lt;14711.577.271204.661733@aegir.vision.auc.dk&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0176.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0176.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">abel deuring: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#177">[ date ]</A>
<A HREF="index.html#177">[ thread ]</A>
<A HREF="subject.html#177">[ subject ]</A>
<A HREF="author.html#177">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Thu Jul 20 2000 - 06:42:39 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>