kopia lustrzana https://gitlab.com/sane-project/website
184 wiersze
7.0 KiB
HTML
184 wiersze
7.0 KiB
HTML
<!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=<14711.577.271204.661733@aegir.vision.auc.dk>"><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>>>>>> "abel" == abel deuring <<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=<14711.577.271204.661733@aegir.vision.auc.dk>">a.deuring@satzbau-gmbh.de</A>> writes:
|
||
</EM><BR>
|
||
<P><EM>> Bernhard Mogens Ege wrote:
|
||
</EM><BR>
|
||
<EM>>>
|
||
</EM><BR>
|
||
<EM>>> I have just downloaded the 1.0.2 source and was compiling it when this
|
||
</EM><BR>
|
||
<EM>>> error popped up:
|
||
</EM><BR>
|
||
<EM>>>
|
||
</EM><BR>
|
||
<EM>>> 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>>> In file included from linux_sg3_err.h:4,
|
||
</EM><BR>
|
||
<EM>>> from sanei_scsi.c:230:
|
||
</EM><BR>
|
||
<EM>>> /usr/include/linux/../scsi/sg.h:100: redefinition of `struct sg_header'
|
||
</EM><BR>
|
||
<EM>>> /usr/include/linux/../scsi/sg.h:118: redefinition of `struct sg_scsi_id'
|
||
</EM><BR>
|
||
<EM>>> /usr/include/linux/../scsi/sg.h:128: warning: redefinition of `Sg_scsi_id'
|
||
</EM><BR>
|
||
<EM>>> /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
|
||
</EM><BR>
|
||
<EM>>> make[1]: *** [sanei_scsi.o] Error 1
|
||
</EM><BR>
|
||
<EM>>> make[1]: Leaving directory `/pack-linux86/sane-1.0.2/src/sane-1.0.2/sanei'
|
||
</EM><BR>
|
||
<EM>>> make: *** [all-recursive] Error 1
|
||
</EM><BR>
|
||
<EM>>>
|
||
</EM><BR>
|
||
<EM>>> I have run "./configure --prefix=/pack-linux86/sane-1.0.2" followed by
|
||
</EM><BR>
|
||
<EM>>> make. I am using the 2.2.16 kernel and have enabled SCSI support.
|
||
</EM><BR>
|
||
<P><EM>> Bernhard,
|
||
</EM><BR>
|
||
<P><EM>> you have probably more than one version of sg.h installed on your
|
||
</EM><BR>
|
||
<EM>> machine; the "Suse default" for example is to put a really old version
|
||
</EM><BR>
|
||
<EM>> of sg.h in /usr/include/scsi, and a recent version in
|
||
</EM><BR>
|
||
<EM>> /usr/linux/include/scsi.
|
||
</EM><BR>
|
||
<P><EM>> Run "find /usr . -name sg.h -print" to get a list of all files named
|
||
</EM><BR>
|
||
<EM>> 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>
|
||
/usr/include/linux/../scsi/scsi.h
|
||
<BR>
|
||
/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 <scsi/sg.h> 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=<14711.577.271204.661733@aegir.vision.auc.dk>">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>
|