Bitcoin Forum
May 02, 2024, 11:36:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind error undefined reference to `GetBlockValue(int, long long const&)'  (Read 111 times)
jawotiy116 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 22, 2021, 11:11:25 PM
 #1

Hello  Smiley,

I am trying to compile bitcoin in Ubuntu and i am getting the below error

robot@ubuntu:~/Documents/bitcoin-0.10.0$ make
Making all in src
make[1]: Entering directory `/home/robot/Documents/bitcoin-0.10.0/src'
make[2]: Entering directory `/home/robot/Documents/bitcoin-0.10.0/src'
make[3]: Entering directory `/home/robot/Documents/bitcoin-0.10.0/src/secp256k1'
make[3]: Leaving directory `/home/robot/Documents/bitcoin-0.10.0/src/secp256k1'
  CXXLD    bitcoind
libbitcoin_server.a(libbitcoin_server_a-main.o): In function `ConnectBlock(CBlock const&, CValidationState&, CBlockIndex*, CCoinsViewCache&, bool)':
/home/robot/Documents/bitcoin-0.10.0/src/main.cpp:1752: undefined reference to `GetBlockValue(int, long long const&)'
/home/robot/Documents/bitcoin-0.10.0/src/main.cpp:1755: undefined reference to `GetBlockValue(int, long long const&)'
libbitcoin_server.a(libbitcoin_server_a-miner.o): In function `CreateNewBlock(CScript const&)':
/home/robot/Documents/bitcoin-0.10.0/src/miner.cpp:323: undefined reference to `GetBlockValue(int, long long const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [bitcoind] Error 1
make[2]: Leaving directory `/home/robot/Documents/bitcoin-0.10.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/robot/Documents/bitcoin-0.10.0/src'
make: *** [all-recursive] Error 1

Could anyone help me please..

Thank you !!
Each block is stacked on top of the previous one. Adding another block to the top makes all lower blocks more difficult to remove: there is more "weight" above each block. A transaction in a block 6 blocks deep (6 confirmations) will be very difficult to remove.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
May 22, 2021, 11:23:24 PM
Merited by ABCbits (1), NotATether (1), Heisenberg_Hunter (1)
 #2

You're compiling an old, unsupported, and broken version.  The current version is 0.21.1 which is available at https://bitcoincore.org/en/download/

There was no GetBlockValue in 0.10.  You're either trying to get help with some altcoin and concealing it to waste Bitcoiner time, or you haven't run make clean first.  But regardless, you shouldn't be using that code.
odolvlobo
Legendary
*
Offline Offline

Activity: 4298
Merit: 3214



View Profile
May 24, 2021, 05:58:12 PM
 #3

You're compiling an old, unsupported, and broken version.  The current version is 0.21.1 which is available at https://bitcoincore.org/en/download/

There was no GetBlockValue in 0.10.  You're either trying to get help with some altcoin and concealing it to waste Bitcoiner time, or you haven't run make clean first.  But regardless, you shouldn't be using that code.


Salty, eh?

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6724


bitcoincleanup.com / bitmixlist.org


View Profile WWW
May 24, 2021, 06:21:19 PM
Merited by ABCbits (1)
 #4

In my opinion, people should be required to display their [any] modifications to software they're compiling before they can post build logs and ask for compile help. Speaking from experience.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2170
Merit: 4238


Join the world-leading crypto sportsbook NOW!


View Profile WWW
May 24, 2021, 08:57:55 PM
Last edit: May 24, 2021, 09:11:11 PM by DireWolfM14
 #5

make clean first.

^This.
Last night I was trying to compile Pasta.alla.Ragu and realized that my working directory was fucked.  I was unable to find pot.lid.asy in the default location, I could only find lid.nopot, which would not suffice.  I had noticed in the past that you can get by with pot.nolid, although it's less efficient.   Sometimes it can be found in /home/kitchen/stove/top, but it was missing from that location as well.  I decided to try executing sudo find /home/kitchen -n pot.  

The results were troubling:
/home/kitchen/sink/bottom/fishy_smell/pot.stink

So now the real work began:
sudo roll-up -sleeves
mv /home/kitchen/sink/dirty.dishes /home/kitchen/dishwasher/rinsed.dishes
cd /home/kitchen/dishwasher
make clean
cd /home/kitchen/sink
make clean
sudo ls -la /home/kitchen/sink/drain-trap
sudo touch /home/kitchen/sink/drain-trap/yuck 2> /dev/null


It's a wonder I ever get out of bed!  So yeah, make clean first.  


  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
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!