Build not possible neither with static linked libs or dynamic ones, output with LINKFLAGS -t argument:
g++ -o build/linux2/ssl/mongo/lame_stacktrace_test -fPIC -pthread -rdynamic build/linux2/ssl/mongo/util/lame_stacktrace_test.o -L/usr/lib64 -L/lib64 -Wl,--start-group build/linux2/ssl/mongo/base/configuration_variable_manager.o build/linux2/ssl/mongo/base/error_codes.o build/linux2/ssl/mongo/base/global_initializer.o build/linux2/ssl/mongo/base/global_initializer_registerer.o build/linux2/ssl/mongo/base/init.o build/linux2/ssl/mongo/base/initializer.o build/linux2/ssl/mongo/base/initializer_context.o build/linux2/ssl/mongo/base/initializer_dependency_graph.o build/linux2/ssl/mongo/base/make_string_vector.o build/linux2/ssl/mongo/base/parse_number.o build/linux2/ssl/mongo/base/status.o build/linux2/ssl/mongo/base/string_data.o build/linux2/ssl/mongo/util/stacktrace.o -Wl,--end-group -lm -lpthread -lssl -lcrypto -lrt build/linux2/ssl/mongo/util/stacktrace.o: In function `mongo::printStackTrace(std::basic_ostream<char, std::char_traits<char> >&)': /home/raal/mongodb-src-r2.4.1/src/mongo/util/stacktrace.cpp:49: undefined reference to `mongo::errnoWithDescription(int)' collect2: ld returned 1 exit status scons: *** [build/linux2/ssl/mongo/lame_stacktrace_test] Error 1 scons: building terminated because of errors.
SSL libs installed:
libssl-dev install
libssl-doc install
libssl0.9.8 install
libssl1.0.0 install