WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] build error: strerror() ...

To: "Daniel P. Berrange" <berrange@xxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] build error: strerror() ...
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 08:59:57 +0000
Cc: Gerd Hoffmann <kraxel@xxxxxxx>, Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sat, 09 Dec 2006 01:00:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061208220815.GE4742@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccbcGZNpJj3HIdjEduurwANk04WTA==
Thread-topic: [Xen-devel] build error: strerror() ...
User-agent: Microsoft-Entourage/11.2.5.060620
On 8/12/06 10:08 pm, "Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:

>> strerror_r() sucks. I removed it and used a pthread mutex instead.
> 
> If you  '#define _XOPEN_SOURCE 600'  then glibc will provide the standards
> compliant version of strerror_r which always uses the user supplied buffer.
> Seems simpler than rolling our own code using pthreads mutexes.

My Debian build box defines only the GNU version.

It seems that strerror_r() is basically unusable unless you do a
'configure'-style compile test to set a build flag.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>