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

154 wiersze
6.1 KiB
HTML
Czysty Wina Historia

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="abel deuring (a.deuring@satzbau-gmbh.de)">
<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 05:49:46 2000" -->
<!-- isoreceived="20000720124946" -->
<!-- sent="Thu, 20 Jul 2000 14:54:02 +0200" -->
<!-- isosent="20000720125402" -->
<!-- name="abel deuring" -->
<!-- email="a.deuring@satzbau-gmbh.de" -->
<!-- subject="Re: trouble compiling sane-1.0.2 on linux" -->
<!-- id="3976F66A.B0749A4B@satzbau-gmbh.de" -->
<!-- inreplyto="14710.57905.799486.232700@aegir.vision.auc.dk" -->
<STRONG>From:</STRONG> abel deuring (<A HREF="mailto:a.deuring@satzbau-gmbh.de?Subject=Re:%20trouble%20compiling%20sane-1.0.2%20on%20linux&In-Reply-To=&lt;3976F66A.B0749A4B@satzbau-gmbh.de&gt;"><EM>a.deuring@satzbau-gmbh.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Jul 20 2000 - 05:54:02 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#176">[ date ]</A>
<A HREF="index.html#176">[ thread ]</A>
<A HREF="subject.html#176">[ subject ]</A>
<A HREF="author.html#176">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Bernhard Mogens Ege wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I have just downloaded the 1.0.2 source and was compiling it when this
</EM><BR>
<EM>&gt; error popped up:
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&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; In file included from linux_sg3_err.h:4,
</EM><BR>
<EM>&gt; from sanei_scsi.c:230:
</EM><BR>
<EM>&gt; /usr/include/linux/../scsi/sg.h:100: redefinition of `struct sg_header'
</EM><BR>
<EM>&gt; /usr/include/linux/../scsi/sg.h:118: redefinition of `struct sg_scsi_id'
</EM><BR>
<EM>&gt; /usr/include/linux/../scsi/sg.h:128: warning: redefinition of `Sg_scsi_id'
</EM><BR>
<EM>&gt; /usr/include/scsi/sg.h:211: warning: `Sg_scsi_id' previously declared here
</EM><BR>
<EM>&gt; make[1]: *** [sanei_scsi.o] Error 1
</EM><BR>
<EM>&gt; make[1]: Leaving directory `/pack-linux86/sane-1.0.2/src/sane-1.0.2/sanei'
</EM><BR>
<EM>&gt; make: *** [all-recursive] Error 1
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I have run &quot;./configure --prefix=/pack-linux86/sane-1.0.2&quot; followed by
</EM><BR>
<EM>&gt; make. I am using the 2.2.16 kernel and have enabled SCSI support.
</EM><BR>
<P>Bernhard,
<BR>
<P>you have probably more than one version of sg.h installed on your
<BR>
machine; the &quot;Suse default&quot; for example is to put a really old version
<BR>
of sg.h in /usr/include/scsi, and a recent version in
<BR>
/usr/linux/include/scsi.
<BR>
<P>Run &quot;find /usr . -name sg.h -print&quot; to get a list of all files named
<BR>
sg.h, 
<BR>
<P>(Output for the Linux box I'm using to write this mail:
<BR>
<P>/usr/include/scsi/sg.h
<BR>
/usr/src/linux-2.2.13.SuSE/include/config/chr/dev/sg.h
<BR>
/usr/src/linux-2.2.13.SuSE/include/scsi/sg.h
<BR>
/usr/i486-glibc20-linux/include/scsi/sg.h )
<BR>
<P>Rename all of them except one, and create symlinks pointing to the one
<BR>
file you keep. referably, you should keep sg.h from the kernel 2.2.16
<BR>
source:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cd /usr/include/scsi
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mv sg.h sg-old.h
<BR>
<P>then, for the example output shown above:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ln -s /usr/src/linux-2.2.13.SuSE/include/scsi/sg.h sg.h
<BR>
<P>or, for your machine:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ln -s /usr/src/include/scsi/sg.h sg.h
<BR>
<P>Abel
<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;3976F66A.B0749A4B@satzbau-gmbh.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0175.html">Bernhard Mogens Ege: "trouble compiling sane-1.0.2 on linux"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0177.html">Bernhard Mogens Ege: "Re: trouble compiling sane-1.0.2 on linux"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#176">[ date ]</A>
<A HREF="index.html#176">[ thread ]</A>
<A HREF="subject.html#176">[ subject ]</A>
<A HREF="author.html#176">[ 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 - 05:50:50 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>