Bitcoin Forum
September 20, 2024, 02:06:07 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: call for help-error when compiling bitcoin source code  (Read 202 times)
fondtothu (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 31, 2020, 02:18:15 PM
 #1

when committing make after configure, an errror occured:

[root@sectest-1 bitcoin]# make
Making all in src
make[1]: Entering directory `/root/bitcoin/src'
make[2]: Entering directory `/root/bitcoin/src'
make[3]: Entering directory `/root/bitcoin'
make[3]: Leaving directory `/root/bitcoin'
  CXXLD    bitcoind
libbitcoin_util.a(libbitcoin_util_a-random.o): In function `construct<(anonymous namespace)::RNGState>':
/root/bitcoin/src/random.cpp:434: undefined reference to `OPENSSL_init_crypto'
collect2: error: ld returned 1 exit status
make[2]: *** [bitcoind] Error 1
make[2]: Leaving directory `/root/bitcoin/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bitcoin/src'
make: *** [all-recursive] Error 1

how to figure it out,call for help!
DaCryptoRaccoon
Hero Member
*****
Offline Offline

Activity: 1230
Merit: 614


OGRaccoon


View Profile
March 31, 2020, 05:00:24 PM
Last edit: April 08, 2020, 01:21:04 PM by MagicByt3
Merited by bones261 (4), odolvlobo (1), ABCbits (1), hugeblack (1)
 #2

It seems your OPENSSL is of a older version the error below can be down to this factor.

Code:
undefined reference to `OPENSSL_init_crypto'

First check with

Code:
./openssl version -a

The you should look to set compile flags to point to where you installed openssl.






┏━━━━━━━━━━━━━━━━━┓
┃     𝔱𝔥𝔬𝔲 𝔰𝔥𝔞𝔩𝔱 𝔴𝔬𝔯ⱪ 𝔣𝔬𝔯 𝔶𝔬𝔲𝔯 𝔟𝔞𝔤𝔰       ┃
┃                ➤21/M                      ┃
┃ ███▓▓  ███▓▓  ███▓▓  ███▓▓┃
BitMaxz
Legendary
*
Offline Offline

Activity: 3388
Merit: 3095


BTC price road to $80k


View Profile WWW
April 01, 2020, 01:15:16 AM
Merited by bones261 (3), hugeblack (1)
 #3

I found someone on Google who has the same issue as yours and like the above said the issue is related to OpenSSL.

According to this https://github.com/bitcoin/bitcoin/issues/8706
You have to completely uninstall the old version of OpenSSL and install the latest one. You can find the solution under this post.

Or this solution below
- https://github.com/bitcoin/bitcoin/issues/8706#issuecomment-411965669

foxdice
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 17, 2020, 05:47:27 PM
 #4

Its seems like a sys problems, ambiguous.
in those cases i recommend to uninstall the package, check the versions and choose a stable version.
if it doesnt work, clear the system.

please check it
https://stackoverflow.com/questions/22952287/how-to-upgrade-openssl-in-centos-6-5-linux-unix-from-source/22952749#22952749

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!