Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Please, I am trying to compile ODTONE on Ubuntu 13.04 but getting some errors.
- 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.
- 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...
- For example:
- rodrigo@zion:~/Documents/odtone$ b2 linkflags=-lpthread
- Warning: Assuming that Boost 1.49.0 root is located at /home/rodrigo/Documents/boost_1_49_0
- 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
- warning: No toolsets are configured.
- warning: Configuring default toolset "gcc".
- warning: If the default is wrong, your build may not work correctly.
- warning: Use the "toolset=xxxxx" option to override our guess.
- warning: For more configuration options, please consult
- warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
- ...patience...
- ...patience...
- ...patience...
- ...found 4091 targets...
- ...updating 41 targets...
- gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/main.o
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from inc/odtone/logger.hpp:25,
- from src/mihf/log.hpp:22,
- from src/mihf/main.cpp:22:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from inc/odtone/logger.hpp:25,
- from src/mihf/log.hpp:22,
- from src/mihf/main.cpp:22:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: note: suggested alternative:
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/locks.hpp:12:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from inc/odtone/logger.hpp:25,
- from src/mihf/log.hpp:22,
- from src/mihf/main.cpp:22:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from inc/odtone/logger.hpp:25,
- from src/mihf/log.hpp:22,
- from src/mihf/main.cpp:22:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: At global scope:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
- In file included from inc/odtone/exception.hpp:25:0,
- from inc/odtone/mih/types/base.hpp:24,
- from inc/odtone/mih/types/identification.hpp:24,
- from src/mihf/mihfid.hpp:22,
- from src/mihf/main.cpp:21:
- /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]
- /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]
- /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]
- "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"
- ...failed gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/main.o...
- gcc.compile.c++ bin.v2/src/mihf/gcc-4.7/debug/service_management.o
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
- from src/mihf/link_response_pool.hpp:27,
- from src/mihf/service_management.hpp:24,
- from src/mihf/service_management.cpp:20:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
- from src/mihf/link_response_pool.hpp:27,
- from src/mihf/service_management.hpp:24,
- from src/mihf/service_management.cpp:20:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:73:40: note: suggested alternative:
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/locks.hpp:12:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
- from src/mihf/link_response_pool.hpp:27,
- from src/mihf/service_management.hpp:24,
- from src/mihf/service_management.cpp:20:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’
- In file included from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/mutex.hpp:14:0,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/mutex.hpp:16,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/pthread/thread_data.hpp:12,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread/thread.hpp:17,
- from /home/rodrigo/Documents/boost_1_49_0/boost/thread.hpp:13,
- from src/mihf/link_response_pool.hpp:27,
- from src/mihf/service_management.hpp:24,
- from src/mihf/service_management.cpp:20:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp: At global scope:
- /home/rodrigo/Documents/boost_1_49_0/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token
- In file included from inc/odtone/exception.hpp:25:0,
- from inc/odtone/mih/types/base.hpp:24,
- from inc/odtone/mih/archive.hpp:25,
- from inc/odtone/mih/message.hpp:24,
- from src/mihf/meta_message.hpp:21,
- from src/mihf/link_response_pool.hpp:22,
- from src/mihf/service_management.hpp:24,
- from src/mihf/service_management.cpp:20:
- /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]
- /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]
- /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]
- "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"
- ETC ETC ETC ETC!!!
- AND FINNALY:
- ...failed gcc.compile.c++ bin.v2/app/mih_usr/gcc-4.7/debug/mih_usr.o...
- ...skipped <pdist>mih_usr for lack of <pbin.v2/app/mih_usr/gcc-4.7/debug>mih_usr.o...
- ...skipped <pbin.v2/src/mihf/gcc-4.7/debug>odtone-mihf for lack of <pbin.v2/src/mihf/gcc-4.7/debug>main.o...
- ...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...
- ...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...
- ...failed updating 33 targets...
- ...skipped 8 targets...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement