Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31119

Compilation fails with boost 1.62

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 3.4.9
    • 3.4.11, 3.6.0-rc0
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • v3.4
    • Hide

      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors

      Show
      scons mongod --use-system-boost --use-system-pcre --use-system-snappy --use-system-zlib --disable-warnings-as-errors
    • Platforms 2017-10-02

    Description

      Compilation with Boost 1.62 fails due to this compile error:

      src/mongo/db/fts/unicode/string.cpp: In static member function 'static bool mongo::unicode::String::substrMatch(const string&, const string&, mongo::unicode::String::SubstrMatchOptions, mongo::unicode::CaseFoldMode)':
      src/mongo/db/fts/unicode/string.cpp:277:80: error: no match for 'operator!=' (operand types are 'std::pair<const char*, const char*>' and 'mongo::StringData::const_iterator {aka const char*}')
           return boost::algorithm::boyer_moore_search(
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                
                      haystack.begin(), haystack.end(), needle.begin(), needle.end()) != haystack.
      

      See attachment for the full backtrace

      Attachments

        Issue Links

          Activity

            People

              andrew.morrow@mongodb.com Andrew Morrow (Inactive)
              jelly1 Jelle van der Waa
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: