Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2016 11:46:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209694] x11-toolkits/wxgtk30: Fix build with libc++ 3.8.0
Message-ID:  <bug-209694-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 209694
           Summary: x11-toolkits/wxgtk30: 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: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: portmaster@bsdforge.com
             Flags: maintainer-feedback?(portmaster@bsdforge.com)
                CC: portmaster@bsdforge.com

Created attachment 170542
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170542&action=
=3Dedit
Include <cmath> so abs(float) can be found

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

./src/stc/scintilla/src/Editor.cxx:5844:6: error: call to 'abs' is ambiguous
        if (abs(pt1.x - pt2.x) > 3)
            ^~~

This is because pt1.x and pt2.x are float values, but <cmath> is not includ=
ed,
and abs() for float values comes from that header.  Fix it by including
<cmath>.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_=
10h29m48s/logs/errors/wx30-gtk2-3.0.2_4.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-209694-13>