sane-project-website/old-archive/2000-04/0276.html

134 wiersze
4.7 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: Cannot compile sane-1.0.2 on SuSE 6.4</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (hmg-ml@gmx.de)">
<META NAME="Subject" CONTENT="Re: Cannot compile sane-1.0.2 on SuSE 6.4">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Cannot compile sane-1.0.2 on SuSE 6.4</H1>
<!-- received="Thu Apr 27 14:02:08 2000" -->
<!-- isoreceived="20000427210208" -->
<!-- sent="Thu, 27 Apr 2000 23:02:18 +0200" -->
<!-- isosent="20000427210218" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Re: Cannot compile sane-1.0.2 on SuSE 6.4" -->
<!-- id="20000427230218.A10603@hmg1.vortex.swb.de" -->
<!-- inreplyto="200004270255.KAA10219@localhost.localdomain" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:hmg-ml@gmx.de?Subject=Re:%20Cannot%20compile%20sane-1.0.2%20on%20SuSE%206.4&In-Reply-To=&lt;20000427230218.A10603@hmg1.vortex.swb.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Thu Apr 27 2000 - 14:02:18 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0277.html">Oliver Schwartz: "Transparency support for snapscan backend"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0275.html">Henning Meier-Geinitz: "Re: Missing link"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0262.html">Petter Reinholdtsen: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0281.html">Petter Reinholdtsen: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#276">[ date ]</A>
<A HREF="index.html#276">[ thread ]</A>
<A HREF="subject.html#276">[ subject ]</A>
<A HREF="author.html#276">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P><EM>&gt; I believe this patch should fix both problems.
</EM><BR>
<P>That doesn't seem to be sufficient (at least for me). When I compile with
<BR>
NDEBUG I get:
<BR>
<P>[...]
<BR>
microtek.c: In function id_microtek':
<BR>
microtek.c:1966: invalid lvalue in assignment
<BR>
[...]
<BR>
<P>This line is:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DBG_LEVEL = 1;
<BR>
<P>I think this will resolve to (0) = 1;
<BR>
<P>Maybe we should do the same as in the case of NDEBUG not set:
<BR>
<P>#define DBG_LEVEL PASTE(sanei_debug_,BACKEND_NAME)
<BR>
<P>#if defined(BACKEND_NAME) &amp;&amp; !defined(STUBS)
<BR>
int PASTE(sanei_debug_,BACKEND_NAME);
<BR>
#endif
<BR>
<P>and set the variable to 0 instead of DBG_LEVEL? I have to confine that I
<BR>
don't understand this fully, e.g. the #if defined(BACKEND_NAME) but
<BR>
BACKEND_NAME is already used 2 lines before.
<BR>
<P><P><P>Further more I get a lot of warnings about empty bodies in if and else
<BR>
statements like this one:
<BR>
<P>microtek.c:344: warning: empty body in an if-statement
<BR>
<P>The corresponding line:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;if (sense[2] &amp; 0x10) DBG(10, &quot;sense: ERR_ILLBPP\n&quot;);
<BR>
<P>The problem is that DBG is defined to be empty (if HAVE_VARARG_MACROS is
<BR>
defined) so the statement resolves to:
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;if (sense[2] &amp; 0x10) ;
<BR>
<P>&nbsp;&nbsp;&nbsp;&nbsp;
<BR>
If it matters, my system is:
<BR>
Linux 2.2.14, i386, glibc2.0.7, egcs-1.1.2 and gcc 2.7.2.3
<BR>
<P>Bye, Henning
<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:%20Cannot%20compile%20sane-1.0.2%20on%20SuSE%206.4&In-Reply-To=&lt;20000427230218.A10603@hmg1.vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0277.html">Oliver Schwartz: "Transparency support for snapscan backend"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0275.html">Henning Meier-Geinitz: "Re: Missing link"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0262.html">Petter Reinholdtsen: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0281.html">Petter Reinholdtsen: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#276">[ date ]</A>
<A HREF="index.html#276">[ thread ]</A>
<A HREF="subject.html#276">[ subject ]</A>
<A HREF="author.html#276">[ 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 Apr 27 2000 - 14:02:48 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>