I am running an Ubuntu Virtualbox, how do I build Bitcoin from source and run it in this environment?
I'm using the build notes from the bitcoin core github and I get the following errors when trying to do make -f makefile.unix bitcoind
:
net.cpp:48:15: error: 'pnodeLocalHost' was declared 'extern' and later 'static'
net.h:476:15: error: previous declaration of 'pnodeLocalHost'
net.cpp:51:15: error: 'hListenSocket' was declared 'extern' and later 'static'
net.h:479:15: error: previous declaration of 'hListenSocket'
make: *** [obj/nogui/net.o] Error 1
Any recommendation for how to fix this?
I tried commenting out those lines of code in net.h and now I'm getting:
db.cpp:534: undefined reference to 'AddAddress(CAddress, long long)'
net.cpp:1363: undefined reference to 'AddAddress(CAddress, long long)'
main.cpp:1914: undefined reference to 'AddAddress(CAddress, long long)'
init.cpp:493: undefined reference to 'AddAddress(CAddress, long long)'
could this be an issue with the libraries I've installed? I followed the doc pretty much verbatim.