Can't compile xbtt

234 views
Skip to first unread message

Death_Master

unread,
Aug 24, 2011, 5:52:41 PM8/24/11
to XBT Tracker
[root@vds39 Tracker]# ./make.sh
../misc/bt_misc.cpp:3:29: error: boost/foreach.hpp: No such file or
directory
../misc/bt_misc.cpp: In function ‘std::string escape_string(const
std::string&)’:
../misc/bt_misc.cpp:18: error: expected primary-expression before
‘char’
../misc/bt_misc.cpp:18: error: ‘BOOST_FOREACH’ was not declared in
this scope
../misc/bt_misc.cpp:19: error: expected `;' before ‘{’ token
../misc/bt_misc.cpp:372: error: expected `}' at end of input
In file included from ../misc/bvalue.cpp:1:
./stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from ./stdafx.h:32,
from ../misc/bvalue.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
../misc/bvalue.cpp: In member function ‘int Cbvalue::pre_read()
const’:
../misc/bvalue.cpp:289: error: expected primary-expression before ‘i’
../misc/bvalue.cpp:289: error: ‘BOOST_FOREACH’ was not declared in
this scope
../misc/bvalue.cpp:290: error: expected `;' before ‘v’
../misc/bvalue.cpp:296: error: expected primary-expression before ‘i’
../misc/bvalue.cpp:296: error: ‘BOOST_FOREACH’ was not declared in
this scope
../misc/bvalue.cpp:297: error: expected `;' before ‘v’
../misc/bvalue.cpp: In member function ‘Cvirtual_binary
Cbvalue::read() const’:
../misc/bvalue.cpp:308: error: ‘BOOST_VERIFY’ was not declared in this
scope
In file included from ../misc/virtual_binary.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
In file included from ../misc/xbt/xcc_z.h:3,
from ../misc/xcc_z.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
In file included from config.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from config.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
In file included from connection.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from connection.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope
In file included from server.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from server.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope
server.cpp: In member function ‘int Cserver::run()’:
server.cpp:36: error: expected primary-expression before ‘j’
server.cpp:36: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:37: error: expected `;' before ‘{’ token
server.cpp:919: error: expected `}' at end of input
In file included from tcp_listen_socket.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from tcp_listen_socket.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope
In file included from tracker_input.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from tracker_input.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
In file included from transaction.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from transaction.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope
In file included from udp_listen_socket.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from udp_listen_socket.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope
In file included from XBT Tracker.cpp:1:
stdafx.h:6:29: error: boost/foreach.hpp: No such file or directory
In file included from stdafx.h:32,
from XBT Tracker.cpp:1:
../misc/xbt/virtual_binary.h:5:33: error: boost/make_shared.hpp: No
such file or directory
server.h:81: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:81: error: typedef name may not be a nested-name-specifier
server.h:81: error: expected ‘;’ before ‘<’ token
server.h:98: error: ‘t_peers’ does not name a type
server.h:180: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:180: error: typedef name may not be a nested-name-specifier
server.h:180: error: expected ‘;’ before ‘<’ token
server.h:181: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:181: error: typedef name may not be a nested-name-specifier
server.h:181: error: expected ‘;’ before ‘<’ token
server.h:182: error: ISO C++ forbids declaration of ‘unordered_map’
with no type
server.h:182: error: typedef name may not be a nested-name-specifier
server.h:182: error: expected ‘;’ before ‘<’ token
server.h:207: error: ‘t_torrents’ does not name a type
server.h:208: error: ‘t_users’ does not name a type
server.h:209: error: ‘t_users_torrent_passes’ does not name a type
server.h: In function ‘size_t hash_value(const Cserver::peer_key_c&)’:
server.h:52: error: ‘hash_combine’ is not a member of ‘boost’
server.h: In member function ‘const Cserver::t_torrent*
Cserver::torrent(const std::string&) const’:
server.h:154: error: ‘m_torrents’ was not declared in this scope


boost installed boost-devel.i386 0:1.33.1-10.el5

same problem on freebsd with boost 1.45.0

any tips on building?

Olaf van der Spek

unread,
Aug 24, 2011, 5:57:07 PM8/24/11
to xbt-t...@googlegroups.com
On Wed, Aug 24, 2011 at 11:52 PM, Death_Master
<ptdragon.team...@gmail.com> wrote:
> boost installed  boost-devel.i386 0:1.33.1-10.el5

That's too old.

> same problem on freebsd with boost 1.45.0

1.45 is good, so you did something else wrong.


--
Olaf

Death_Master

unread,
Aug 25, 2011, 7:55:12 AM8/25/11
to XBT Tracker
I've installed boots via ports.
What could possibly go wrong?

On Aug 25, 12:57 am, Olaf van der Spek <olafvds...@gmail.com> wrote:
> On Wed, Aug 24, 2011 at 11:52 PM, Death_Master
>

Olaf van der Spek

unread,
Aug 25, 2011, 7:55:51 AM8/25/11
to xbt-t...@googlegroups.com
On Thu, Aug 25, 2011 at 1:55 PM, Death_Master
<ptdragon.team...@gmail.com> wrote:
> I've installed boots via ports.
> What could possibly go wrong?

It might not be in the standard (compiler) include path.

Olaf

David

unread,
Dec 3, 2013, 10:25:44 AM12/3/13
to xbt-t...@googlegroups.com
Enter the following commands in a terminal. Be patient while g++ is running, it'll take a few minutes.
svn co http://xbt.googlecode.com/svn/trunk/xbt/misc xbt/misc
svn co http://xbt.googlecode.com/svn/trunk/xbt/Tracker xbt/Tracker
cd xbt/Tracker
./make.sh
cp xbt_tracker.conf.default xbt_tracker.conf



Vào 04:52:41 UTC+7 Thứ năm, ngày 25 tháng tám năm 2011, Death_Master đã viết:
Reply all
Reply to author
Forward
0 new messages