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

            Bug ID: 207600
           Summary: databases/akonadi: fix build with boost 1.60 on 9.x
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
             Flags: maintainer-feedback?([email protected])
          Assignee: [email protected]

Created attachment 167576
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=167576&action=edit
Patch

akonadi fails to build with boost 1.60 on 9.x:

---
/usr/local/include/boost/bind/bind.hpp:882:65: error: no member named 'forward'
in namespace 'std'
    A1 && operator[] (boost::arg<1> (*) ()) const { return std::forward<A1>(
a1_ ); }
                                                           ~~~~~^
---

full log: http://people.freebsd.org/~amdmi3/akonadi-1.13.0.log

I haven't digged deep, but it seems that combination of libstdc++ and clang (as
akonadi is built with clang on 9.x due to USES=compiler:c++11-lang) makes boost
misdetect support for c++11 features, and it tries to use std::forward which is
not present in the library. Another solution would be to switch akonadi to
USES=compiler:c++11-lib (which may be more desirable, as building c++ libraries
with clang while most ports are built with gcc may lead to ABI compatibility
issues, and c++11-lib will use gcc to build), but it will also require
additional testing.

-- 
You are receiving this mail because:
You are the assignee 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