gpt4 book ai didi

mongodb - Mongodb 中的 Scons

转载 作者:太空宇宙 更新时间:2023-11-03 13:28:12 25 4
gpt4 key购买 nike

当我运行 scons --ssl all 时,它会抛出一个错误:

g++ -o build/linux2/release/ssl/mongo/util/net/ssl_manager.o -c -Wnon-virtual-dtor -Woverloaded-virtual -fPIC -fno-strict-aliasing -ggdb -pthread -Wno-unknown-pragmas -Winvalid-pch -pipe -fno-builtin-memcmp -O3 -DBOOST_ALL_NO_LIB -D_SCONS -DMONGO_EXPOSE_MACROS -DSUPPORT_UTF8 -D_FILE_OFFSET_BITS=64 -DMONGO_SSL -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_EXECINFO_BACKTRACE -DNETSNMP_NO_INLINE -Ibuild/linux2/release/ssl/third_party/libstemmer_c/include -Isrc/third_party/libstemmer_c/include -Ibuild/linux2/release/ssl/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/release/ssl/third_party/boost -Isrc/third_party/boost -Ibuild/linux2/release/ssl/third_party/pcre-8.30 -Isrc/third_party/pcre-8.30 -Ibuild/linux2/release/ssl -Isrc -Ibuild/linux2/release/ssl/mongo -Isrc/mongo -Ibuild/linux2/release/ssl/third_party/s2 -Isrc/third_party/s2 -Ibuild/linux2/release/ssl/third_party/snappy -Isrc/third_party/snappy -Ibuild/linux2/release/ssl/third_party/v8/include -Isrc/third_party/v8/include src/mongo/util/net/ssl_manager.cpp

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.

如何解决这个问题。使用 Ubuntu 12.04

最佳答案

要解决此错误,请确保您安装了定义 FIPS_mode_set 的 OpenSSL 版本。例如 0.9.8 的某些版本没有。升级到 1.0.1 应该解决。

如果您已经在使用 1.0.1,请确保 scons 使用了正确的 OpenSSL header 和库。您可以通过将 include 和 lib 路径添加为命令行参数来显式设置,如下所示:

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

提供的路径是您的 OpenSSL 包含和库的实际路径。

关于mongodb - Mongodb 中的 Scons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17232753/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com