Date: Tue, 17 May 2016 21:24:46 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209591] games/chromium-bsu: Fix build with libc++ 3.8.0 Message-ID: <bug-209591-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209591 Bug ID: 209591 Summary: games/chromium-bsu: 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: amdmi3@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: amdmi3@FreeBSD.org Flags: maintainer-feedback?(amdmi3@FreeBSD.org) Created attachment 170419 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170419&action= =3Dedit Include <cmath> so abs(double) can be found During the exp-run in bug 208158, it was found that games/chromium-bsu gives errors with libc++ 3.8.0 [1]: MainSDL_Event.cpp:420:73: error: call to 'abs' is ambiguous if( keystate[SDLK_LEFT] || keystate[SDLK_KP4] ) key_speed_= x -=3D 2.0 + abs(key_speed_x)*0.4; =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^~~ This is because key_speed_x is a floating point value, but <cmath> is not included, and abs() for floating point 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/chromium-bsu-0.9.15.1_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-209591-13>