Operational Defect Database

BugZero found this defect 214 days ago.

MongoDB | 2477493

Compilation error in asio code, when compiling with clang

Last update date:

3/13/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Info

When compiling mongod, I get the following error: In file included from src/mongo/util/net/ssl_stream.cpp:37: In file included from src/mongo/util/net/ssl/impl/src.hpp:38: In file included from src/mongo/util/net/ssl/detail/impl/engine_apple.ipp:43: In file included from src/mongo/util/net/ssl/detail/engine.hpp:41: In file included from src/mongo/util/net/ssl/detail/engine_apple.hpp:35: In file included from src/third_party/asio-master/asio/include/asio/buffer.hpp:28: src/third_party/asio-master/asio/include/asio/detail/type_traits.hpp:61:7: error: no member named 'result_of' in namespace 'std'; did you mean 'boost::result_of'? using std::result_of; ^~~~~~~~~~~~~~ boost::result_of src/third_party/boost/boost/utility/result_of.hpp:72:29: note: 'boost::result_of' declared here template struct result_of; ^ Compiling build/opt/third_party/wiredtiger/src/os_common/os_fs_inmemory.o 1 error generated. scons: *** [build/opt/mongo/util/net/ssl_stream.o] Error 1 scons: building terminated because of errors. build/opt/mongo/util/net/ssl_stream.o failed: Error 1

Top User Comments

JIRAUSER1275514 commented on Mon, 23 Oct 2023 12:27:30 +0000: chris.kelly@mongodb.com Signed! JIRAUSER1265262 commented on Sat, 21 Oct 2023 21:32:51 +0000: Hi mateusz.kuzmik1@gmail.com! Thanks for making this pull request! We just need you to sign our [Contributor's Agreement](https://www.mongodb.com/legal/contributor-agreement) as part of our considering the PR. JIRAUSER1275514 commented on Wed, 18 Oct 2023 12:50:12 +0000: A fix that worked for me: https://github.com/mongodb/mongo/pull/1576 JIRAUSER1275514 commented on Wed, 18 Oct 2023 12:40:10 +0000: Similar issue was resolved in SERVER-76814, but only for libc++

Steps to Reproduce

Clang version: % clang -v Apple clang version 14.0.3 (clang-1403.0.22.14.1) Target: arm64-apple-darwin22.6.0 Thread model: posix InstalledDir: /Applications/Xcode-14.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin Compile mongod with command: python3 buildscripts/scons.py install-mongod

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Investigating

Learn More

Search:

...