Advertisement
Guest User

Untitled

a guest
Jun 7th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.36 KB | None | 0 0
  1. Please, I am trying to compile ODTONE on Ubuntu 13.04 but getting some errors.
  2.  
  3. First I download boost lib 1.49 and extracted it to /home/rodrigo/Documents/boost_1_49_0. Them I installed it running boost_1_48_0/tools/build/v2/bootstrap.sh and boost_1_48_0/tools/build/v2/b2 install. Everything works fine.
  4.  
  5. Them I download odtone and extracted it to /home/rodrigo/Documents/odtone and tryied to compile with 'b2' and 'b2 linkflags=-lpthred' option, but I am getting compile errors...
  6. For example:
  7.  
  8. rodrigo@zion:~/Documents/odtone$ b2 linkflags=-lpthread
  9. Warning: Assuming that Boost 1.49.0 root is located at /home/rodrigo/Documents/boost_1_49_0
  10. Warning: You can set the location of the Boost 1.49.0 libraries root in the command line (--boost-root=/path/to/boost) or in the environment variable BOOST_ROOT
  11. warning: No toolsets are configured.
  12. warning: Configuring default toolset "gcc".
  13. warning: If the default is wrong, your build may not work correctly.
  14. warning: Use the "toolset=xxxxx" option to override our guess.
  15. warning: For more configuration options, please consult
  16. warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
  17. ...patience...
  18. ...patience...
  19. ...patience...
  20. ...found 4091 targets...
  21. ...updating 41 targets...
  22. gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/main.o
  23. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  24. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  25. from inc/odtone/logger.hpp:25,
  26. from src/mihf/log.hpp:22,
  27. from src/mihf/main.cpp:22:
  28. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
  29. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
  30. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
  31. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
  32. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  33. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  34. from inc/odtone/logger.hpp:25,
  35. from src/mihf/log.hpp:22,
  36. from src/mihf/main.cpp:22:
  37. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
  38. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
  39. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: note: suggested alternative:
  40. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/locks.hpp:12:0,
  41. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:12,
  42. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  43. from inc/odtone/logger.hpp:25,
  44. from src/mihf/log.hpp:22,
  45. from src/mihf/main.cpp:22:
  46. /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
  47. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  48. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  49. from inc/odtone/logger.hpp:25,
  50. from src/mihf/log.hpp:22,
  51. from src/mihf/main.cpp:22:
  52. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: At global scope:
  53. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
  54. In file included from inc/odtone/exception.hpp:25:0,
  55. from inc/odtone/mih/types/base.hpp:24,
  56. from inc/odtone/mih/types/identification.hpp:24,
  57. from src/mihf/mihfid.hpp:22,
  58. from src/mihf/main.cpp:21:
  59. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:214:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
  60. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:215:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
  61. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:216:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
  62.  
  63. "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -std=c++0x -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -I"/home/rodrigo/Documents/boost_1_49_0" -I"inc" -c -o "bin.v2/src/mihf/gcc-4.7/debug/main.o" "src/mihf/main.cpp"
  64.  
  65. ...failed gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/main.o...
  66. gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/service_management.o
  67. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  68. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  69. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
  70. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
  71. from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
  72. from src/mihf/link_response_pool.hpp:27,
  73. from src/mihf/service_management.hpp:24,
  74. from src/mihf/service_management.cpp:20:
  75. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
  76. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
  77. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
  78. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
  79. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  80. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  81. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
  82. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
  83. from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
  84. from src/mihf/link_response_pool.hpp:27,
  85. from src/mihf/service_management.hpp:24,
  86. from src/mihf/service_management.cpp:20:
  87. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
  88. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
  89. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: note: suggested alternative:
  90. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/locks.hpp:12:0,
  91. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:12,
  92. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  93. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
  94. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
  95. from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
  96. from src/mihf/link_response_pool.hpp:27,
  97. from src/mihf/service_management.hpp:24,
  98. from src/mihf/service_management.cpp:20:
  99. /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
  100. In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
  101. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
  102. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
  103. from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
  104. from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
  105. from src/mihf/link_response_pool.hpp:27,
  106. from src/mihf/service_management.hpp:24,
  107. from src/mihf/service_management.cpp:20:
  108. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: At global scope:
  109. /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
  110. In file included from inc/odtone/exception.hpp:25:0,
  111. from inc/odtone/mih/types/base.hpp:24,
  112. from inc/odtone/mih/archive.hpp:25,
  113. from inc/odtone/mih/message.hpp:24,
  114. from src/mihf/meta_message.hpp:21,
  115. from src/mihf/link_response_pool.hpp:22,
  116. from src/mihf/service_management.hpp:24,
  117. from src/mihf/service_management.cpp:20:
  118. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:214:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
  119. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:215:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
  120. /home/rodrigo/Documents/boost_1_49_0/boost/system/error_code.hpp:216:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
  121.  
  122. "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -std=c++0x -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -I"/home/rodrigo/Documents/boost_1_49_0" -I"inc" -c -o "bin.v2/src/mihf/gcc-4.7/debug/service_management.o" "src/mihf/service_management.cpp"
  123.  
  124.  
  125.  
  126. ETC ETC ETC ETC!!!
  127. AND FINNALY:
  128.  
  129.  
  130.  
  131. ...failed gcc.compile.c++ bin.v2/app/mih_usr/gcc-4.7/debug/mih_usr.o...
  132. ...skipped <pdist>mih_usr for lack of <pbin.v2/app/mih_usr/gcc-4.7/debug>mih_usr.o...
  133. ...skipped <pbin.v2/src/mihf/gcc-4.7/debug>odtone-mihf for lack of <pbin.v2/src/mihf/gcc-4.7/debug>main.o...
  134. ...skipped <pbin.v2/gcc-4.7/debug>odtone-mihf.dir/usr/bin/odtone-mihf for lack of <pbin.v2/src/mihf/gcc-4.7/debug>odtone-mihf...
  135. ...skipped <pbin.v2/gcc-4.7/debug>odtone-mihf.dir/DEBIAN/control for lack of <pbin.v2/src/mihf/gcc-4.7/debug>odtone-mihf...
  136. ...failed updating 33 targets...
  137. ...skipped 8 targets...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement