-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.1.2
-
Component/s: None
-
None
-
Environment:Fedora
-
Linux
-
None
-
None
-
None
-
None
-
None
-
None
-
None
When I try to build with ssl, linking fails and says I need libcrypto. The SConstruct says we only link against libcrypto if we are "darwin". I think we should take out the condition and always link against libcrypto. It does link successfully for me if I take out the 'if'.
/usr/bin/ld: build/linux2/ssl/mongo/util/net/sock.o: undefined reference to symbol 'CRYPTO_set_id_callback' /usr/bin/ld: note: 'CRYPTO_set_id_callback' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line /lib64/libcrypto.so.10: could not read symbols: Invalid operation collect2: ld returned 1 exit status scons: *** [build/linux2/ssl/mongo/mongod] Error 1 scons: building terminated because of errors.