Bitcoin Forum
May 13, 2024, 10:28:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Building Bitcoin 3.25 in Ubuntu  (Read 988 times)
AlexWaters (OP)
Member
**
Offline Offline

Activity: 77
Merit: 11


Twitter:@watersNYC


View Profile
September 02, 2011, 08:54:18 AM
 #1

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?

1715639333
Hero Member
*
Offline Offline

Posts: 1715639333

View Profile Personal Message (Offline)

Ignore
1715639333
Reply with quote  #2

1715639333
Report to moderator
1715639333
Hero Member
*
Offline Offline

Posts: 1715639333

View Profile Personal Message (Offline)

Ignore
1715639333
Reply with quote  #2

1715639333
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715639333
Hero Member
*
Offline Offline

Posts: 1715639333

View Profile Personal Message (Offline)

Ignore
1715639333
Reply with quote  #2

1715639333
Report to moderator
AlexWaters (OP)
Member
**
Offline Offline

Activity: 77
Merit: 11


Twitter:@watersNYC


View Profile
September 02, 2011, 01:14:18 PM
 #2

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?

Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1174


View Profile WWW
September 02, 2011, 01:27:12 PM
 #3

Which code exactly are you compiling? The current git head compiles perfectly here on Ubuntu 10.10.

I do Bitcoin stuff.
AlexWaters (OP)
Member
**
Offline Offline

Activity: 77
Merit: 11


Twitter:@watersNYC


View Profile
September 02, 2011, 09:55:02 PM
 #4

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

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!