1. Boost 编译安装不成功
报错信息:gcc.compile.c++ bin.v2/libs/log/build/gcc-4.2.3/release/threadapi-pthread/threading-multi/visibility-hidden/timestamp.o
libs/log/src/timestamp.cpp: In function 'boost::log::v2_mt_posix::aux::timestamp boost::log::v2_mt_posix::aux::anonymous::get_timestamp_monotonic_clock()':
libs/log/src/timestamp.cpp:198: error: 'CLOCK_MONOTONIC' was not declared in this scope
"g++" -fvisibility-inlines-hidden -fPIC -milp32 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -fno-strict-aliasing -ftemplate-depth-1024 -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_DATE_TIME_DYN_LINK=1 -DBOOST_FILESYSTEM_DYN_LINK=1 -DBOOST_LOG_BUILDING_THE_LIB=1 -DBOOST_LOG_DLL -DBOOST_LOG_USE_NATIVE_SYSLOG -DBOOST_LOG_WITHOUT_DEBUG_OUTPUT -DBOOST_LOG_WITHOUT_EVENT_LOG -DBOOST_LOG_WITHOUT_IPC -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_DONT_USE_CHRONO=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DDATE_TIME_INLINE -DNDEBUG -D_XOPEN_SOURCE=600 -D__STDC_CONSTANT_MACROS -I"." -I"libs/log/src" -c -o "bin.v2/libs/log/build/gcc-4.2.3/release/threadapi-pthread/threading-multi/visibility-hidden/timestamp.o" "libs/log/src/timestamp.cpp"
...failed gcc.compile.c++ bin.v2/libs/log/build/gcc-4.2.3/release/threadapi-pthread/threading-multi/visibility-hidden/timestamp.o...
gcc.compile.c++ bin.v2/libs/log/build/gcc-4.2.3/release/threadapi-pthread/threading-multi/visibility-hidden/threadsafe_queue.o
In file included from ./boost/align/aligned_alloc.hpp:38,
from libs/log/src/threadsafe_queue.cpp:32:
./boost/align/detail/aligned_alloc_posix.hpp: In function 'void* boost::alignment::aligned_alloc(size_t, size_t)':
./boost/align/detail/aligned_alloc_posix.hpp:26: error: '::posix_memalign' has not been declared