Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-863

Get mesos' libprocess dependency protobuf to compile with clang and libc++

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.14.2
    • Fix Version/s: 0.17.0
    • Component/s: build, libprocess
    • Environment:

      OS X 10.9 (Mavericks), Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

      Description

      [mesos/build/3rdparty/libprocess/3rdparty/protobuf-2.4.1(master) ]

      Failure:
      google/protobuf/message.cc:130:60: error: implicit instantiation of undefined template 'std::_1::basic_istream<char, std::_1::char_traits<char> >'
      return ParseFromZeroCopyStream(&zero_copy_input) && input->eof();
      ^
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:108:28: note: template is declared here
      class _LIBCPP_TYPE_VIS basic_istream;
      ^
      google/protobuf/message.cc:135:67: error: implicit instantiation of undefined template 'std::_1::basic_istream<char, std::_1::char_traits<char> >'
      return ParsePartialFromZeroCopyStream(&zero_copy_input) && input->eof();
      ^
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:108:28: note: template is declared here
      class _LIBCPP_TYPE_VIS basic_istream;
      ^
      google/protobuf/message.cc:175:16: error: implicit instantiation of undefined template 'std::_1::basic_ostream<char, std::_1::char_traits<char> >'
      return output->good();
      ^
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:110:28: note: template is declared here
      class _LIBCPP_TYPE_VIS basic_ostream;
      ^
      3 errors generated.
      make[9]: *** [message.lo] Error 1

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tillt Till Toenshoff
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: