Re: [xml] Multithread behaviour on Solaris
- From: Daniel Veillard <veillard redhat com>
- To: "Fabrice DESRE - FT.BD/FTRD/DMI/GRI" <fabrice desre francetelecom com>
- Cc: xml gnome org
- Subject: Re: [xml] Multithread behaviour on Solaris
- Date: Thu, 7 Jun 2001 07:18:46 -0400
On Thu, Jun 07, 2001 at 10:41:20AM +0200, Fabrice DESRE - FT.BD/FTRD/DMI/GRI wrote:
Hello,
I'm using libxml/libxslt on Solaris in a multithreaded
application and found an easy to fix bug : The _REENTRANT
flag has to be specified when compiling the library to
avoid inconsistent behaviour of errno.
Including <errno.h> with _REENTRANT defined make errno
a macro that gets the correct value when in a thread.
Otherwise you always get 0 :-(
Hum, what should be used as the result of config.guess
for Solaris so I can add it to configure.in .
I assume adding the _REENTRANT define won't have other side
effects and can be used in a safe way. Well actually if Gary
could confirm it's a safe thing to do in general I would feel
better adding this :-)
I also noticed that trio.c define errno as an extern int,
which is not the correct way.
Hum, maybe Bjorn can have a look at this, it seems trio
includes errno.h so maybe this definition is done only in a
fallback case.
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]