Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2016 16:18:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208754] games/assaultcube: Fix build with libc++ 3.8.0
Message-ID:  <bug-208754-13-qmgerMXFgG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208754-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208754-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=3D208754

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

Author: jbeich
Date: Wed Apr 13 16:17:48 UTC 2016
New revision: 413214
URL: https://svnweb.freebsd.org/changeset/ports/413214

Log:
  games/assaultcube: unbreak build with newer C++ library

  - Add upstream fixes for clang/libc++ 3.8 and gcc/libstdc++ 6.0
  - Remove merged files/patch-source_src_bot_bot_waypoint.cpp file
  - Bump PORTREVISION

  In file included from crypto.cpp:1:
  In file included from ./cube.h:8:
  ./tools.h:58:21: error: static declaration of 'round' follows non-static
  declaration
  static inline float round(float x) { return floor(x + 0.5f); }
                        ^
  /usr/include/c++/v1/math.h:1364:46: note: previous definition is here
  inline _LIBCPP_INLINE_VISIBILITY float       round(float __lcpp_x) _NOEXC=
EPT
     {return roundf(__lcpp_x);}
                                                 ^
  In file included from cube.h:8:0,
                     from crypto.cpp:1:
  tools.h: In function 'float round(float)':
  tools.h:58:34: error: 'float round(float)' conflicts with a previous
declaration
   static inline float round(float x) { return floor(x + 0.5f); }
                                      ^
  In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                     from platform.h:9,
                     from cube.h:7,
                     from crypto.cpp:1:
  /usr/local/lib/gcc6/include/c++/cmath:1708:3: note: previous declaration
'constexpr float std::round(float)'
     round(float __x)
     ^~~~~

  PR:           208754
  Reported by:  dim (libc++), lightside (libstdc++)
  Submitted by: lightside <lightside@gmx.com> (maintainer)

Changes:
  head/games/assaultcube/Makefile
  head/games/assaultcube/files/patch-fixes-for-GCC-and-Clang.diff
  head/games/assaultcube/files/patch-source_src_bot_bot_waypoint.cpp

--=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-208754-13-qmgerMXFgG>