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

Compilation fails with boost 1.62

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.4.9
    • Fix Version/s: 3.4.11, 3.6.0-rc0
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Steps To Reproduce:
      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
    • Sprint:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: