Date: Tue, 12 Apr 2016 18:54:27 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208754 Bug ID: 208754 Summary: games/assaultcube: 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: lightside@gmx.com Flags: maintainer-feedback?(lightside@gmx.com) CC: lightside@gmx.com Created attachment 169252 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169252&action= =3Dedit Remove hand-rolled round function from games/assaultcube During the exp-run in bug 208158, it was found that games/assaultcube gives errors with libc++ 3.8.0 [1]: 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) _NOEXCEP= T=20=20=20 {return roundf(__lcpp_x);} ^ This is because the header attempts to redefine round(), which is a standard function from <math.h> (or <cmath>). Remove the custom definition to make = the program compile. [1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_= 18h30m05s/logs/errors/assaultcube-1.2.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-208754-13>