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

140 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: 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="Wed Apr 19 12:37:10 2000" -->
<!-- isoreceived="20000419193710" -->
<!-- sent="Wed, 19 Apr 2000 21:38:19 +0200" -->
<!-- isosent="20000419193819" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="hmg-ml@gmx.de" -->
<!-- subject="Re: Cannot compile sane-1.0.2 on SuSE 6.4" -->
<!-- id="20000419213819.A574@hmg1.vortex.swb.de" -->
<!-- inreplyto="Pine.LNX.4.21.0004181849170.8838-100000@callisto.local" -->
<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;20000419213819.A574@hmg1.vortex.swb.de&gt;"><EM>hmg-ml@gmx.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Apr 19 2000 - 12:38:19 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0197.html">Henning Meier-Geinitz: "Re: Newbie question - Acer Prisa 310s"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0195.html">Oliver Rauch: "Re: xscanimage on Gimp"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0189.html">Robert Schwebel: "Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0199.html">Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0199.html">Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#196">[ date ]</A>
<A HREF="index.html#196">[ thread ]</A>
<A HREF="subject.html#196">[ subject ]</A>
<A HREF="author.html#196">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P><EM>&gt; This is the result of a &quot;configure &amp;&amp; make&quot;:
</EM><BR>
<EM>&gt; make[1]: Entering directory `/home/local/sane-1.0.2/sanei'
</EM><BR>
<EM>&gt; rm -f .libs/sanei_ab306.lo
</EM><BR>
<EM>&gt; /usr/bin/gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DNDEBUG
</EM><BR>
<EM>&gt; -Df2cFortran -D_GNU_SOURCE -DPATH_SANE_CONFIG_DIR=/usr/local/etc/sane.d
</EM><BR>
<EM>&gt; -DPATH_SANE_DATA_DIR=/usr/local/share -DV_MAJOR=1 -DV_MINOR=0 -O -W -Wall
</EM><BR>
<EM>&gt; -DSCSIBUFFERSIZE=131072 sanei_ab306.c -fPIC -DPIC -o .libs/sanei_ab306.lo
</EM><BR>
<EM>&gt; sanei_ab306.c:257: macro `DBG_INIT' used without args
</EM><BR>
<EM>&gt; make[1]: *** [sanei_ab306.o] Error 1
</EM><BR>
<EM>&gt; make[1]: Leaving directory `/home/local/sane-1.0.2/sanei'
</EM><BR>
<EM>&gt; make: *** [all-recursive] Error 1
</EM><BR>
<EM>&gt; callisto:/usr/local/sane-1.0.2 #
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Any idea?
</EM><BR>
<P>Yes. You have compiled SANE without debugging support (maybe this decision
<BR>
was made by SuSE, I don't know, why). Try to compile with debugging support
<BR>
(which is the standard setting). Just remove -DNDEBUG from the Makefiles or
<BR>
use the SANE tar.gz files from <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>.
<BR>
<P>The cause of your problem (which I can reproduce by typing CPPFLAGS=&quot;-DNDEBUG&quot;
<BR>
./configure and make) is in include/sane/sanei_debug.h:
<BR>
<P>#ifdef NDEBUG
<BR>
# define DBG_INIT(backend, var)
<BR>
<P>[...]
<BR>
&nbsp;
<BR>
# define DBG_INIT() \
<BR>
&nbsp;&nbsp;sanei_init_debug (STRINGIFY(BACKEND_NAME), \
<BR>
[...]
<BR>
<P>Without debugging support DBG_INIT has two arguments, otherwise none. It is
<BR>
called with no argument by sanei_ab306.c (and other files). I don't know too
<BR>
much about C macros so I can't say if this is a bug or a problem with the C
<BR>
compiler. Any comments?
<BR>
<P>Ciao, 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;20000419213819.A574@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="0197.html">Henning Meier-Geinitz: "Re: Newbie question - Acer Prisa 310s"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0195.html">Oliver Rauch: "Re: xscanimage on Gimp"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0189.html">Robert Schwebel: "Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0199.html">Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0199.html">Robert Schwebel: "Re: Cannot compile sane-1.0.2 on SuSE 6.4"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#196">[ date ]</A>
<A HREF="index.html#196">[ thread ]</A>
<A HREF="subject.html#196">[ subject ]</A>
<A HREF="author.html#196">[ 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>Wed Apr 19 2000 - 12:37:52 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>