hi lefty,

try
    ./regenerate-makefiles.sh
then
   ./configure ...
i think when there's a change in 1 of the root make/config files, 
libtools gets confused. This happens very rarely, eg. when another 
library dependency is added. Recently, another lm (kenlm) was added

On 13/10/2010 16:23, Barry Haddow wrote:
> Hi Lefty
>
> This is strange
>> ../../moses/src/.libs/libmoses.so -loolm -ldstruct -lmisc -lflm -lz
> I don't understand why your building the dynamic library - it should be off by
> default. That seems to be connected with your build failure.
>
> cheers
> Barry
>
> On Wednesday 13 October 2010 15:14, Eleftherios Avramidis wrote:
>> Hi all,
>>
>> I would like your advice here: when I try to compile moses on a 64bit
>> machine, linked with SRILM compiled for i686-m64 ( ./configure
>> --with-srilm=/home/user/tools/srilm  --without-kenlm ), I get the
>> following error:
>>
>> /bin/bash ../../libtool --tag=CXX   --mode=link g++  -g -O2
>> -L/home/user/tools/srilm/lib/i686-m64
>> -L/home/user/tools/srilm/flm/obj/i686-m64 -o checkplf checkplf.o
>> ../../moses/src/libmoses.la -loolm  -loolm -ldstruct -lmisc -lflm -lz
>> libtool: link: g++ -g -O2 -o .libs/checkplf checkplf.o
>> -L/home/user/tools/srilm/lib/i686-m64
>> -L/home/user/tools/srilm/flm/obj/i686-m64
>> ../../moses/src/.libs/libmoses.so -loolm -ldstruct -lmisc -lflm -lz
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::Word::~Word()'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::PhraseNode::GetTargetPhraseCollection(unsigned long,
>> OnDiskPt::OnDiskWrapper&) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::PhraseNode::GetChild(OnDiskPt::Word const&,
>> OnDiskPt::OnDiskWrapper&) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::GetMisc(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char>  >  const&) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::PhraseNode::GetCount(unsigned long) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::~OnDiskWrapper()'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::PhraseNode::~PhraseNode()'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::TargetPhraseCollection::~TargetPhraseCollection()'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::GetRootSourceNode()'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::ConvertFromMoses(Moses::FactorDirection,
>> std::vector<unsigned long, std::allocator<unsigned long>  >  const&,
>> Moses::Word const&) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::TargetPhraseCollection::ConvertToMoses(std::vector<unsigned
>> long, std::allocator<unsigned long>  >  const&, std::vector<unsigned long,
>> std::allocator<unsigned long>  >  const&, Moses::PhraseDictionary const&,
>> std::vector<float, std::allocator<float>  >  const&,
>> Moses::WordPenaltyProducer const*, Moses::LMList const&,
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>  >
>> const&, OnDiskPt::Vocab&) const'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::BeginLoad(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char>  >  const&)'
>> ../../moses/src/.libs/libmoses.so: undefined reference to
>> `OnDiskPt::OnDiskWrapper::OnDiskWrapper()'
>> collect2: ld returned 1 exit status
>> make[2]: *** [checkplf] Error 1
>> make[2]: *** Waiting for unfinished jobs....
>> mv -f .deps/LatticeMBRGrid.Tpo .deps/LatticeMBRGrid.Po
>> mv -f .deps/LatticeMBR.Tpo .deps/LatticeMBR.Po
>> make[2]: Leaving directory `/home/user/tools/mosesdecoder/moses-cmd/src'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/user/tools/mosesdecoder'
>> make: *** [all] Error 2
>>
>> Could you tell what exactly has gone wrong, here?
>>
>> regards
>> Lefteris
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to