<p>I am trying to install bitcoin core on my ubuntu server.
installed necessary dependencies.
RAN :
./autogen.sh
./configure --disable-wallet --with-incompatible-bdb --with-gui=no
./configure
make</p>
<p>I am getting OpenSSL errors when I run make.</p>
<blockquote>
<p>bignum.h:593:77: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM*’ {aka ‘const bignum_st*’}
593 | inline bool operator&gt;(const CBigNum&amp; a, const CBigNum&amp; b)  { return (BN_cmp(&amp;a, &amp;b) &gt; 0); }
|                                                                             ^~
|                                                                             |
|                                                                             const CBigNum*
In file included from /usr/include/openssl/asn1.h:23,
from /usr/include/openssl/objects.h:15,
from /usr/include/openssl/evp.h:28,
from /usr/include/openssl/x509.h:18,
from /usr/include/openssl/ssl.h:20,
from /usr/include/boost/asio/ssl/detail/openssl_types.hpp:24,
from /usr/include/boost/asio/ssl/context_base.hpp:19,
from /usr/include/boost/asio/ssl/context.hpp:23,
from /usr/include/boost/asio/ssl.hpp:18,
from rpcprotocol.h:16,
from rpcserver.h:10,
from bitcoind.cpp:6:
/usr/include/openssl/bn.h:274:26: note:   initializing argument 1 of ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
274 | int BN_cmp(const BIGNUM *a, const BIGNUM *b);
|            ~~~~~~~~~~~~~~^
make[3]: *** [Makefile:865: bitcoind.o] Error 1
make[3]: Leaving directory '/root/bitcoin/src'
make[2]: *** [Makefile:887: all-recursive] Error 1
make[2]: Leaving directory '/root/bitcoin/src'
make[1]: *** [Makefile:673: all] Error 2
make[1]: Leaving directory '/root/bitcoin/src'
make: *** [Makefile:509: all-recursive] Error 1</p>
</blockquote>
<p>I did run <strong>sudo apt-get install libssl-dev</strong> but it doesn't help.</p>

CC BY-SA 4.0
2021-01-29T21:27:31.070Z
What version of Bitcoin Core is this? Modern versions don't use OpenSSL at all anymore.
Pieter Wuille
CC BY-SA 4.0
2021-01-30T08:18:47.320Z
@PieterWuille 0.9.5
Guga Todua
CC BY-SA 4.0
2021-01-30T08:20:39.607Z
That's almost 6 years old. I suggest you use 0.21.0 (which was released 2 weeks ago), or at least something that's still supported.
Pieter Wuille
CC BY-SA 4.0
2021-01-30T13:48:13.260Z
@PieterWuille Thank you. Using version 0.21.0 solved my problem
Guga Todua
<bitcoin-core><openssl>
OpenSSL error when running "make" command
Guga Todua
# OpenSSL error when running "make" command

(Asked by: username_0 on 2021-01-29)

I am trying to install bitcoin core on my ubuntu server.
installed necessary dependencies.
RAN :
./autogen.sh
./configure --disable-wallet --with-incompatible-bdb --with-gui=no
./configure
make

I am getting OpenSSL errors when I run make.

> bignum.h:593:77: error: cannot convert ‘const CBigNum\*’ to ‘const BIGNUM\*’ {aka ‘const bignum\_st\*’}
> 593 | inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN\_cmp(&a, &b) > 0); }
> | ^~
> | |
> | const CBigNum\*
> In file included from /usr/include/openssl/asn1.h:23,
> from /usr/include/openssl/objects.h:15,
> from /usr/include/openssl/evp.h:28,
> from /usr/include/openssl/x509.h:18,
> from /usr/include/openssl/ssl.h:20,
> from /usr/include/boost/asio/ssl/detail/openssl\_types.hpp:24,
> from /usr/include/boost/asio/ssl/context\_base.hpp:19,
> from /usr/include/boost/asio/ssl/context.hpp:23,
> from /usr/include/boost/asio/ssl.hpp:18,
> from rpcprotocol.h:16,
> from rpcserver.h:10,
> from bitcoind.cpp:6:
> /usr/include/openssl/bn.h:274:26: note: initializing argument 1 of ‘int BN\_cmp(const BIGNUM\*, const BIGNUM\*)’
> 274 | int BN\_cmp(const BIGNUM \*a, const BIGNUM \*b);
> | ~~~~~~~~~~~~~~^
> make[3]: \*\*\* [Makefile:865: bitcoind.o] Error 1
> make[3]: Leaving directory '/root/bitcoin/src'
> make[2]: \*\*\* [Makefile:887: all-recursive] Error 1
> make[2]: Leaving directory '/root/bitcoin/src'
> make[1]: \*\*\* [Makefile:673: all] Error 2
> make[1]: Leaving directory '/root/bitcoin/src'
> make: \*\*\* [Makefile:509: all-recursive] Error 1

I did run **sudo apt-get install libssl-dev** but it doesn't help.

**Tags:** bitcoin-core, openssl

> **Comments:**
> **username_1**: What version of Bitcoin Core is this? Modern versions don't use OpenSSL at all anymore.  
> **username_0**: @username_1 0.9.5  
> **username_1**: That's almost 6 years old. I suggest you use 0.21.0 (which was released 2 weeks ago), or at least something that's still supported.  
> **username_0**: @username_1 Thank you. Using version 0.21.0 solved my problem  

---

## 0 answers

