[kde-freebsd] [Bug 199601] devel/boost-all: Upgrade to 1.58, 1.59, or 1.60

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 14 17:48:36 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199601

--- Comment #80 from Don Lewis <truckman at FreeBSD.org> ---
liborcus fails with the same error, but in configure.  Configure tries to
compile a test program that is basically
  #include <boost/filesystem/path.hpp>
which ends up including <boost/bind/bind.hpp> resulting in the same breakage as 
seen with akonadi.

My boost patch doesn't fix that because none of the stdc++ headers that result
in __GLIBCXX__ getting defined have been included at that point.

I kind of hate to do a #include inside clang.hpp because of the extra
pollution, but that might be the best way forward.  That would fix liborcus as
well as
akonadi.

Both liborcus and akonadi compile with this patch applied to boost:

--- boost/config/compiler/clang.hpp.orig        2015-12-08 18:55:19 UTC
+++ boost/config/compiler/clang.hpp
@@ -169,6 +169,14 @@

 #if !__has_feature(cxx_rvalue_references)
 #  define BOOST_NO_CXX11_RVALUE_REFERENCES
+#else
+/*
+ * Workaround for clang on FreeBSD 9.x using ancient libstdc++.
+ */
+#  include <ciso646>
+#  if !defined(_LIBCPP_VERSION)
+#    define BOOST_NO_CXX11_RVALUE_REFERENCES
+#  endif
 #endif

 #if !__has_feature(cxx_strong_enums)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list