I can't compile RandLM, 0.20 on Ubuntu 11.10. RandLM was configured
with boost and multithreading support. The same configuration compiles
under Ubuntu 10.04, 10.10 and 11.04. 

>From the error log, it looks like
RandLM can't find boost libraries on the new distro. Log attached. Any
suggestions? 

Changes in 11.10 include: Linux kernel 3.0
 gcc
(Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
 GNU Make 3.81 

Tom
* 11/19/2011 02:07:09 PM - randlm.postinst/configure  - start
RandLMPreproc.cpp: In member function 'bool randlm::Corpus::countTypes(const string&, const string&)':
RandLMPreproc.cpp:306:46: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
RandLMPreproc.cpp: In member function 'bool randlm::InputData::sortFile(randlm::FileType, randlm::Format, randlm::Format, const string&, const string&)':
RandLMPreproc.cpp:184:43: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::BackoffRandLM::getProb(unsigned int const*, int, int*, void const**)':
RandLM.cpp:(.text+0x4ff9): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x506c): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x507a): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x508a): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x509c): undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o):RandLM.cpp:(.text+0x50ae): more undefined references to `boost::detail::get_tss_data(void const*)' follow
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::RandLM::initThreadSpecificData()':
RandLM.cpp:(.text+0x6ae4): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::BackoffRandLM::initThreadSpecificData()':
RandLM.cpp:(.text+0x6bf6): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x6c0a): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x6c90): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x6cc9): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::CountRandLM::initThreadSpecificData()':
RandLM.cpp:(.text+0x6db1): undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::WittenBellRandLM::initThreadSpecificData()':
RandLM.cpp:(.text+0x6e86): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text+0x6e9a): undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `boost::thread_specific_ptr<randlm::RandLMHashCache>::~thread_specific_ptr()':
RandLM.cpp:(.text._ZN5boost19thread_specific_ptrIN6randlm15RandLMHashCacheEED2Ev[_ZN5boost19thread_specific_ptrIN6randlm15RandLMHashCacheEED5Ev]+0x27): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `boost::thread_specific_ptr<randlm::RandLMCache<int> >::~thread_specific_ptr()':
RandLM.cpp:(.text._ZN5boost19thread_specific_ptrIN6randlm11RandLMCacheIiEEED2Ev[_ZN5boost19thread_specific_ptrIN6randlm11RandLMCacheIiEEED5Ev]+0x27): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `boost::thread_specific_ptr<randlm::RandLMCache<int> >::reset(randlm::RandLMCache<int>*)':
RandLM.cpp:(.text._ZN5boost19thread_specific_ptrIN6randlm11RandLMCacheIiEEE5resetEPS3_[boost::thread_specific_ptr<randlm::RandLMCache<int> >::reset(randlm::RandLMCache<int>*)]+0xd): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text._ZN5boost19thread_specific_ptrIN6randlm11RandLMCacheIiEEE5resetEPS3_[boost::thread_specific_ptr<randlm::RandLMCache<int> >::reset(randlm::RandLMCache<int>*)]+0x3b): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::RandLM::~RandLM()':
RandLM.cpp:(.text._ZN6randlm6RandLMD2Ev[_ZN6randlm6RandLMD5Ev]+0xd1): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::CountRandLM::~CountRandLM()':
RandLM.cpp:(.text._ZN6randlm11CountRandLMD2Ev[_ZN6randlm11CountRandLMD5Ev]+0x48): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::BackoffRandLM::~BackoffRandLM()':
RandLM.cpp:(.text._ZN6randlm13BackoffRandLMD2Ev[_ZN6randlm13BackoffRandLMD5Ev]+0x68): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
RandLM.cpp:(.text._ZN6randlm13BackoffRandLMD2Ev[_ZN6randlm13BackoffRandLMD5Ev]+0xa7): undefined reference to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o):RandLM.cpp:(.text._ZN6randlm13BackoffRandLMD0Ev[_ZN6randlm13BackoffRandLMD5Ev]+0x68): more undefined references to `boost::detail::set_tss_data(void const*, boost::shared_ptr<boost::detail::tss_cleanup_function>, void*, bool)' follow
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::BackoffRandLM::clearCaches()':
RandLM.cpp:(.text._ZN6randlm13BackoffRandLM11clearCachesEv[randlm::BackoffRandLM::clearCaches()]+0xe): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text._ZN6randlm13BackoffRandLM11clearCachesEv[randlm::BackoffRandLM::clearCaches()]+0x38): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text._ZN6randlm13BackoffRandLM11clearCachesEv[randlm::BackoffRandLM::clearCaches()]+0xb8): undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o): In function `randlm::WittenBellRandLM::clearCaches()':
RandLM.cpp:(.text._ZN6randlm16WittenBellRandLM11clearCachesEv[randlm::WittenBellRandLM::clearCaches()]+0xe): undefined reference to `boost::detail::get_tss_data(void const*)'
RandLM.cpp:(.text._ZN6randlm16WittenBellRandLM11clearCachesEv[randlm::WittenBellRandLM::clearCaches()]+0x38): undefined reference to `boost::detail::get_tss_data(void const*)'
/usr/local/lib/randlm/lib/librandlm.a(RandLM.o):RandLM.cpp:(.text._ZN6randlm16WittenBellRandLM11clearCachesEv[randlm::WittenBellRandLM::clearCaches()]+0xb8): more undefined references to `boost::detail::get_tss_data(void const*)' follow
collect2: ld returned 1 exit status
make: *** [buildlm] Error 1
make: *** Waiting for unfinished jobs....
* 11/19/2011 02:07:25 PM - randlm.postinst/configure  - failed "src/make -j 2 all"
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to