After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 95933 - fpclassify() is not defined on AIX.
fpclassify() is not defined on AIX.
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.25
Other AIX
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-10-16 12:36 UTC by Takayuki KUSANO
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of configure --enable-static --disable-shared (6.73 KB, text/plain)
2003-04-09 07:05 UTC, Takayuki KUSANO
Details

Description Takayuki KUSANO 2002-10-16 12:36:53 UTC
I can't compile libxml2-2.4.25 correctly on AIX 4.3.3.
(I'm using gcc 2.95.4 and run configure script with
--enable-static and --disable-shared options)

Here is a output from make.

gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -c
xpath.c 
-o xpath.o
In file included from xpath.c:91:
trionan.c: In function `trio_fpclassify_and_signbit':
trionan.c:652: warning: implicit declaration of function `fpclassify'

  **snip**

gcc -g -O2 -Wall -o xmllint xmllint.o  -L./.libs -lxml2 -lz -liconv -lm
ld: 0711-317 ERROR: Undefined symbol: .fpclassify
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
gmake[2]: *** [xmllint] Error 1

On AIX 4.3.3, fpclassify(3) is not defined, but FP_PLUS_NORM
macro is defined in /usr/include/float.h.

I replaced fpclassify(3) with class(3) in trionan.c (line 652)
 and successfully compiled.

Documentation for class(3) is here.
http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf1/class.htm
Comment 1 Daniel Veillard 2002-11-18 21:45:12 UTC
Okay here is what Bjorn Reese answered on that question:

> This has been solved in trio, but since I refactored some of the
> surrounding code, I still have to check that it works find on
> various platforms). The fix should be propagated to libxml next
> time I sync the baselines.
>
> In the meantime you can tell people to add "-Dfpclassify=class"
> to CFLAGS (I've not tested this workaround, but it ought to work.)

  I can't really help on this I will wait for him to commit the
fix to the CVs base,

Daniel
Comment 2 Daniel Veillard 2003-04-07 13:00:36 UTC
Okay, I received updated versions from Bjorn Reese and
commited them to CVS:

http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gnome-xml&who=veillard&date=explicit&mindate=2003-04-03%2010:27&maxdate=2003-04-03%2010:29&cvsroot=/cvs/gnome

However people were surprized by your report, c.f.:

http://mail.gnome.org/archives/xml/2003-March/msg00146.html

apparently you should not need trio with 4.3.3 ...
I hope the update will fix the problem anyway,

Daniel
Comment 3 Takayuki KUSANO 2003-04-09 07:04:18 UTC
I've just checked out gnome-xml (HEAD) from CVS and I successfully
compiled it on AIX 4.3.3.

(configure script must be run with --enable-static and --disable-shared
options. --enable-shared causes other problem on AIX 4.3.3...)

>http://mail.gnome.org/archives/xml/2003-March/msg00146.html
>>AIX 4.3.2+ has vsnprintf() so he shouldn't be picking up trio. I'd
>>like to see the output of his ./configure run.

Okay, I attach output of 'configure --enable-static --disable-shared'
in libxml2-2.5.6 to this bug report.
Comment 4 Takayuki KUSANO 2003-04-09 07:05:36 UTC
Created attachment 15592 [details]
output of configure --enable-static --disable-shared
Comment 5 Daniel Veillard 2003-04-25 10:19:54 UTC
  libxml-2.5.7 contains an update to the trio code which should
close this bug,

  thanks,

Daniel