Title: Building Bitcoin 3.25 in Ubuntu Post by: AlexWaters on September 02, 2011, 08:54:18 AM I'm trying to build from the repo so I can test some commits in Linux. I got past getting all of the libraries installed (I hope) and I get to the bitcoin make, and it throws the following 2(4?) errors:
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 I'm assuming that there's something I'm doing wrong in my build, any recommendations? Title: Re: Building Bitcoin 3.25 in Ubuntu Post by: AlexWaters on September 02, 2011, 01:14:18 PM Ok so I commented out those two lines of code in net.h - and now I'm getting these errors:
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)' has anyone had success building 3.25 in ubuntu? Title: Re: Building Bitcoin 3.25 in Ubuntu Post by: Pieter Wuille on September 02, 2011, 01:27:12 PM Which code exactly are you compiling? The current git head compiles perfectly here on Ubuntu 10.10.
Title: Re: Building Bitcoin 3.25 in Ubuntu Post by: AlexWaters on September 02, 2011, 09:55:02 PM Sorry, made this issue for it: https://github.com/bitcoin/bitcoin/issues/485
I was downloading the source instead of gitting it - learned my lesson I hope, haha |