sane-project-website/old-archive/2001-05/0285.html

143 wiersze
5.4 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: error compiling sane-backends-1.0.4</TITLE>
<META NAME="Author" CONTENT="Pete Rossi (pete@pjrnet.com)">
<META NAME="Subject" CONTENT="Re: error compiling sane-backends-1.0.4">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: error compiling sane-backends-1.0.4</H1>
<!-- received="Tue May 22 06:53:59 2001" -->
<!-- isoreceived="20010522135359" -->
<!-- sent="Tue, 22 May 2001 09:54:59 -0400" -->
<!-- isosent="20010522135459" -->
<!-- name="Pete Rossi" -->
<!-- email="pete@pjrnet.com" -->
<!-- subject="Re: error compiling sane-backends-1.0.4" -->
<!-- id="200105221354.f4MDsxW10837@pete6.pjrnet.com" -->
<!-- inreplyto="error compiling sane-backends-1.0.4" -->
<STRONG>From:</STRONG> Pete Rossi (<A HREF="mailto:pete@pjrnet.com?Subject=Re:%20error%20compiling%20sane-backends-1.0.4&In-Reply-To=&lt;200105221354.f4MDsxW10837@pete6.pjrnet.com&gt;"><EM>pete@pjrnet.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue May 22 2001 - 06:54:59 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0284.html">Ben Stanley: "Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0260.html">Pete Rossi: "error compiling sane-backends-1.0.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#285">[ date ]</A>
<A HREF="index.html#285">[ thread ]</A>
<A HREF="subject.html#285">[ subject ]</A>
<A HREF="author.html#285">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
-&gt;On Sun, May 20, 2001 at 07:14:55PM -0400, Pete Rossi wrote:
<BR>
-&gt;&gt; gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -g -O2 -W -Wall -DHAVE_DEV_URANDOM -DSCSIBUFFERSIZE=131072 sanei_scsi.c -fPIC -DPIC -o .libs/sanei_scsi.lo
<BR>
-&gt;&gt; In file included from linux_sg3_err.h:4,
<BR>
-&gt;&gt; from sanei_scsi.c:230:
<BR>
-&gt;&gt; /usr/include/linux/../scsi/sg.h:102: redefinition of `struct sg_header'
<BR>
-&gt;&gt; /usr/include/linux/../scsi/sg.h:120: redefinition of `struct sg_scsi_id'
<BR>
-&gt;
<BR>
-&gt;[...]
<BR>
-&gt;
<BR>
-&gt;I think the following may be the problem:
<BR>
-&gt;&gt;From a mail from Doug Gilbert:
<BR>
-&gt;
<BR>
-&gt;| In the file sane-backends-1.0.4/sanei/linux_sg3_err.h
<BR>
-&gt;| comment out (or remove) the line:
<BR>
-&gt;| #include &lt;linux/../scsi/sg.h&gt;
<BR>
-&gt;
<BR>
-&gt;Or use an unofficial snapshot from
<BR>
-&gt;<A HREF="http://www.meier-geinitz.de/sane/download.html">http://www.meier-geinitz.de/sane/download.html</A> . This is fixed in CVS
<BR>
-&gt;and the fix will be in SANE 1.0.5.
<BR>
-&gt;
<BR>
-&gt;Ciao,
<BR>
-&gt; Henning
<BR>
-&gt;
<BR>
<P>Thanks, That did the trick. I figured it was something like that
<BR>
but did not have time to dig into it myself. As I said, the newer
<BR>
compilers seem to be more picky about this kind of thing. I had
<BR>
several of my own programs that compiled perfectly with the old
<BR>
compiler.. that started breaking with the newer ones .. because of
<BR>
duplicate #include .. or in at least one case, changing the order
<BR>
of the #include fixed it.
<BR>
<P>Now.. I need to get the front-ends to make.. Last I checked the
<BR>
./configure was complaining about something. I hope to get back
<BR>
to it this weekend.
<BR>
<P><PRE>
---
<P>Pete Rossi - WA3NNA
<A HREF="mailto:pete@pjrnet.com?Subject=Re:%20error%20compiling%20sane-backends-1.0.4&In-Reply-To=&lt;200105221354.f4MDsxW10837@pete6.pjrnet.com&gt;">pete@pjrnet.com</A>
<P>--
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:%20error%20compiling%20sane-backends-1.0.4&In-Reply-To=&lt;200105221354.f4MDsxW10837@pete6.pjrnet.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0284.html">Ben Stanley: "Problems with Prisa 620S [snapscan] + BUG in xsane 0.76"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0260.html">Pete Rossi: "error compiling sane-backends-1.0.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0286.html">Frans Verster: "Q: windows port"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#285">[ date ]</A>
<A HREF="index.html#285">[ thread ]</A>
<A HREF="subject.html#285">[ subject ]</A>
<A HREF="author.html#285">[ 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>Tue May 22 2001 - 06:56:12 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>