<p>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:</p>
<p>When running <code>./configure</code>, give it the following argument:</p>
<pre><code>./configure CXXFLAGS=-Wno-deprecated-declarations
</code></pre>
<p>This will disable the warning.</p>

CC BY-SA 3.0
2014-09-13T16:13:02.433Z
Only in 10.7? Then you're out of luck (with me). Only 10.6 and 10.9 here.
Mathias711
CC BY-SA 4.0
2022-08-25T19:29:12.570Z
No need to edit `./configure`, usage: `./configure CXXFLAGS=-Wno-deprecated-declarations`
Bitcoin_1o1
CC BY-SA 4.0
2022-08-25T19:31:30.717Z
@Bitcoin_1o1 Thanks, edited.
Nick ODell
CC BY-SA 4.0
2014-09-13T16:10:23.300Z
2022-08-25T19:31:22.517Z
2022-08-25T19:31:22.517Z
Nick ODell
<p>I'm compiling on mac, and I get this error:</p>

<pre><code>unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; 
</code></pre>

<p>Why does this happen, and how do I fix it?</p>

<mac><compiling>
Deprecation error on mac
Nick ODell
# Deprecation error on mac

(Asked by: username_0 on 2014-09-13)

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?

**Tags:** mac, compiling


---

## 1 answers

### Answer by username_0 on 2014-09-13. Score: 1 | Accepted answer

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.

> **Comments:**
> **username_1**: Only in 10.7? Then you're out of luck (with me). Only 10.6 and 10.9 here.  
> **username_2**: No need to edit `./configure`, usage: `./configure CXXFLAGS=-Wno-deprecated-declarations`  
> **username_0**: @username_2 Thanks, edited.  

---

