sipaccount.cpp:1589:16: error: use of overloaded operator '=' is ambiguous (with operand types 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') and 'void') password_h = {hash, 32}; ~~~~~~~~~~ ^ ~~~~~~~~~~ /usr/include/c++/v1/string:820:19: note: candidate function basic_string& operator=(const basic_string& __str); ^ /usr/include/c++/v1/string:822:19: note: candidate function basic_string& operator=(__self_view __sv) {return assign(__sv);} ^ /usr/include/c++/v1/string:825:19: note: candidate function basic_string& operator=(basic_string&& __str) ^ sipaccount.cpp:1653:21: error: use of overloaded operator '=' is ambiguous (with operand types 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') and 'void') details_str = {description->ptr, (size_t)description->slen}; ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/string:820:19: note: candidate function basic_string& operator=(const basic_string& __str); ^ /usr/include/c++/v1/string:822:19: note: candidate function basic_string& operator=(__self_view __sv) {return assign(__sv);} ^ /usr/include/c++/v1/string:825:19: note: candidate function basic_string& operator=(basic_string&& __str) ^ build log: http://sprunge.us/GGZf regressed by: https://github.com/llvm-mirror/libcxx/commit/1e00d6db319a
This is libc++'s fault, since we shouldn't expose `string_view` before C++17. However due to the fundamental dependencies between `string` and `string_view` we explicitly chose to enable it in all dialects.
If possible, could you please add a patch to make it build? Otherwise, Ring ports are currently broken due to the upstream version mismatch that needs to be sorted out. (Upstream released some parts depending on unreleased versions of other parts.)
Yes. I think I can fix this in libc++. I will work on a patch today and then merge it into 4.0.
I've missed the port builds fine now on /projects/clang400-import branch. http://package18.nyi.freebsd.org/data/headi386PR216008-default/2017-02-01_06h23m11s/logs/ring-daemon-0.160516_1.log http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-27_12h43m12s/logs/ring-daemon-0.160516_1.log