Sunday 15 April 2012

ssl - Scons in Mongodb -


When I run the scans - everything, it throws an error:

++ - o Construction / linux2 / release / ssl / Mongo / util / net / ssl_manager.o -c -Wnon- Abasi- dtor -Woverloaded- virtual -fPIC -fno- strict aliasing -ggdb -pthread -Wno- Agyat- pragmas -Winvalid -pch include -Pipe -fno- Built 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 / -Isrc / THIRD_PARTY / libstemmer_c / include -Ibuild / linux2 / release / ssl / THIRD_PARTY / s2 -Isrc / THIRD_PARTY / s2 -Ibuild / linux2 / T Lease / ssl / THIRD_PARTY / promotion -Isrc / THIRD_PARTY / promotion -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 / Tisre_parti / S2 -inbld / Linux 2 / releases / SSL / Tisre_parti / strong -Isrc / THIRD_PARTY / fast - 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 : 'Zero Mongo: SSLManager :: _ setupFIPS ()' in member function: src / Mongo / Util / net / ssl_manager.cpp: 187: Error: 'FIPS_mode_set' was not declared in this scope: * [build / linux2 / release / ssl / mongo / util / net / ssl_manager .o] Error 1 Scone: The building is finished due to errors.

How to fix this problem Using Ubuntu 12.04

To resolve this error, make sure that you have a version of OpenSSL that defines FIPS_mode_set, for example there are some versions of 0.9.8. 1.0.1 should be aware of the upgrade.

If you are already at 1.0.1, make sure that the correct openSSL header and library is being used by the scanners. You can set adding lib path as specified and the command line arguments clear:

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

Where are the paths provided to include the actual path of your OpenSSL and libraries.

No comments:

Post a Comment