Jump to content
Калькуляторы

xbtt не компилится на FreeBSD 8

Добрый день!

Может кто подскажет, как собрать xbtt трекер на FreeBSD 8.1 amd64?

# uname -a
FreeBSD media.foboss.net 8.1-STABLE FreeBSD 8.1-STABLE #0 r212618: Wed Sep 15 21:26:51 UTC 2010     dima@fileserver.fob:/usr/obj/usr/src/sys/FSERV  amd64

# g++ -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]

# pkg_info | grep boost
boost-all-1.43.0    The "meta-port" for boost libraries
boost-docs-1.43.0   Documentation for libraries from boost.org
boost-jam-1.43.0    Build tool from the boost.org
boost-libs-1.43.0_1 Free portable C++ libraries (without Boost.Python)
boost-python-libs-1.43.0 Framework for interfacing Python and C++

 

Выдает вот такую ошибку при сборке:

# ./make.sh
In file included from server.h:5,
                 from connection.cpp:9:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from connection.cpp:9:
epoll.h:34: error: 'epoll_event' has not been declared
connection.cpp: In member function 'virtual void Cconnection::process_events(int)':
connection.cpp:285: error: 'EPOLLIN' was not declared in this scope
connection.cpp:285: error: 'EPOLLPRI' was not declared in this scope
connection.cpp:285: error: 'EPOLLERR' was not declared in this scope
connection.cpp:285: error: 'EPOLLHUP' was not declared in this scope
connection.cpp:286: error: 'EPOLLOUT' was not declared in this scope
In file included from epoll.cpp:2:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from epoll.cpp:2:
epoll.h:34: error: 'epoll_event' has not been declared
epoll.cpp: In member function 'int Cepoll::create(int)':
epoll.cpp:20: error: 'epoll_create' was not declared in this scope
epoll.cpp: In member function 'int Cepoll::ctl(int, int, int, void*)':
epoll.cpp:29: error: 'epoll_event' was not declared in this scope
epoll.cpp:29: error: expected `;' before 'e'
epoll.cpp:30: error: 'e' was not declared in this scope
epoll.cpp:32: error: 'epoll_ctl' was not declared in this scope
epoll.cpp: At global scope:
epoll.cpp:38: error: 'int Cepoll::wait' is not a static member of 'class Cepoll'
epoll.cpp:38: error: 'epoll_event' was not declared in this scope
epoll.cpp:38: error: 'events' was not declared in this scope
epoll.cpp:38: error: expected primary-expression before 'int'
epoll.cpp:38: error: expected primary-expression before 'int'
epoll.cpp:38: error: initializer expression list treated as compound expression
epoll.cpp:39: error: expected ',' or ';' before '{' token
In file included from server.h:5,
                 from server.cpp:2:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from server.cpp:2:
epoll.h:34: error: 'epoll_event' has not been declared
server.cpp: In member function 'int Cserver::run()':
server.cpp:67: error: 'EPOLL_CTL_ADD' was not declared in this scope
server.cpp:67: error: 'EPOLLIN' was not declared in this scope
server.cpp:67: error: 'EPOLLOUT' was not declared in this scope
server.cpp:67: error: 'EPOLLPRI' was not declared in this scope
server.cpp:67: error: 'EPOLLERR' was not declared in this scope
server.cpp:67: error: 'EPOLLHUP' was not declared in this scope
server.cpp:83: error: 'EPOLL_CTL_ADD' was not declared in this scope
server.cpp:83: error: 'EPOLLIN' was not declared in this scope
server.cpp:83: error: 'EPOLLPRI' was not declared in this scope
server.cpp:83: error: 'EPOLLERR' was not declared in this scope
server.cpp:83: error: 'EPOLLHUP' was not declared in this scope
server.cpp:113: error: 'epoll_event' was not declared in this scope
server.cpp:113: error: template argument 1 is invalid
server.cpp:113: error: invalid type in declaration before ';' token
server.cpp:122: error: request for member 'data' in 'events', which is of non-class type 'int'
server.cpp:122: error: request for member 'size' in 'events', which is of non-class type 'int'
server.cpp:130: error: invalid types 'int[int]' for array subscript
server.cpp:130: error: invalid types 'int[int]' for array subscript
server.cpp: In member function 'void Cserver::accept(const Csocket&)':
server.cpp:234: error: 'EPOLLIN' was not declared in this scope
server.cpp:238: error: 'EPOLL_CTL_ADD' was not declared in this scope
server.cpp:238: error: 'EPOLLOUT' was not declared in this scope
server.cpp:238: error: 'EPOLLPRI' was not declared in this scope
server.cpp:238: error: 'EPOLLERR' was not declared in this scope
server.cpp:238: error: 'EPOLLHUP' was not declared in this scope
server.cpp:238: error: 'EPOLLET' was not declared in this scope
In file included from server.h:5,
                 from tcp_listen_socket.cpp:4:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from tcp_listen_socket.cpp:4:
epoll.h:34: error: 'epoll_event' has not been declared
In file included from server.h:5,
                 from transaction.h:3,
                 from transaction.cpp:2:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from transaction.h:3,
                 from transaction.cpp:2:
epoll.h:34: error: 'epoll_event' has not been declared
In file included from server.h:5,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
epoll.h:34: error: 'epoll_event' has not been declared
udp_listen_socket.cpp: In member function 'virtual void Cudp_listen_socket::process_events(int)':
udp_listen_socket.cpp:19: error: 'EPOLLIN' was not declared in this scope
In file included from server.h:5,
                 from XBT Tracker.cpp:5:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from server.h:5,
                 from XBT Tracker.cpp:5:
epoll.h:34: error: 'epoll_event' has not been declared

может кто сталкивался?

Share this post


Link to post
Share on other sites

 

UPD. Ниже правильно написали, что нужно пользоваться другим скриптом сборки

Edited by marikoda

Share this post


Link to post
Share on other sites
http://re-tracker.ru/index.php?showtopic=313

Бан в гугле - страшное дело. :)

Ну кстати инструкция так себе, для ретрекера mysql не нужен.

 

Вот вполне достаточный конфиг для ретркера:

log_access  =  0
log_announce =  0
anonymous_connect = 1
anonymous_announce = 1
debug =  0
gzip_debug =  0
gzip_scrape =  0
announce_interval =  600
listen_port = 80
auto_register = 1
mysql_host = -
pid_file = /var/run/xbt_tracker.pid

Share this post


Link to post
Share on other sites
http://re-tracker.ru/index.php?showtopic=313

Бан в гугле - страшное дело. :)

страшное ))

только проблема в том, что

[root@media /usr/local/xbt/Tracker]# ls -l | grep make
-rwxr-xr-x  1 root  wheel    522 Oct  4 19:07 make.sh

нет у меня make.bsd.sh ((( что делать?

Edited by 911

Share this post


Link to post
Share on other sites
мда... вы фряхой сами рулите или дали погонять? :)

 

http://sourceforge.net/projects/xbtt/forum...4/topic/3395068 №5

[root@media /usr/local/xbt/Tracker]# grep '/usr/local/include' make.sh
g++ $@ -DEPOLL -DNDEBUG -I ../misc -I . -O3 -o xbt_tracker -I /usr/local/include \

как бы это первым делом было добавлено :)

Share this post


Link to post
Share on other sites
-DEPOLL это Вы сами добавили или было?
было, я тока -I /usr/local/include добавил

 

-DEPOLL это Вы сами добавили или было?
убрал, заработало :) спасибо ;)

Share this post


Link to post
Share on other sites

Добрый день уважаемое комьюнити.

 

У меня похожая проблема с установкой XBTT - трекера на FreeBSD 8.1-STABLE

 

При попытке выполнить ./make.sh получаю примерно такой же список ошибок.

Подскажите пожалуйста, как исправить эту ситуацию. Если честно, не всё понятно из изложенного выше. Вроде сделал всё как написано, а исправить всё равно не получилось.

 

 = U, T = const unsigned char*]'
../misc/xbt/virtual_binary.h: In member function 'const_memory_range Cvirtual_binary::range() const':
../misc/xbt/virtual_binary.h:86: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'memory_range Cvirtual_binary::mutable_range()':
../misc/xbt/virtual_binary.h:91: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:93: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:97: error: invalid use of incomplete type 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:13: error: forward declaration of 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:99: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'void Cvirtual_binary::resize(size_t)':
../misc/xbt/virtual_binary.h:114: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:117: error: 'm_source' was not declared in this scope
In file included from server.h:4,
                 from transaction.h:3,
                 from transaction.cpp:2:
connection.h: At global scope:
connection.h:9: error: 'boost' has not been declared
connection.h:9: error: expected `{' before 'noncopyable'
connection.h:9: error: function definition does not declare parameters
In file included from server.h:5,
                 from transaction.h:3,
                 from transaction.cpp:2:
epoll.h:29: error: 'boost' has not been declared
epoll.h:29: error: expected `{' before 'noncopyable'
epoll.h:29: error: function definition does not declare parameters
In file included from ../misc/xbt/database.h:5,
                 from server.h:13,
                 from transaction.h:3,
                 from transaction.cpp:2:
../misc/xbt/sql_result.h:15: error: 'boost' has not been declared
../misc/xbt/sql_result.h:15: error: expected `{' before 'noncopyable'
../misc/xbt/sql_result.h:15: error: function definition does not declare parameters
../misc/xbt/sql_result.h:86: error: expected `)' before ',' token
../misc/xbt/sql_result.h:102: error: 'MYSQL_ROW' does not name a type
../misc/xbt/sql_result.h:104: error: 'boost' has not been declared
../misc/xbt/sql_result.h:104: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:104: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'Csql_row::operator bool() const':
../misc/xbt/sql_result.h:94: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'Csql_field Csql_row::operator[](size_t) const':
../misc/xbt/sql_result.h:99: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: At global scope:
../misc/xbt/sql_result.h:112: error: expected `)' before '*' token
../misc/xbt/sql_result.h:141: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../misc/xbt/sql_result.h:141: error: expected ';' before '*' token
../misc/xbt/sql_result.h:146: error: expected `;' before 'boost'
../misc/xbt/sql_result.h:146: error: 'boost' has not been declared
../misc/xbt/sql_result.h:146: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:146: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_fields() const':
../misc/xbt/sql_result.h:128: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:128: error: 'mysql_num_fields' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_rows() const':
../misc/xbt/sql_result.h:133: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:133: error: 'mysql_num_rows' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'void Csql_result::data_seek(int)':
../misc/xbt/sql_result.h:138: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:138: error: 'mysql_data_seek' was not declared in this scope
In file included from server.h:13,
                 from transaction.h:3,
                 from transaction.cpp:2:
../misc/xbt/database.h: At global scope:
../misc/xbt/database.h:7: error: 'boost' has not been declared
../misc/xbt/database.h:7: error: expected `{' before 'noncopyable'
../misc/xbt/database.h:7: error: function definition does not declare parameters
In file included from transaction.h:3,
                 from transaction.cpp:2:
server.h:64: error: 'boost' has not been declared
server.h:64: error: ISO C++ forbids declaration of 'array' with no type
server.h:64: error: expected ';' before '<' token
server.h:170: error: 'boost' has not been declared
server.h:170: error: ISO C++ forbids declaration of 'ptr_list' with no type
server.h:170: error: typedef name may not be a nested-name-specifier
server.h:170: error: expected ';' before '<' token
server.h:199: error: 't_connections' does not name a type
server.h:201: error: field 'm_epoll' has incomplete type
In file included from udp_listen_socket.cpp:1:
stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory
In file included from client.h:3,
                 from udp_listen_socket.h:3,
                 from udp_listen_socket.cpp:2:
../misc/socket.h:3:32: error: boost/shared_ptr.hpp: No such file or directory
../misc/socket.h:4:29: error: boost/utility.hpp: No such file or directory
In file included from ../misc/socket.h:6,
                 from client.h:3,
                 from udp_listen_socket.h:3,
                 from udp_listen_socket.cpp:2:
../misc/xbt/const_memory_range.h:3:27: error: boost/array.hpp: No such file or directory
In file included from config.h:3,
                 from server.h:3,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/config_base.h:3:38: error: boost/algorithm/string.hpp: No such file or directory
In file included from connection.h:5,
                 from server.h:4,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/xbt/virtual_binary.h:3:29: error: boost/version.hpp: No such file or directory
In file included from server.h:5,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from transaction.h:3,
                 from udp_listen_socket.cpp:4:
server.h:10:44: error: boost/ptr_container/ptr_list.hpp: No such file or directory
server.h:11:43: error: boost/ptr_container/ptr_map.hpp: No such file or directory
In file included from ../misc/xbt/database.h:5,
                 from server.h:13,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/xbt/sql_result.h:13:25: error: mysql/mysql.h: No such file or directory
In file included from ../misc/socket.h:6,
                 from client.h:3,
                 from udp_listen_socket.h:3,
                 from udp_listen_socket.cpp:2:
../misc/xbt/const_memory_range.h:34: error: 'boost' has not been declared
../misc/xbt/const_memory_range.h:34: error: expected `)' before '<' token
../misc/xbt/const_memory_range.h:40: error: 'boost' has not been declared
../misc/xbt/const_memory_range.h:40: error: expected `)' before '<' token
../misc/xbt/const_memory_range.h:156: error: expected ',' or '...' before '::' token
../misc/xbt/const_memory_range.h:156: error: ISO C++ forbids declaration of 'boost' with no type
../misc/xbt/const_memory_range.h:162: error: expected ',' or '...' before '::' token
../misc/xbt/const_memory_range.h:162: error: ISO C++ forbids declaration of 'boost' with no type
../misc/xbt/const_memory_range.h: In constructor 'const_memory_range_base<T>::const_memory_range_base(int)':
../misc/xbt/const_memory_range.h:158: error: 'v' was not declared in this scope
../misc/xbt/const_memory_range.h: In constructor 'const_memory_range_base<T>::const_memory_range_base(int)':
../misc/xbt/const_memory_range.h:164: error: 'v' was not declared in this scope
In file included from client.h:3,
                 from udp_listen_socket.h:3,
                 from udp_listen_socket.cpp:2:
../misc/socket.h: At global scope:
../misc/socket.h:70: error: 'boost' has not been declared
../misc/socket.h:70: error: expected `{' before 'noncopyable'
../misc/socket.h:70: error: function definition does not declare parameters
../misc/socket.h:120: error: 'boost' has not been declared
../misc/socket.h:120: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/socket.h:120: error: expected ';' before '<' token
../misc/socket.h: In member function 'Csocket::operator SOCKET() const':
../misc/socket.h:117: error: 'm_source' was not declared in this scope
In file included from config.h:3,
                 from server.h:3,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/config_base.h: In member function 'std::istream& Cconfig_base::load(std::istream&)':
../misc/config_base.h:61: error: 'boost' has not been declared
../misc/config_base.h:61: error: 'boost' has not been declared
In file included from connection.h:5,
                 from server.h:4,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/xbt/virtual_binary.h: At global scope:
../misc/xbt/virtual_binary.h:13: error: 'boost' has not been declared
../misc/xbt/virtual_binary.h:13: error: expected `{' before 'noncopyable'
../misc/xbt/virtual_binary.h:13: error: function definition does not declare parameters
../misc/xbt/virtual_binary.h:135: error: 'boost' has not been declared
../misc/xbt/virtual_binary.h:135: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/virtual_binary.h:135: error: expected ';' before '<' token
../misc/xbt/const_memory_range.h: In instantiation of 'const_memory_range_base<const unsigned char*>':
../misc/xbt/virtual_binary.h:56:   instantiated from here
../misc/xbt/const_memory_range.h:162: error: 'template<long unsigned int U> const_memory_range_base::const_memory_range_base(int) [with long unsigned int U = U, T = const unsigned char*]' cannot be overloaded
../misc/xbt/const_memory_range.h:156: error: with 'template<long unsigned int U> const_memory_range_base::const_memory_range_base(int) [with long unsigned int U = U, T = const unsigned char*]'
../misc/xbt/virtual_binary.h: In member function 'const_memory_range Cvirtual_binary::range() const':
../misc/xbt/virtual_binary.h:86: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'memory_range Cvirtual_binary::mutable_range()':
../misc/xbt/virtual_binary.h:91: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:93: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:97: error: invalid use of incomplete type 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:13: error: forward declaration of 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:99: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'void Cvirtual_binary::resize(size_t)':
../misc/xbt/virtual_binary.h:114: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:117: error: 'm_source' was not declared in this scope
In file included from server.h:4,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
connection.h: At global scope:
connection.h:9: error: 'boost' has not been declared
connection.h:9: error: expected `{' before 'noncopyable'
connection.h:9: error: function definition does not declare parameters
In file included from server.h:5,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
epoll.h:29: error: 'boost' has not been declared
epoll.h:29: error: expected `{' before 'noncopyable'
epoll.h:29: error: function definition does not declare parameters
In file included from ../misc/xbt/database.h:5,
                 from server.h:13,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/xbt/sql_result.h:15: error: 'boost' has not been declared
../misc/xbt/sql_result.h:15: error: expected `{' before 'noncopyable'
../misc/xbt/sql_result.h:15: error: function definition does not declare parameters
../misc/xbt/sql_result.h:86: error: expected `)' before ',' token
../misc/xbt/sql_result.h:102: error: 'MYSQL_ROW' does not name a type
../misc/xbt/sql_result.h:104: error: 'boost' has not been declared
../misc/xbt/sql_result.h:104: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:104: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'Csql_row::operator bool() const':
../misc/xbt/sql_result.h:94: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'Csql_field Csql_row::operator[](size_t) const':
../misc/xbt/sql_result.h:99: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: At global scope:
../misc/xbt/sql_result.h:112: error: expected `)' before '*' token
../misc/xbt/sql_result.h:141: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../misc/xbt/sql_result.h:141: error: expected ';' before '*' token
../misc/xbt/sql_result.h:146: error: expected `;' before 'boost'
../misc/xbt/sql_result.h:146: error: 'boost' has not been declared
../misc/xbt/sql_result.h:146: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:146: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_fields() const':
../misc/xbt/sql_result.h:128: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:128: error: 'mysql_num_fields' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_rows() const':
../misc/xbt/sql_result.h:133: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:133: error: 'mysql_num_rows' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'void Csql_result::data_seek(int)':
../misc/xbt/sql_result.h:138: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:138: error: 'mysql_data_seek' was not declared in this scope
In file included from server.h:13,
                 from transaction.h:3,
                 from udp_listen_socket.cpp:4:
../misc/xbt/database.h: At global scope:
../misc/xbt/database.h:7: error: 'boost' has not been declared
../misc/xbt/database.h:7: error: expected `{' before 'noncopyable'
../misc/xbt/database.h:7: error: function definition does not declare parameters
In file included from transaction.h:3,
                 from udp_listen_socket.cpp:4:
server.h:64: error: 'boost' has not been declared
server.h:64: error: ISO C++ forbids declaration of 'array' with no type
server.h:64: error: expected ';' before '<' token
server.h:170: error: 'boost' has not been declared
server.h:170: error: ISO C++ forbids declaration of 'ptr_list' with no type
server.h:170: error: typedef name may not be a nested-name-specifier
server.h:170: error: expected ';' before '<' token
server.h:199: error: 't_connections' does not name a type
server.h:201: error: field 'm_epoll' has incomplete type
udp_listen_socket.cpp: In member function 'virtual void Cudp_listen_socket::process_events(int)':
udp_listen_socket.cpp:19: error: 'EPOLLIN' was not declared in this scope
In file included from XBT Tracker.cpp:1:
stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory
In file included from config.h:3,
                 from XBT Tracker.cpp:4:
../misc/config_base.h:3:38: error: boost/algorithm/string.hpp: No such file or directory
In file included from client.h:3,
                 from connection.h:3,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/socket.h:3:32: error: boost/shared_ptr.hpp: No such file or directory
../misc/socket.h:4:29: error: boost/utility.hpp: No such file or directory
In file included from ../misc/socket.h:6,
                 from client.h:3,
                 from connection.h:3,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/xbt/const_memory_range.h:3:27: error: boost/array.hpp: No such file or directory
In file included from connection.h:5,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/xbt/virtual_binary.h:3:29: error: boost/version.hpp: No such file or directory
In file included from server.h:5,
                 from XBT Tracker.cpp:5:
epoll.h:6:23: error: sys/epoll.h: No such file or directory
In file included from XBT Tracker.cpp:5:
server.h:10:44: error: boost/ptr_container/ptr_list.hpp: No such file or directory
server.h:11:43: error: boost/ptr_container/ptr_map.hpp: No such file or directory
In file included from ../misc/xbt/database.h:5,
                 from server.h:13,
                 from XBT Tracker.cpp:5:
../misc/xbt/sql_result.h:13:25: error: mysql/mysql.h: No such file or directory
In file included from config.h:3,
                 from XBT Tracker.cpp:4:
../misc/config_base.h: In member function 'std::istream& Cconfig_base::load(std::istream&)':
../misc/config_base.h:61: error: 'boost' has not been declared
../misc/config_base.h:61: error: 'boost' has not been declared
In file included from ../misc/socket.h:6,
                 from client.h:3,
                 from connection.h:3,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/xbt/const_memory_range.h: At global scope:
../misc/xbt/const_memory_range.h:34: error: 'boost' has not been declared
../misc/xbt/const_memory_range.h:34: error: expected `)' before '<' token
../misc/xbt/const_memory_range.h:40: error: 'boost' has not been declared
../misc/xbt/const_memory_range.h:40: error: expected `)' before '<' token
../misc/xbt/const_memory_range.h:156: error: expected ',' or '...' before '::' token
../misc/xbt/const_memory_range.h:156: error: ISO C++ forbids declaration of 'boost' with no type
../misc/xbt/const_memory_range.h:162: error: expected ',' or '...' before '::' token
../misc/xbt/const_memory_range.h:162: error: ISO C++ forbids declaration of 'boost' with no type
../misc/xbt/const_memory_range.h: In constructor 'const_memory_range_base<T>::const_memory_range_base(int)':
../misc/xbt/const_memory_range.h:158: error: 'v' was not declared in this scope
../misc/xbt/const_memory_range.h: In constructor 'const_memory_range_base<T>::const_memory_range_base(int)':
../misc/xbt/const_memory_range.h:164: error: 'v' was not declared in this scope
In file included from client.h:3,
                 from connection.h:3,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/socket.h: At global scope:
../misc/socket.h:70: error: 'boost' has not been declared
../misc/socket.h:70: error: expected `{' before 'noncopyable'
../misc/socket.h:70: error: function definition does not declare parameters
../misc/socket.h:120: error: 'boost' has not been declared
../misc/socket.h:120: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/socket.h:120: error: expected ';' before '<' token
../misc/socket.h: In member function 'Csocket::operator SOCKET() const':
../misc/socket.h:117: error: 'm_source' was not declared in this scope
In file included from connection.h:5,
                 from server.h:4,
                 from XBT Tracker.cpp:5:
../misc/xbt/virtual_binary.h: At global scope:
../misc/xbt/virtual_binary.h:13: error: 'boost' has not been declared
../misc/xbt/virtual_binary.h:13: error: expected `{' before 'noncopyable'
../misc/xbt/virtual_binary.h:13: error: function definition does not declare parameters
../misc/xbt/virtual_binary.h:135: error: 'boost' has not been declared
../misc/xbt/virtual_binary.h:135: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/virtual_binary.h:135: error: expected ';' before '<' token
../misc/xbt/const_memory_range.h: In instantiation of 'const_memory_range_base<const unsigned char*>':
../misc/xbt/virtual_binary.h:56:   instantiated from here
../misc/xbt/const_memory_range.h:162: error: 'template<long unsigned int U> const_memory_range_base::const_memory_range_base(int) [with long unsigned int U = U, T = const unsigned char*]' cannot be overloaded
../misc/xbt/const_memory_range.h:156: error: with 'template<long unsigned int U> const_memory_range_base::const_memory_range_base(int) [with long unsigned int U = U, T = const unsigned char*]'
../misc/xbt/virtual_binary.h: In member function 'const_memory_range Cvirtual_binary::range() const':
../misc/xbt/virtual_binary.h:86: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'memory_range Cvirtual_binary::mutable_range()':
../misc/xbt/virtual_binary.h:91: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:93: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:97: error: invalid use of incomplete type 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:13: error: forward declaration of 'class Cvirtual_binary_source'
../misc/xbt/virtual_binary.h:99: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h: In member function 'void Cvirtual_binary::resize(size_t)':
../misc/xbt/virtual_binary.h:114: error: 'm_source' was not declared in this scope
../misc/xbt/virtual_binary.h:117: error: 'm_source' was not declared in this scope
In file included from server.h:4,
                 from XBT Tracker.cpp:5:
connection.h: At global scope:
connection.h:9: error: 'boost' has not been declared
connection.h:9: error: expected `{' before 'noncopyable'
connection.h:9: error: function definition does not declare parameters
In file included from server.h:5,
                 from XBT Tracker.cpp:5:
epoll.h:29: error: 'boost' has not been declared
epoll.h:29: error: expected `{' before 'noncopyable'
epoll.h:29: error: function definition does not declare parameters
In file included from ../misc/xbt/database.h:5,
                 from server.h:13,
                 from XBT Tracker.cpp:5:
../misc/xbt/sql_result.h:15: error: 'boost' has not been declared
../misc/xbt/sql_result.h:15: error: expected `{' before 'noncopyable'
../misc/xbt/sql_result.h:15: error: function definition does not declare parameters
../misc/xbt/sql_result.h:86: error: expected `)' before ',' token
../misc/xbt/sql_result.h:102: error: 'MYSQL_ROW' does not name a type
../misc/xbt/sql_result.h:104: error: 'boost' has not been declared
../misc/xbt/sql_result.h:104: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:104: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'Csql_row::operator bool() const':
../misc/xbt/sql_result.h:94: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'Csql_field Csql_row::operator[](size_t) const':
../misc/xbt/sql_result.h:99: error: 'm_data' was not declared in this scope
../misc/xbt/sql_result.h: At global scope:
../misc/xbt/sql_result.h:112: error: expected `)' before '*' token
../misc/xbt/sql_result.h:141: error: ISO C++ forbids declaration of 'MYSQL_RES' with no type
../misc/xbt/sql_result.h:141: error: expected ';' before '*' token
../misc/xbt/sql_result.h:146: error: expected `;' before 'boost'
../misc/xbt/sql_result.h:146: error: 'boost' has not been declared
../misc/xbt/sql_result.h:146: error: ISO C++ forbids declaration of 'shared_ptr' with no type
../misc/xbt/sql_result.h:146: error: expected ';' before '<' token
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_fields() const':
../misc/xbt/sql_result.h:128: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:128: error: 'mysql_num_fields' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'int Csql_result::c_rows() const':
../misc/xbt/sql_result.h:133: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:133: error: 'mysql_num_rows' was not declared in this scope
../misc/xbt/sql_result.h: In member function 'void Csql_result::data_seek(int)':
../misc/xbt/sql_result.h:138: error: 'h' was not declared in this scope
../misc/xbt/sql_result.h:138: error: 'mysql_data_seek' was not declared in this scope
In file included from server.h:13,
                 from XBT Tracker.cpp:5:
../misc/xbt/database.h: At global scope:
../misc/xbt/database.h:7: error: 'boost' has not been declared
../misc/xbt/database.h:7: error: expected `{' before 'noncopyable'
../misc/xbt/database.h:7: error: function definition does not declare parameters
In file included from XBT Tracker.cpp:5:
server.h:64: error: 'boost' has not been declared
server.h:64: error: ISO C++ forbids declaration of 'array' with no type
server.h:64: error: expected ';' before '<' token
server.h:170: error: 'boost' has not been declared
server.h:170: error: ISO C++ forbids declaration of 'ptr_list' with no type
server.h:170: error: typedef name may not be a nested-name-specifier
server.h:170: error: expected ';' before '<' token
server.h:199: error: 't_connections' does not name a type
server.h:201: error: field 'm_epoll' has incomplete type
XBT Tracker.cpp: In function 'int main1()':
XBT Tracker.cpp:31: error: aggregate 'Cdatabase database' has incomplete type and cannot be defined
XBT Tracker.cpp:37: error: expected type-specifier
XBT Tracker.cpp:37: error: expected unqualified-id before '&' token
XBT Tracker.cpp:37: error: expected `)' before '&' token
XBT Tracker.cpp:37: error: expected `{' before '&' token
XBT Tracker.cpp:37: error: 'e' was not declared in this scope
XBT Tracker.cpp:37: error: expected `;' before ')' token

Share this post


Link to post
Share on other sites

1. У Вас буста нет

2. -DEPOLL тоже надо убрать

3. Нужны хедеры и либы мускуля

Share this post


Link to post
Share on other sites

Я прошу прощения, за очередной нубовский вопрос, а как это сделать?

Ну или где поискать, чтобы не задавать подбных вопросов в следующий раз..

Share this post


Link to post
Share on other sites

Яндекс, Гугл и пр.

Тема весьма популярная.

Share this post


Link to post
Share on other sites

Deac

Большое спасибо за вразумительный ответ и дельный совет.

На 9 из 10 ресурсов ответ примерно такой же.

 

Ничего личного, но смысл от такого комментария?

Отправить человека, который ищет решение проблемы искать дальше?

 

Я не имею, пока представления о том, каким образом необходимо решить эту проблему.

 

Ничего личного против Вас, Deac, не имею, наболело уже.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this