[Bug 209686] www/webkit2-gtk3: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 21 22:59:54 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209686

            Bug ID: 209686
           Summary: www/webkit2-gtk3: 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: gnome at FreeBSD.org
          Reporter: dim at FreeBSD.org
          Assignee: gnome at FreeBSD.org
             Flags: maintainer-feedback?(gnome at FreeBSD.org)

Created attachment 170534
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170534&action=edit
Fix type for pow() call in www/webkit2-gtk3

During the exp-run in bug 208158, it was found that www/webkit2-gtk3 gives
errors with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.8.5/Source/WebCore/rendering/shapes/BoxShape.cpp:46:40:
error: call to 'pow' is ambiguous
        return radius + (margin * (1 + pow(ratio - 1, 3)));
                                       ^~~

This is because ratio is of type LayoutUnit, which is a class that has both
conversions to float and double.  Therefore, it is ambiguous if pow(float) or
pow(double) should be called.  Fix it by explicitly casting to float, since it
seems that most of the LayoutUnit handling is done with it.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_10h29m48s/logs/errors/webkit2-gtk3-2.8.5_2.log

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


More information about the freebsd-gnome mailing list