./make.sh error

76 views
Skip to first unread message

unkno...@gmail.com

unread,
Aug 14, 2014, 8:15:25 PM8/14/14
to xbt-t...@googlegroups.com
after getting the neccesary files for install i get this error after ./make.sh command in ubuntu 12.04 64

root@ns318354:/home/xbt/xbt-source/Tracker# ./make.sh
In file included from ../misc/xbt/database.h:5:0,
                 from ../misc/database.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from ../misc/sql_query.cpp:5:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from config.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from connection.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from server.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
server.cpp: In function ‘void read_db_torrents_sql()’:
server.cpp:195:21: error: expected primary-expression before ‘auto’
server.cpp:195:45: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:196:7: error: expected ‘;’ before ‘{’ token
server.cpp: In function ‘void read_db_users()’:
server.cpp:284:17: error: expected primary-expression before ‘auto’
server.cpp:284:33: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:285:4: error: expected ‘;’ before ‘i’
server.cpp: In function ‘void write_db_torrents()’:
server.cpp:339:18: error: expected primary-expression before ‘auto’
server.cpp:339:37: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:340:4: error: expected ‘;’ before ‘{’ token
server.cpp:1099:1: error: expected ‘}’ at end of input
server.cpp:1099:1: error: expected ‘}’ at end of input
server.cpp:1099:1: error: expected ‘catch’ at end of input
server.cpp:1099:1: error: expected ‘(’ at end of input
server.cpp:1099:1: error: expected type-specifier at end of input
server.cpp:1099:1: error: expected ‘)’ at end of input
server.cpp:1099:1: error: expected ‘{’ at end of input
server.cpp:1099:1: error: expected ‘}’ at end of input
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from tracker_input.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from transaction.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope
In file included from ../misc/xbt/database.h:5:0,
                 from stdafx.h:30,
                 from XBT Tracker.cpp:1:
../misc/xbt/sql_result.h:50:23: sorry, unimplemented: non-static data member initializers
../misc/xbt/sql_result.h:50:23: error: ‘constexpr’ needed for in-class initialization of static data member ‘res_’ of non-integral type
../misc/xbt/sql_result.h: In constructor ‘Csql_result::iterator::iterator(Csql_result&)’:
../misc/xbt/sql_result.h:45:30: error: class ‘Csql_result::iterator’ does not have any field named ‘res_’
../misc/xbt/sql_result.h:45:61: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘Csql_row Csql_result::iterator::operator*()’:
../misc/xbt/sql_result.h:47:68: error: ‘res_’ was not declared in this scope
../misc/xbt/sql_result.h: In member function ‘void Csql_result::iterator::operator++()’:
../misc/xbt/sql_result.h:48:46: error: ‘res_’ was not declared in this scope

Any ideas why this would be happening?

Please help


Olaf van der Spek

unread,
Aug 15, 2014, 3:11:08 AM8/15/14
to xbt-t...@googlegroups.com
On Fri, Aug 15, 2014 at 2:15 AM, <unkno...@gmail.com> wrote:
> after getting the neccesary files for install i get this error after
> ./make.sh command in ubuntu 12.04 64
>
>
> Any ideas why this would be happening?

The g++ version should be at least 4.7.
What version are you using?

--
Olaf

unkno...@gmail.com

unread,
Aug 15, 2014, 2:40:32 PM8/15/14
to xbt-t...@googlegroups.com
The version on server is 4.6.3. Tried to upgrade to newer version it stayed the same.
Server is of ubuntu 12.04 precise.

Thnx

unkno...@gmail.com

unread,
Aug 15, 2014, 2:44:25 PM8/15/14
to xbt-t...@googlegroups.com
Have upgraded to 4.7 will try and see if this sorts the above problem

Thnx

unkno...@gmail.com

unread,
Aug 15, 2014, 3:05:47 PM8/15/14
to xbt-t...@googlegroups.com
Now have this problem not much on the net for this

root@ns318354:/home/xbt/xbt-source/Tracker# ./make.sh
connection.cpp: In member function ‘int Cconnection::pre_select(fd_set*, fd_set*)’:
connection.cpp:19:2: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]
connection.cpp:21:3: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]
connection.cpp: In member function ‘int Cconnection::post_select(fd_set*, fd_set*)’:
connection.cpp:27:9: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]
connection.cpp:28:6: warning: call to ‘__fdelt_warn’ declared with attribute warning: bit outside of fd_set selected [enabled by default]

server.cpp: In function ‘void read_db_torrents_sql()’:
server.cpp:195:21: error: expected primary-expression before ‘auto’
server.cpp:195:45: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:196:7: error: expected ‘;’ before ‘{’ token
server.cpp: In function ‘void read_db_users()’:
server.cpp:284:17: error: expected primary-expression before ‘auto’
server.cpp:284:33: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:285:4: error: expected ‘;’ before ‘i’
server.cpp: In function ‘void write_db_torrents()’:
server.cpp:339:18: error: expected primary-expression before ‘auto’
server.cpp:339:37: error: ‘BOOST_FOREACH’ was not declared in this scope
server.cpp:340:4: error: expected ‘;’ before ‘{’ token
server.cpp:1099:1: error: expected ‘}’ at end of input
server.cpp:1099:1: error: expected ‘}’ at end of input
server.cpp:1099:1: error: expected ‘catch’ at end of input
server.cpp:1099:1: error: expected ‘(’ at end of input
server.cpp:1099:1: error: expected type-specifier at end of input
server.cpp:1099:1: error: expected ‘)’ at end of input
server.cpp:1099:1: error: expected ‘{’ at end of input
server.cpp:1099:1: error: expected ‘}’ at end of input
root@ns318354:/home/xbt/xbt-source/Tracker#


Thnx

Olaf van der Spek

unread,
Aug 15, 2014, 6:10:14 PM8/15/14
to xbt-t...@googlegroups.com
What Boost version?
> --
> You received this message because you are subscribed to the Google Groups
> "XBT Tracker" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xbt-tracker...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Olaf

unkno...@gmail.com

unread,
Aug 16, 2014, 8:03:03 AM8/16/14
to xbt-t...@googlegroups.com
1.53.0 is boost version will look for higher

thnx

Olaf van der Spek

unread,
Aug 16, 2014, 8:35:32 AM8/16/14
to xbt-t...@googlegroups.com
1.53 is fine. What revision of XBT Tracker is this? Latest doesn't use
BOOST_FOREACH.

On Sat, Aug 16, 2014 at 2:03 PM, <unkno...@gmail.com> wrote:
> 1.53.0 is boost version will look for higher
>
> thnx
>

unkno...@gmail.com

unread,
Aug 16, 2014, 2:34:56 PM8/16/14
to xbt-t...@googlegroups.com

xbt - Revision 2437: /trunk/


From here


http://xbt.googlecode.com/svn/trunk/xbt/


Thnx

Reply all
Reply to author
Forward
0 new messages