GNOME Bugzilla – Bug 78954
Problems with nan(NULL) call in trionan.c on OSF1
Last modified: 2009-08-15 18:40:50 UTC
Hi, I encountered problems with the call nan(NULL) in file trionan.c on our OSF1 (Tru64) V5.1A box. We use the C-Compiler V6.4 and CXX V6.3-014. After making a patch to the system provided by Compaq the libm was changed and now the program xmllint crashes with SEGFAULT within the call nan(NULL). Unfortunately I dont know the id of the patch. I made the following changes to the file trionan.c to get it work: include <nan.h> // for dnan structure In trio_nan function: #if defined(TRIO_COMPILER_SUPPORTS_C99) +++#ifdef TRIO_COMPILER_DECC +++ dnan dnan_; +++ result = nan(&dnan_); +++#else result = nan(NULL); +++#endif #elif defined(NAN) && defined(__STDC_IEC_559__) Lines with +++ signs were added. Any ideas or comments? Thank you Georg Bolz Base Development viastore systems GmbH g.bolz@viastore.de
Bjorn Reese seems to have fixed it in CVS: http://cvs.gnome.org/bonsai/cvsquery.cgi?module=gnome-xml&branch=HEAD&branchtype=match&dir=gnome-xml&file=&filetype=match&who=breese&whotype=match&sortby=Date&hours=&date=explicit&mindate=04%2F19%2F02+11%3A15&maxdate=04%2F19%2F02+11%3A17&cvsroot=%2Fcvs%2Fgnome could you check this ? thanks, Daniel
Okay, this should be fixed in the last releases, Daniel