Solved Linux Debian ./build.sh errors.

adikus95

New Member
Joined
May 17, 2009
Messages
29
Reaction score
0
Hello,
I have problems with compile TFS 0.4 Bug Fixx rev 3777 on Debian Linux.


Code:
 ^
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr.h:148,
                 from /usr/include/c++/4.9/ext/atomicity.h:35,
                 from /usr/include/c++/4.9/bits/basic_string.h:39,
                 from /usr/include/c++/4.9/string:52,
                 from /usr/include/c++/4.9/stdexcept:39,
                 from /usr/include/boost/function/function_base.hpp:14,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:24,
                 from otpch.h:35,
                 from combat.cpp:17:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
     TIME_UTC=1
     ^
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from combat.cpp:17:
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
     operator system_time() const
              ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from combat.cpp:17:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
         *xtp=get_xtime(get_system_time());
                                        ^
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from combat.cpp:17:
/usr/include/boost/thread/thread_time.hpp:19:24: note:   ‘boost::get_system_time’
     inline system_time get_system_time()
                        ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from combat.cpp:17:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
 } // namespace boost
 ^
Makefile:544: polecenia dla obiektu 'configmanager.o' nie powiodły się
make[1]: *** [configmanager.o] Błąd 1
Makefile:544: polecenia dla obiektu 'connection.o' nie powiodły się
make[1]: *** [connection.o] Błąd 1
Makefile:544: polecenia dla obiektu 'actions.o' nie powiodły się
make[1]: *** [actions.o] Błąd 1
Makefile:544: polecenia dla obiektu 'condition.o' nie powiodły się
make[1]: *** [condition.o] Błąd 1
Makefile:544: polecenia dla obiektu 'beds.o' nie powiodły się
make[1]: *** [beds.o] Błąd 1
Makefile:544: polecenia dla obiektu 'chat.o' nie powiodły się
make[1]: *** [chat.o] Błąd 1
Makefile:544: polecenia dla obiektu 'combat.o' nie powiodły się
make[1]: *** [combat.o] Błąd 1
In file included from /usr/include/pthread.h:24:0,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr.h:148,
                 from /usr/include/c++/4.9/ext/atomicity.h:35,
                 from /usr/include/c++/4.9/bits/basic_string.h:39,
                 from /usr/include/c++/4.9/string:52,
                 from /usr/include/c++/4.9/stdexcept:39,
                 from /usr/include/boost/function/function_base.hpp:14,
                 from /usr/include/boost/function/detail/prologue.hpp:17,
                 from /usr/include/boost/function.hpp:24,
                 from otpch.h:35,
                 from container.cpp:17:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
     TIME_UTC=1
     ^
/usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
/usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from container.cpp:17:
/usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
     operator system_time() const
              ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from container.cpp:17:
/usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
/usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
         *xtp=get_xtime(get_system_time());
                                        ^
/usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
In file included from /usr/include/boost/thread/locks.hpp:12:0,
                 from /usr/include/boost/thread/pthread/mutex.hpp:12,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from container.cpp:17:
/usr/include/boost/thread/thread_time.hpp:19:24: note:   ‘boost::get_system_time’
     inline system_time get_system_time()
                        ^
In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
                 from /usr/include/boost/thread/mutex.hpp:16,
                 from /usr/include/boost/thread/pthread/thread_data.hpp:12,
                 from /usr/include/boost/thread/thread.hpp:17,
                 from /usr/include/boost/thread.hpp:13,
                 from otsystem.h:34,
                 from inputbox.h:20,
                 from otpch.h:45,
                 from container.cpp:17:
/usr/include/boost/thread/xtime.hpp: At global scope:
/usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
 } // namespace boost
 ^
Makefile:544: polecenia dla obiektu 'container.o' nie powiodły się
make[1]: *** [container.o] Błąd 1
make[1]: Opuszczenie katalogu '/var/tfs/source'
Makefile:397: polecenia dla obiektu 'all' nie powiodły się
make: *** [all] Błąd 2
and more errors. It's no only this.

Can any help me?

My boostlibs:
Code:
libboost-date-time-dev                          install
libboost-date-time1.49-dev                      install
libboost-date-time1.49.0                        install
libboost-dev                                    install
libboost-filesystem-dev                         install
libboost-filesystem1.49-dev                     install
libboost-filesystem1.49.0                       install
libboost-iostreams1.49.0                        install
libboost-regex-dev                              install
libboost-regex1.49-dev                          install
libboost-regex1.49.0                            install
libboost-serialization1.49-dev                  install
libboost-serialization1.49.0                    install
libboost-system-dev                             install
libboost-system1.49-dev                         install
libboost-system1.49.0                           install
libboost-thread-dev                             install
libboost-thread1.49-dev                         install
libboost-thread1.49.0                           install
libboost1.49-dev                                install
 
Last edited by a moderator:
OP
adikus95

adikus95

New Member
Joined
May 17, 2009
Messages
29
Reaction score
0
try with
sudo apt-get install libboost-all-dev
The same error ;/

@UP 2
Debian GNU/Linux 7.6 wheezy

Linux ns396824.ip-176-31-124.eu 3.10.23-xxxx-std-ipv6-64 #1 SMP Tue Mar 18 14:48:24 CET 2014 x86_64 GNU/Linux



If u want dominique120 or StreamSide i can give u access to my server. And u will check where is error =/

@EDIT
SOLVED
If any ppl have this problem use this:
Code:
aptitude install libboost-all-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
No this:
Code:
apt-get install libboost1.41-dev libboost-system1.41-dev libboost-filesystem1.41-dev libboost-date-time1.41-dev libboost-regex1.41-dev libboost-thread1.41-dev libgmp3-dev liblua5.1-0 liblua5.1-0-dev liblua50 liblua50-dev liblualib50 liblualib50-dev lua50 lua5.1 libsqlite0-dev libsqlite3-dev sqlite3 libmysql++-dev libmysqlclient-dev mysql-client-5.1 mysql-server-5.1 mysql-common libxml2-dev libxml++2.6-dev cpp gcc g++ make automake autoconf pkg-config subversion liblua5.1-sql-mysql-dev liblua5.1-sql-sqlite3-dev zlib1g-dev zlib1g libcrypto++-dev libcrypto++8
Because new linux debian 7.6 wheezy has problems with downloading and installing libs.
 
Last edited:
Top