Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 May 2016 12:06:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 209372] deskutils/easystroke: Fix build with libc++ 3.8.0
Message-ID:  <bug-209372-13-UeVE2c9hrn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209372-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209372-13@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: dim
Date: Sun May  8 12:05:52 UTC 2016
New revision: 414807
URL: https://svnweb.freebsd.org/changeset/ports/414807

Log:
  During the exp-run in bug 208158, it was found that deskutils/easystroke
  gives errors with libc++ 3.8.0:

  handler.cc:536:21: error: static declaration of 'abs' follows non-static
declaration
  static inline float abs(float x) { return x > 0 ? x : -x; }
                      ^
  /usr/include/c++/v1/math.h:646:1: note: previous definition is here
  abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
  ^

  This is because easystroke tries to roll its own version of abs(), which
  is already defined in math.h.  Fix this by removing the custom abs().

  Approved by:  t@tobik.me (maintainer)
  PR:           209372
  MFH:          2016Q2

Changes:
  head/deskutils/easystroke/Makefile
  head/deskutils/easystroke/files/patch-handler.cc

--=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-209372-13-UeVE2c9hrn>