Hi Barry, configure works if I do not add --with-boost-thread=boost_thread-gcc41-mt. I'm try to install moses on a 64-bit machine, so I do not know if --with-boost-thread is mandatory.
I reinstall the boost libraries... and everything is in the right place in /usr/local/boost/lib: 165180 Nov 23 12:09 libboost_thread.a 25 Nov 23 12:08 libboost_thread.so -> libboost_thread.so.1.41.0 81576 Nov 23 12:08 libboost_thread.so.1.41.0 Hieu: I have removed all the boost dynamic libraries from /usr/local/boost/lib/ , but now i have problem when I compile Moses... it does not compile, please see the attached file. Sorry Marco On Mon, Nov 23, 2009 at 1:14 PM, Barry Haddow <[email protected]> wrote: > On Monday 23 Nov 2009 11:56:57 Hieu Hoang wrote: > > personally, I would link it with the static library, rather than the > > dynamic lib so you don't have to change your PATH lib. > > > > to do that, move your dynamic libraries out of sight of the compiler > > when compiling. > > > > Good suggestion - I've resorted to this before. Ideally I'd get automake to > link boost statically, but I haven't figured out how to do this without it > trying to link everything (libc etc) statically - which doesn't work very > well, > > regards > Barry > >
g++ -g -O2 -L/home/turchmo/Libraries/srilm//lib/i686-m64 -o mosesmt MainMT.o mbr.o IOWrapper.o TranslationAnalysis.o ThreadPool.o -L../../moses/src -L/usr/local/boost//lib -lmoses -lboost_thread -loolm -ldstruct -lmisc -lz /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::detach()': thread.cpp:(.text+0x626): undefined reference to `pthread_detach' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::(anonymous namespace)::make_external_thread_data()': thread.cpp:(.text+0xb38): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::start_thread()': thread.cpp:(.text+0x14ab): undefined reference to `pthread_create' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `thread_proxy': thread.cpp:(.text+0x15e2): undefined reference to `pthread_setspecific' thread.cpp:(.text+0x1614): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::timed_join(boost::posix_time::ptime const&)': thread.cpp:(.text+0x284b): undefined reference to `pthread_join' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::join()': thread.cpp:(.text+0x2bb8): undefined reference to `pthread_join' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::set_current_thread_data(boost::detail::thread_data_base*)': thread.cpp:(.text+0xbe): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::(anonymous namespace)::create_current_thread_tls_key()': thread.cpp:(.text+0xdb): undefined reference to `pthread_key_create' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::get_current_thread_data()': thread.cpp:(.text+0xfe): undefined reference to `pthread_getspecific' /usr/local/boost//lib/libboost_thread.a(once.o): In function `boost::detail::get_once_per_thread_epoch()': once.cpp:(.text+0xc): undefined reference to `pthread_once' once.cpp:(.text+0x17): undefined reference to `pthread_getspecific' once.cpp:(.text+0x39): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(once.o): In function `create_epoch_tss_key': once.cpp:(.text+0x5b): undefined reference to `pthread_key_create' collect2: ld returned 1 exit status make[2]: *** [moses] Error 1 make[2]: *** Waiting for unfinished jobs.... /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::detach()': thread.cpp:(.text+0x626): undefined reference to `pthread_detach' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::(anonymous namespace)::make_external_thread_data()': thread.cpp:(.text+0xb38): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::start_thread()': thread.cpp:(.text+0x14ab): undefined reference to `pthread_create' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `thread_proxy': thread.cpp:(.text+0x15e2): undefined reference to `pthread_setspecific' thread.cpp:(.text+0x1614): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::timed_join(boost::posix_time::ptime const&)': thread.cpp:(.text+0x284b): undefined reference to `pthread_join' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::thread::join()': thread.cpp:(.text+0x2bb8): undefined reference to `pthread_join' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::set_current_thread_data(boost::detail::thread_data_base*)': thread.cpp:(.text+0xbe): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::(anonymous namespace)::create_current_thread_tls_key()': thread.cpp:(.text+0xdb): undefined reference to `pthread_key_create' /usr/local/boost//lib/libboost_thread.a(thread.o): In function `boost::detail::get_current_thread_data()': thread.cpp:(.text+0xfe): undefined reference to `pthread_getspecific' /usr/local/boost//lib/libboost_thread.a(once.o): In function `boost::detail::get_once_per_thread_epoch()': once.cpp:(.text+0xc): undefined reference to `pthread_once' once.cpp:(.text+0x17): undefined reference to `pthread_getspecific' once.cpp:(.text+0x39): undefined reference to `pthread_setspecific' /usr/local/boost//lib/libboost_thread.a(once.o): In function `create_epoch_tss_key': once.cpp:(.text+0x5b): undefined reference to `pthread_key_create' collect2: ld returned 1 exit status make[2]: *** [mosesmt] Error 1 make[2]: Leaving directory `/home/turchmo/Libraries/moses/mosesdecoder/moses-cmd/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/turchmo/Libraries/moses/mosesdecoder' make: *** [all] Error 2
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
