Date: Sun, 03 Apr 2016 20:05:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 208491] benchmarks/iperf: Fix build with libc++ 3.8.0 Message-ID: <bug-208491-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208491 Bug ID: 208491 Summary: benchmarks/iperf: 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: sunpoet@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Created attachment 168941 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168941&action= =3Dedit benchmarks/iperf: don't attempt to redefine bool for C++ During the exp-run in bug 208158, it was found that benchmarks/iperf gives errors with libc++ 3.8.0 [1]: In file included from delay.cpp:53: In file included from ../include/Timestamp.hpp:63: In file included from ../include/headers.h:85: In file included from /usr/include/c++/v1/math.h:309: /usr/include/c++/v1/type_traits:647:29: error: redefinition of 'std::__1::__libcpp_is_integral<int>' template <> struct __libcpp_is_integral<int> : publ= ic true_type {}; ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/type_traits:636:29: note: previous definition is here template <> struct __libcpp_is_integral<bool> : publ= ic true_type {}; ^ This is because iperf's config.h #defines bool as int, but this is of course only applicable to C sources, not C++. Fix this by surrounding the redefinition with #ifndef __cplusplus. [1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_= 18h30m05s/logs/errors/iperf-2.0.5.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-208491-13>