View Single Post
  #21  
Old 29th October 2015, 08:05
whocares whocares is offline
Member
 
Join Date: Nov 2009
United States
Posts: 6
Default
So running the script with installing xbt I found some errors that we have with xbt compiling correctly
Errors:
Code:
transaction.cpp: In member function ‘void Ctransaction::recv()’:
transaction.cpp:37:15: error: ‘class Cstats’ has no member named ‘received_udp’
   srv_stats().received_udp++;
               ^
transaction.cpp: In member function ‘void Ctransaction::send_announce(data_ref)’:
transaction.cpp:106:33: error: no matching function for call to ‘t_torrent::select_peers(mutable_str_ref&, Ctracker_input&) const’
  torrent->select_peers(peers, ti);
                                 ^
transaction.cpp:106:33: note: candidate is:
In file included from transaction.cpp:5:0:
server.h:93:14: note: std::string t_torrent::select_peers(const Ctracker_input&) const
  std::string select_peers(const Ctracker_input&) const;
              ^
server.h:93:14: note:   candidate expects 1 argument, 2 provided
transaction.cpp: In member function ‘void Ctransaction::send(data_ref)’:
transaction.cpp:156:14: error: ‘class Cstats’ has no member named ‘sent_udp’
  srv_stats().sent_udp++;
              ^
I figured out that is because they have changed some of the code in newer revisions that cause these issues. To fix it all that needs to be done is specify a revision when checking out the code.
So:
Code:
svn co http://xbt.googlecode.com/svn/trunk/xbt/misc xbt/misc
svn co http://xbt.googlecode.com/svn/trunk/xbt/Tracker xbt/Tracker
Becomes:
Code:
svn co -r 2466 http://xbt.googlecode.com/svn/trunk/xbt/misc xbt/misc
svn co -r 2466 http://xbt.googlecode.com/svn/trunk/xbt/Tracker xbt/Tracker
Reply With Quote