I'm compiling on mac, and I get this error:

unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; 

Why does this happen, and how do I fix it?

1 Answer 1


In Mac OS X 10.7, Apple wants you to use their own crypto library instead of OpenSSL. This is pretty unlikely to ever be done by the bitcoin devs, so here's how to turn the warning off:

When running ./configure, give it the following argument:

./configure CXXFLAGS=-Wno-deprecated-declarations

This will disable the warning.

  • Only in 10.7? Then you're out of luck (with me). Only 10.6 and 10.9 here.
    – Mathias711
    Commented Sep 13, 2014 at 16:13
  • 2
    No need to edit ./configure, usage: ./configure CXXFLAGS=-Wno-deprecated-declarations Commented Aug 25, 2022 at 19:29
  • @Bitcoin_1o1 Thanks, edited.
    – Nick ODell
    Commented Aug 25, 2022 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.