GNOME Bugzilla – Bug 95933
fpclassify() is not defined on AIX.
Last modified: 2009-08-15 18:40:50 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
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
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
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.
Created attachment 15592 [details] output of configure --enable-static --disable-shared
libxml-2.5.7 contains an update to the trio code which should close this bug, thanks, Daniel