Re: [xml] unresolved .fpclassify under AIX
- From: KUSANO Takayuki <AE5T-KSN asahi-net or jp>
- To: xml gnome org
- Subject: Re: [xml] unresolved .fpclassify under AIX
- Date: Wed, 23 Oct 2002 18:54:59 +0900
Hi,
At Tue, 22 Oct 2002 20:50:52 +0200,
Wolfram Nücker wrote:
hello,
I have trouble building libxml-2.4.25 under AIX.
Problem is unresolved symbol .fpclassify from trionan.c.
The line "#elif defined(FP_PLUS_NORM) || defined(__hpux)" assumes you get fpclassify with FP_PLUS_NORM, but
the following comment only relates to HPUX, so better use && instead of || ?
AIX seems to have related function for fpclassify as "class" (or "_class" for C++ ;-)
regards
Wolfram Nücker
I've also enconter same problem and filed bugreport.
http://bugzilla.gnome.org/show_bug.cgi?id=95933
I attached ad-hoc patch I'm currently using.
KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>
--- libxml2-2.4.25/trionan.c.orig Wed Oct 16 20:48:44 2002
+++ libxml2-2.4.25/trionan.c Wed Oct 16 20:48:06 2002
@@ -649,7 +649,11 @@
* HP-UX 9.x and 10.x have an fpclassify() function, that is different
* from the C99 fpclassify() macro supported on HP-UX 11.x.
*/
+#if defined(_AIX)
+ switch (class(number)) {
+#else
switch (fpclassify(number)) {
+#endif
case FP_QNAN:
case FP_SNAN:
*is_negative = TRIO_FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]