Operational Defect Database

BugZero found this defect 2353 days ago.

MongoDB | 428627

[SERVER-31119] Compilation fails with boost 1.62

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

3.4.9

Fixed releases:

3.4.11

3.6.0-rc0

Description:

Info

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

Top User Comments

hydrapolic commented on Fri, 27 Oct 2017 06:03:59 +0000: Any chance backporting to v3.2 and v3.0? xgen-internal-githook commented on Thu, 26 Oct 2017 17:37:52 +0000: Author: {'email': 'jelle@vdwaa.nl', 'name': 'Jelle van der Waa', 'username': 'jelly'} Message: SERVER-31119 Make string.cpp compatible with boost 1.62 Add a conditional for boost > 1.62 compatibility, boyer_moore_search now returns an std::pair. Signed-off-by: Andrew Morrow <acm@mongodb.com> (cherry picked from commit 8a5656c58c18e7c23d5bec6f9b2d41013ee80a47) Branch: v3.4 https://github.com/mongodb/mongo/commit/0bce9f5e3d8464266e644c0c2cb90bd5481a0ae8 xgen-internal-githook commented on Wed, 20 Sep 2017 15:10:55 +0000: Author: {'email': 'jelle@vdwaa.nl', 'name': 'Jelle van der Waa', 'username': 'jelly'} Message: SERVER-31119 Make string.cpp compatible with boost 1.62 Add a conditional for boost > 1.62 compatibility, boyer_moore_search now returns an std::pair. Signed-off-by: Andrew Morrow <acm@mongodb.com> Branch: master https://github.com/mongodb/mongo/commit/8a5656c58c18e7c23d5bec6f9b2d41013ee80a47 jelly1 commented on Sun, 17 Sep 2017 19:23:57 +0000: A PR has been made here https://github.com/mongodb/mongo/pull/1175

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...