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

--- Comment #80 from Don Lewis <[email protected]> ---
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.
_______________________________________________
kde-freebsd mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information

Reply via email to