sane-project-website/old-archive/2001-06/0076.html

101 wiersze
3.3 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: assert() in SANE</TITLE>
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
<META NAME="Subject" CONTENT="assert() in SANE">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>assert() in SANE</H1>
<!-- received="Mon Jun 4 13:32:44 2001" -->
<!-- isoreceived="20010604203244" -->
<!-- sent="Mon, 4 Jun 2001 22:25:31 +0200" -->
<!-- isosent="20010604202531" -->
<!-- name="Henning Meier-Geinitz" -->
<!-- email="henning@meier-geinitz.de" -->
<!-- subject="assert() in SANE" -->
<!-- id="20010604222531.D15344@vortex.swb.de" -->
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20assert()%20in%20SANE&In-Reply-To=&lt;20010604222531.D15344@vortex.swb.de&gt;"><EM>henning@meier-geinitz.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jun 04 2001 - 13:25:31 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0077.html">Tim Waugh: "zoom out bug"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0075.html">EdHamrick@aol.com: "Re: Problems with XPA unit conneccted to HP scanjet 6300C, revisited"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#76">[ date ]</A>
<A HREF="index.html#76">[ thread ]</A>
<A HREF="subject.html#76">[ subject ]</A>
<A HREF="author.html#76">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi,
<BR>
<P>the problems with shared libraries under AIX/gcc turned out to be a
<BR>
problem with assert() which is only available for static binaries.
<BR>
<P>Please use the wrapper header lassert.h which uses it's own
<BR>
implementation of assert() in case of AIX/gcc and just includes
<BR>
&lt;assert.h&gt; otherwise.
<BR>
<P>So please change
<BR>
<P>#include &lt;assert.h&gt;
<BR>
to
<BR>
#include &quot;../include/lassert.h&quot;
<BR>
<P>in your code.
<BR>
<P>I have done this for sanei/sanei_scsi.c but there are some backends
<BR>
with assert() that I didn't touch.
<BR>
<P>The only backend library that doesn't load currenly on AIX because of
<BR>
this problem is libsane-hp.
<BR>
<P>Bye,
<BR>
&nbsp;&nbsp;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:%20assert()%20in%20SANE&In-Reply-To=&lt;20010604222531.D15344@vortex.swb.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0077.html">Tim Waugh: "zoom out bug"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0075.html">EdHamrick@aol.com: "Re: Problems with XPA unit conneccted to HP scanjet 6300C, revisited"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#76">[ date ]</A>
<A HREF="index.html#76">[ thread ]</A>
<A HREF="subject.html#76">[ subject ]</A>
<A HREF="author.html#76">[ 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>Mon Jun 04 2001 - 13:32:57 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>