Solved Linux Debian ./build.sh errors.

Discussion in 'Support' started by adikus95, Oct 16, 2014.

  1. adikus95

    adikus95 New Member

    Joined:
    May 17, 2009
    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Hello,
    I have problems with compile TFS 0.4 Bug Fixx rev 3777 on Debian Linux.


    Code (Text):
    1.  
    2.  
    3.  ^
    4. In file included from /usr/include/pthread.h:24:0,
    5.                  from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr-default.h:35,
    6.                  from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr.h:148,
    7.                  from /usr/include/c++/4.9/ext/atomicity.h:35,
    8.                  from /usr/include/c++/4.9/bits/basic_string.h:39,
    9.                  from /usr/include/c++/4.9/string:52,
    10.                  from /usr/include/c++/4.9/stdexcept:39,
    11.                  from /usr/include/boost/function/function_base.hpp:14,
    12.                  from /usr/include/boost/function/detail/prologue.hpp:17,
    13.                  from /usr/include/boost/function.hpp:24,
    14.                  from otpch.h:35,
    15.                  from combat.cpp:17:
    16. /usr/include/boost/thread/xtime.hpp: At global scope:
    17. /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
    18.      TIME_UTC=1
    19.      ^
    20. /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
    21. /usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
    22. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    23.                  from /usr/include/boost/thread/mutex.hpp:16,
    24.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    25.                  from /usr/include/boost/thread/thread.hpp:17,
    26.                  from /usr/include/boost/thread.hpp:13,
    27.                  from otsystem.h:34,
    28.                  from inputbox.h:20,
    29.                  from otpch.h:45,
    30.                  from combat.cpp:17:
    31. /usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
    32.      operator system_time() const
    33.               ^
    34. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    35.                  from /usr/include/boost/thread/mutex.hpp:16,
    36.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    37.                  from /usr/include/boost/thread/thread.hpp:17,
    38.                  from /usr/include/boost/thread.hpp:13,
    39.                  from otsystem.h:34,
    40.                  from inputbox.h:20,
    41.                  from otpch.h:45,
    42.                  from combat.cpp:17:
    43. /usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
    44. /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
    45.          *xtp=get_xtime(get_system_time());
    46.                                         ^
    47. /usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
    48. In file included from /usr/include/boost/thread/locks.hpp:12:0,
    49.                  from /usr/include/boost/thread/pthread/mutex.hpp:12,
    50.                  from /usr/include/boost/thread/mutex.hpp:16,
    51.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    52.                  from /usr/include/boost/thread/thread.hpp:17,
    53.                  from /usr/include/boost/thread.hpp:13,
    54.                  from otsystem.h:34,
    55.                  from inputbox.h:20,
    56.                  from otpch.h:45,
    57.                  from combat.cpp:17:
    58. /usr/include/boost/thread/thread_time.hpp:19:24: note:   ‘boost::get_system_time’
    59.      inline system_time get_system_time()
    60.                         ^
    61. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    62.                  from /usr/include/boost/thread/mutex.hpp:16,
    63.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    64.                  from /usr/include/boost/thread/thread.hpp:17,
    65.                  from /usr/include/boost/thread.hpp:13,
    66.                  from otsystem.h:34,
    67.                  from inputbox.h:20,
    68.                  from otpch.h:45,
    69.                  from combat.cpp:17:
    70. /usr/include/boost/thread/xtime.hpp: At global scope:
    71. /usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
    72.  } // namespace boost
    73.  ^
    74. Makefile:544: polecenia dla obiektu 'configmanager.o' nie powiodły się
    75. make[1]: *** [configmanager.o] Błąd 1
    76. Makefile:544: polecenia dla obiektu 'connection.o' nie powiodły się
    77. make[1]: *** [connection.o] Błąd 1
    78. Makefile:544: polecenia dla obiektu 'actions.o' nie powiodły się
    79. make[1]: *** [actions.o] Błąd 1
    80. Makefile:544: polecenia dla obiektu 'condition.o' nie powiodły się
    81. make[1]: *** [condition.o] Błąd 1
    82. Makefile:544: polecenia dla obiektu 'beds.o' nie powiodły się
    83. make[1]: *** [beds.o] Błąd 1
    84. Makefile:544: polecenia dla obiektu 'chat.o' nie powiodły się
    85. make[1]: *** [chat.o] Błąd 1
    86. Makefile:544: polecenia dla obiektu 'combat.o' nie powiodły się
    87. make[1]: *** [combat.o] Błąd 1
    88. In file included from /usr/include/pthread.h:24:0,
    89.                  from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr-default.h:35,
    90.                  from /usr/include/x86_64-linux-gnu/c++/4.9/bits/gthr.h:148,
    91.                  from /usr/include/c++/4.9/ext/atomicity.h:35,
    92.                  from /usr/include/c++/4.9/bits/basic_string.h:39,
    93.                  from /usr/include/c++/4.9/string:52,
    94.                  from /usr/include/c++/4.9/stdexcept:39,
    95.                  from /usr/include/boost/function/function_base.hpp:14,
    96.                  from /usr/include/boost/function/detail/prologue.hpp:17,
    97.                  from /usr/include/boost/function.hpp:24,
    98.                  from otpch.h:35,
    99.                  from container.cpp:17:
    100. /usr/include/boost/thread/xtime.hpp: At global scope:
    101. /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
    102.      TIME_UTC=1
    103.      ^
    104. /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
    105. /usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
    106. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    107.                  from /usr/include/boost/thread/mutex.hpp:16,
    108.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    109.                  from /usr/include/boost/thread/thread.hpp:17,
    110.                  from /usr/include/boost/thread.hpp:13,
    111.                  from otsystem.h:34,
    112.                  from inputbox.h:20,
    113.                  from otpch.h:45,
    114.                  from container.cpp:17:
    115. /usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
    116.      operator system_time() const
    117.               ^
    118. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    119.                  from /usr/include/boost/thread/mutex.hpp:16,
    120.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    121.                  from /usr/include/boost/thread/thread.hpp:17,
    122.                  from /usr/include/boost/thread.hpp:13,
    123.                  from otsystem.h:34,
    124.                  from inputbox.h:20,
    125.                  from otpch.h:45,
    126.                  from container.cpp:17:
    127. /usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
    128. /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
    129.          *xtp=get_xtime(get_system_time());
    130.                                         ^
    131. /usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative:
    132. In file included from /usr/include/boost/thread/locks.hpp:12:0,
    133.                  from /usr/include/boost/thread/pthread/mutex.hpp:12,
    134.                  from /usr/include/boost/thread/mutex.hpp:16,
    135.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    136.                  from /usr/include/boost/thread/thread.hpp:17,
    137.                  from /usr/include/boost/thread.hpp:13,
    138.                  from otsystem.h:34,
    139.                  from inputbox.h:20,
    140.                  from otpch.h:45,
    141.                  from container.cpp:17:
    142. /usr/include/boost/thread/thread_time.hpp:19:24: note:   ‘boost::get_system_time’
    143.      inline system_time get_system_time()
    144.                         ^
    145. In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0,
    146.                  from /usr/include/boost/thread/mutex.hpp:16,
    147.                  from /usr/include/boost/thread/pthread/thread_data.hpp:12,
    148.                  from /usr/include/boost/thread/thread.hpp:17,
    149.                  from /usr/include/boost/thread.hpp:13,
    150.                  from otsystem.h:34,
    151.                  from inputbox.h:20,
    152.                  from otpch.h:45,
    153.                  from container.cpp:17:
    154. /usr/include/boost/thread/xtime.hpp: At global scope:
    155. /usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
    156.  } // namespace boost
    157.  ^
    158. Makefile:544: polecenia dla obiektu 'container.o' nie powiodły się
    159. make[1]: *** [container.o] Błąd 1
    160. make[1]: Opuszczenie katalogu '/var/tfs/source'
    161. Makefile:397: polecenia dla obiektu 'all' nie powiodły się
    162. make: *** [all] Błąd 2
    and more errors. It's no only this.

    Can any help me?

    My boostlibs:
    Code (Text):
    1.  
    2. libboost-date-time-dev                          install
    3. libboost-date-time1.49-dev                      install
    4. libboost-date-time1.49.0                        install
    5. libboost-dev                                    install
    6. libboost-filesystem-dev                         install
    7. libboost-filesystem1.49-dev                     install
    8. libboost-filesystem1.49.0                       install
    9. libboost-iostreams1.49.0                        install
    10. libboost-regex-dev                              install
    11. libboost-regex1.49-dev                          install
    12. libboost-regex1.49.0                            install
    13. libboost-serialization1.49-dev                  install
    14. libboost-serialization1.49.0                    install
    15. libboost-system-dev                             install
    16. libboost-system1.49-dev                         install
    17. libboost-system1.49.0                           install
    18. libboost-thread-dev                             install
    19. libboost-thread1.49-dev                         install
    20. libboost-thread1.49.0                           install
    21. libboost1.49-dev                                install
    22.  
    23.  
     
    Last edited by a moderator: Oct 16, 2014
  2. dominique120

    dominique120 Science & Reason Premium User

    Joined:
    Jun 16, 2013
    Messages:
    3,891
    Likes Received:
    1,020
    Best Answers:
    2
    What version of debian are you using?
     
  3. StreamSide

    StreamSide Joseluis Gonzalez

    Joined:
    Aug 31, 2007
    Messages:
    2,880
    Likes Received:
    630
    Best Answers:
    13
    try with
    sudo apt-get install libboost-all-dev
     
  4. adikus95

    adikus95 New Member

    Joined:
    May 17, 2009
    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    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 (Text):
    1. 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
    2.  
    No this:
    Code (Text):
    1. 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
    2.  
    Because new linux debian 7.6 wheezy has problems with downloading and installing libs.
     
    Last edited: Oct 17, 2014

Share This Page

Loading...