Testing libexpat, error: 'NAN' was not declared in this scope

Jeffrey Walton noloader at gmail.com
Thu Feb 24 21:33:14 CET 2022


On Thu, Feb 24, 2022 at 3:21 PM Jeffrey Walton <noloader at gmail.com> wrote:
>
> On Thu, Feb 24, 2022 at 3:19 PM İhsan Doğan <ihsan at opencsw.org> wrote:
> >
> > > Am 24.02.2022 um 21:15 schrieb Jeffrey Walton <noloader at gmail.com>:
> > >
> > >>>
> > >>> Sebastian checked in a fix for this. See
> > >>> https://github.com/libexpat/libexpat/issues/569.
> > >>>
> > >>> I did not realize the portable way to get INFINITY and NAN is
> > >>> strtof("infinity", NULL) and strtof("nan", NULL), respectively.
> > >>
> > >> Did this patch fix your issue?
> > >
> > > Yes, here's what you want:
> > > https://github.com/noloader/Build-Scripts/blob/master/patch/expat.patch.
> > >
> > > But it is against libexpat 2.4.5, not OpenCSW's 2.4.4.
> >
> > Do you know by chance, if 2.4.6 includes the fix?
>
> 2.4.6 will not. 2.4.6 was released 6 days ago. The bug was reported 1 day ago.
>
> The patch may apply dirty.
>
> Give me 30 minutes and I'll update the patch from 2.4.5 to 2.4.6.

Ok, the patch against 2.4.6 is available at
https://github.com/noloader/Build-Scripts/blob/master/patch/expat.patch.

And libexpat 2.4.6 tested Ok on Solaris i86pc amd64.

Jeff


More information about the users mailing list