<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Am 23.02.2022 um 16:33 schrieb Jeffrey Walton via users <<a href="mailto:users@lists.opencsw.org" class="">users@lists.opencsw.org</a>>:</div><div class=""><div class=""><br class="">I'm trying to compile libexpat 2.4.5 on SOlaris 11.4. It has that<br class="">antique GCC 4.8.2. The build is failing:<br class=""><br class="">$ make check -k<br class="">...<br class="">/bin/g++ -DHAVE_CONFIG_H -I. -I..   -DXML_ENABLE_VISIBILITY=1<br class="">-I./../lib -I/opt/ssh/incl<br class="">ude -DNDEBUG -Wall   -fexceptions -fno-strict-aliasing -g2 -O2 -m64<br class="">-march=native -fPIC<br class="">-pthread -MT runtestspp.o -MD -MP -MF .deps/runtestspp.Tpo -c -o<br class="">runtestspp.o runtestspp<br class="">.cpp<br class="">In file included from runtestspp.cpp:36:0:<br class="">runtests.c: In function 'void test_billion_laughs_attack_protection_api()':<br class="">runtests.c:11712:32: error: 'NAN' was not declared in this scope<br class="">          parserWithoutParent, NAN)<br class="">                               ^<br class="">runtests.c:11734:32: error: 'INFINITY' was not declared in this scope<br class="">          parserWithoutParent, INFINITY)<br class="">                               ^<br class="">*** Error code 1<br class=""><br class="">I've included <sunmath.h> but the defines/symbols are still missing. I<br class="">also included headers mentioned at<br class=""><a href="https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html" class="">https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html</a>. I'm out of<br class="">ideas.<br class=""><br class="">Does anyone know what to include to get those symbols?<br class=""></div></div></blockquote><br class=""></div><div>I’m not an expert here, but you use our build recipe to build it on Solaris 11:</div><div><a href="https://sourceforge.net/p/gar/code/HEAD/tree/csw/mgar/pkg/libexpat1/trunk/Makefile#l4" class="">https://sourceforge.net/p/gar/code/HEAD/tree/csw/mgar/pkg/libexpat1/trunk/Makefile#l4</a></div><div><br class=""></div><div>But also in our case, „make test“ fails, but the build seems to be fine.</div><div><br class=""></div><div>Besides we have an up to date libexpat package in our repository. 😉</div><div><a href="https://www.opencsw.org/packages/CSWlibexpat1/" class="">https://www.opencsw.org/packages/CSWlibexpat1/</a></div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div><br class=""></div><div>Regards</div><div><br class=""></div><div>Ihsan</div><br class=""></body></html>