[DOCS-2206] C++ driver Linux build FIPS troubleshooting item Created: 07/Nov/13  Updated: 24/Feb/14  Resolved: 24/Feb/14

Status: Closed
Project: Documentation
Component/s: ecosystem
Affects Version/s: None
Fix Version/s: v1.3.1

Type: Improvement Priority: Major - P3
Reporter: James Wahlin Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 14 weeks, 6 days ago

 Description   

In regards to our Linux C++ driver build page:

Please add a troubleshooting item for:

  • "error: 'FIPS_mode_set' was not declared in this scope scons: *"

Fixing requires a version of OpenSSL that defines FIPS_mode_set, such as OpenSSL 1.0.1.

The full error you would see would be similar to:

src/mongo/util/net/ssl_manager.cpp: In member function 'void mongo::SSLManager::_setupFIPS()':
src/mongo/util/net/ssl_manager.cpp:187: error: 'FIPS_mode_set' was not declared in this scope scons: *
[build/linux2/release/ssl/mongo/util/net/ssl_manager.o] Error 1 scons: building terminated because of errors.

To address I installed OpenSSL 1.0.1e and compiled with --cpppath and --libpath arguments to scons:

scons --ssl --cpppath /usr/local/openssl/1.0.1e/include --libpath /usr/local/openssl/1.0.1e/lib all


Generated at Thu Feb 08 07:42:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.