kopia lustrzana https://gitlab.com/sane-project/website
109 wiersze
4.2 KiB
HTML
109 wiersze
4.2 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.h problems with shared libraries</TITLE>
|
|
<META NAME="Author" CONTENT="Henning Meier-Geinitz (henning@meier-geinitz.de)">
|
|
<META NAME="Subject" CONTENT="assert.h problems with shared libraries">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>assert.h problems with shared libraries</H1>
|
|
<!-- received="Thu May 31 13:43:04 2001" -->
|
|
<!-- isoreceived="20010531204304" -->
|
|
<!-- sent="Thu, 31 May 2001 22:42:14 +0200" -->
|
|
<!-- isosent="20010531204214" -->
|
|
<!-- name="Henning Meier-Geinitz" -->
|
|
<!-- email="henning@meier-geinitz.de" -->
|
|
<!-- subject="assert.h problems with shared libraries" -->
|
|
<!-- id="20010531224214.A6008@vortex.swb.de" -->
|
|
<STRONG>From:</STRONG> Henning Meier-Geinitz (<A HREF="mailto:henning@meier-geinitz.de?Subject=Re:%20assert.h%20problems%20with%20shared%20libraries&In-Reply-To=<20010531224214.A6008@vortex.swb.de>"><EM>henning@meier-geinitz.de</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Thu May 31 2001 - 13:42:14 PDT
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0451.html">ANTONISHEN Robert -CIO PROJ DEL: "Xsane .\config errors"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0455.html">Oliver Rauch: "Re: assert.h problems with shared libraries"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0455.html">Oliver Rauch: "Re: assert.h problems with shared libraries"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#450">[ date ]</A>
|
|
<A HREF="index.html#450">[ thread ]</A>
|
|
<A HREF="subject.html#450">[ subject ]</A>
|
|
<A HREF="author.html#450">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi,
|
|
<BR>
|
|
<P>I think I have found out why shared libraries don't work with gcc on
|
|
<BR>
|
|
AIX. I don't know if that happens on other platforms too, but this
|
|
<BR>
|
|
problem seems to be quite usual as I found lots of website that
|
|
<BR>
|
|
mention it.
|
|
<BR>
|
|
<P>In assert.h, assert is a macro and contains a call to __eprintf.
|
|
<BR>
|
|
__eprintf is in libgcc.a. So it's unresolved in the SANE backend
|
|
<BR>
|
|
libraries because assert is used in sanei_scsi.c and some backends.
|
|
<BR>
|
|
<P>I tried some workarounds but nothing really worked.
|
|
<BR>
|
|
<P>E.g. Defining assert in config.h: #define assert(arg) ;
|
|
<BR>
|
|
Doesn't work, because assert.h is loaded after config.h
|
|
<BR>
|
|
<P>Defining NDEBUG works, but I don't want to disable debugging for
|
|
<BR>
|
|
everything.
|
|
<BR>
|
|
<P>Some options: Don't use assert. Or use a local header file (lassert.h)
|
|
<BR>
|
|
which checks for AIX and uses it's own assert if necessary. Or use a
|
|
<BR>
|
|
#ifdef HAVE_ASSERT for every assert.
|
|
<BR>
|
|
<P>Any good ideas?
|
|
<BR>
|
|
<P>Bye,
|
|
<BR>
|
|
Henning
|
|
<BR>
|
|
<P><P><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.h%20problems%20with%20shared%20libraries&In-Reply-To=<20010531224214.A6008@vortex.swb.de>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0451.html">ANTONISHEN Robert -CIO PROJ DEL: "Xsane .\config errors"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0449.html">Henning Meier-Geinitz: "Re: Compiling on OS/2"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0455.html">Oliver Rauch: "Re: assert.h problems with shared libraries"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0455.html">Oliver Rauch: "Re: assert.h problems with shared libraries"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#450">[ date ]</A>
|
|
<A HREF="index.html#450">[ thread ]</A>
|
|
<A HREF="subject.html#450">[ subject ]</A>
|
|
<A HREF="author.html#450">[ 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 May 31 2001 - 13:45:44 PDT</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|