Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 19:33:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208905] graphics/opencollada: Fix build with libc++ 3.8.0
Message-ID:  <bug-208905-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208905

            Bug ID: 208905
           Summary: graphics/opencollada: Fix build with libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: mva@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(mva@FreeBSD.org)
          Assignee: mva@FreeBSD.org

Created attachment 169451
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169451&action=
=3Dedit
Use <cmath> instead of <math.h> to get std::isnan

During the exp-run in bug 208158, it was found that graphics/opencollada gi=
ves
errors with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/graphics/opencollada/work/OpenCOLLADA-a59a438/GeneratedS=
axParser/src/GeneratedSaxParserUtils.cpp:1559:16:
error: no member named 'isnan' in namespace 'std'; did you mean simply 'isn=
an'?
        return std::isnan(value);
               ^~~~~~~~~~
               isnan

This is because opencollada's GeneratedSaxParserUtils.cpp includes <math.h>,
not <cmath>.  The latter defines std::isnan(), so use it instead.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_=
18h30m05s/logs/errors/opencollada-1.2.2.20150519.log

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208905-13>