[SRILM User List] Please help : Problem with installation of SRILM1.4.6 on ubuntu 10.04 amd-64 bit machine

Anand Karthik aktumuluru at cse.ust.hk
Sat Feb 11 02:31:37 PST 2012


Hello,
I'm trying to install srilm 1.4.6 on ubuntu 10.04 64-bit and amd-64
bit machine. I have turned TCL off.
I have read the user archive and couldn't find a solution to the
problem. Please help me with the same.

Im using the following command :
make MACHINE_TYPE=i686-m64 SRILM=$PWD CC=/usr/bin/gcc CXX=/usr/bin/g++
 NO_TCL=X TCL_INCLUDE= TCL_LIBRARY= 2>&1 > make.log.txt

uname -a
Linux ubuntu 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:12:07 UTC
2012 x86_64 GNU/Linux

gcc  version :

Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)


and I get the following error on the console:

I have attached the makefile log. The ngram, ngram-count,ngram-merge,
ngram-calss, disambig, anti-ngram, nbest-lattice, nbest-mix,
nbest-optimize,nnbest-pron-score,segment,segment-nbest,hidden-ngram,multi-ngram,fngram-count,fngram-count,fngram
and lattice-tool etc. binaries are not being created and they have a
problem like this
g++ command :

******************************************************************************************************************

/usr/bin/g++    -I. -I/home/ak/Downloads/srilm/include   -u matherr
-L/home/ak/Downloads/srilm/lib/i686-m64  -g -O3  -o
../bin/i686-m64/ngram ../obj/i686-m64/ngram.o
../obj/i686-m64/liboolm.a -lm -ldl
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a
/home/ak/Downloads/srilm/lib/i686-m64/libdstruct.a
/home/ak/Downloads/srilm/lib/i686-m64/libmisc.a  -lm 2>&1 | c++filt
../obj/i686-m64/liboolm.a(SimpleClassNgram.o): In function `global
constructors keyed to ctsBuffer':
/home/ak/Downloads/srilm/include/Debug.h:54: multiple definition of
`ctsBuffer'
../obj/i686-m64/liboolm.a(ClassNgram.o):/home/ak/Downloads/srilm/include/Debug.h:54:
first defined here
../obj/i686-m64/liboolm.a(Vocab.o): In function `LHash<unsigned int,
unsigned int>::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, unsigned int>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, unsigned int>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, unsigned int>::removedData'
../obj/i686-m64/liboolm.a(Vocab.o): In function `LHash<char const*,
unsigned int>::remove(char const*, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<char const*, unsigned int>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<char const*, unsigned int>::removedData'
../obj/i686-m64/liboolm.a(Vocab.o): In function `Map_noKey<char>':
/usr/include/bits/string3.h:52: undefined reference to `LHash<char
const*, unsigned int>::removedData'
../obj/i686-m64/liboolm.a(Vocab.o): In function `LHash<char const*,
unsigned int>::remove(char const*, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<char const*, unsigned int>::removedData'
../obj/i686-m64/liboolm.a(SubVocab.o): In function
`SubVocab::addWord(unsigned int)':
/home/ak/Downloads/srilm/lm/src/SubVocab.cc:80: undefined reference to
`LHash<char const*, unsigned int>::getInternalKey(char const*, bool&)
const'
../obj/i686-m64/liboolm.a(MultiwordVocab.o): In function
`LHash<unsigned int, unsigned int*>::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, unsigned int*>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, unsigned int*>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, unsigned int*>::removedData'
../obj/i686-m64/liboolm.a(LM.o): In function `~VocabIter':
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
../obj/i686-m64/liboolm.a(LM.o): In function `LM::pplCountsFile(File&,
unsigned int, TextStats&, char const*, bool)':
/home/ak/Downloads/srilm/lm/src/LM.cc:569: undefined reference to
`NgramCounts<unsigned int>::parseNgram(char*, char const**, unsigned
int, unsigned int&)'
../obj/i686-m64/liboolm.a(LM.o): In function `NgramStats':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:150: undefined reference
to `NgramCounts<unsigned int>::NgramCounts(Vocab&, unsigned int)'
../obj/i686-m64/liboolm.a(LM.o): In function `NgramCountsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(LM.o): In function `NgramCounts<unsigned
int>::write(File&)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:70: undefined reference
to `NgramCounts<unsigned int>::write(File&, unsigned int, bool)'
../obj/i686-m64/liboolm.a(LM.o): In function `NgramCounts<unsigned
int>::read(File&)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:67: undefined reference
to `NgramCounts<unsigned int>::read(File&, unsigned int)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV10NgramStats[vtable for
NgramStats]+0x68): undefined reference to `NgramCounts<unsigned
int>::memStats(MemStats&)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV10NgramStats[vtable for
NgramStats]+0x70): undefined reference to `NgramCounts<unsigned
int>::countSentence(char const* const*, unsigned int)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV10NgramStats[vtable for
NgramStats]+0x78): undefined reference to `NgramCounts<unsigned
int>::countSentence(unsigned int const*, unsigned int)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV11NgramCountsIjE[vtable
for NgramCounts<unsigned int>]+0x68): undefined reference to
`NgramCounts<unsigned int>::memStats(MemStats&)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV11NgramCountsIjE[vtable
for NgramCounts<unsigned int>]+0x70): undefined reference to
`NgramCounts<unsigned int>::countSentence(char const* const*, unsigned
int)'
../obj/i686-m64/liboolm.a(LM.o):(.rodata._ZTV11NgramCountsIjE[vtable
for NgramCounts<unsigned int>]+0x78): undefined reference to
`NgramCounts<unsigned int>::countSentence(unsigned int const*,
unsigned int)'
../obj/i686-m64/liboolm.a(NgramLM.o): In function `LHash<unsigned int,
float>::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, float>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, float>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, float>::removedData'
../obj/i686-m64/liboolm.a(NgramLM.o): In function `LHash<unsigned int,
Trie<unsigned int, BOnode> >::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, Trie<unsigned int, BOnode> >::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, Trie<unsigned int, BOnode> >::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, Trie<unsigned int, BOnode> >::removedData'
../obj/i686-m64/liboolm.a(Discount.o): In function `~VocabIter':
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
../obj/i686-m64/liboolm.a(Discount.o): In function `NgramCountsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::isMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:177: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::typeOfMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:179: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function `NgramsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::isMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:177: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::typeOfMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:179: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function `NgramCountsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(Discount.o): In function `Trie<unsigned int,
unsigned int>::find(unsigned int const*, bool&) const':
/home/ak/Downloads/srilm/include/Trie.h:124: undefined reference to
`Trie<unsigned int, unsigned int>::findTrie(unsigned int const*,
bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function `NgramsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::isMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:177: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(Discount.o): In function
`Vocab::typeOfMetaTag(unsigned int)':
/home/ak/Downloads/srilm/lm/src/Vocab.h:179: undefined reference to
`LHash<unsigned int, unsigned int>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(ClassNgram.o): In function `Map2<unsigned
int, unsigned int const*, double>::clear()':
ClassNgram.cc:(.text._ZN4Map2IjPKjdE5clearEv[Map2<unsigned int,
unsigned int const*, double>::clear()]+0xbc): undefined reference to
`LHash<unsigned int, LHash<unsigned int const*, double>
>::removedData'
ClassNgram.cc:(.text._ZN4Map2IjPKjdE5clearEv[Map2<unsigned int,
unsigned int const*, double>::clear()]+0xda): undefined reference to
`LHash<unsigned int, LHash<unsigned int const*, double>
>::removedData'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::estimateMstep(NgramStats&, NgramCounts<double>&,
LHash<unsigned int, double>&, Discount**)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:344: undefined reference
to `LHashIter<unsigned int, double>::LHashIter(LHash<unsigned int,
double> const&, int (*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`NgramCounts<unsigned int>::findCount(unsigned int const*, unsigned
int)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:47: undefined reference
to `Trie<unsigned int, unsigned int>::findTrie(unsigned int const*,
bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `Trie<unsigned
int, unsigned int>::findTrie(unsigned int, bool&) const':
/home/ak/Downloads/srilm/include/Trie.h:145: undefined reference to
`LHash<unsigned int, Trie<unsigned int, unsigned int> >::find(unsigned
int, bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::wordProb(unsigned int, unsigned int const*)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:68: undefined reference
to `LHash<unsigned int, double>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::write(File&)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:141: undefined reference
to `LHashIter<unsigned int, double>::LHashIter(LHash<unsigned int,
double> const&, int (*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `SkipNgram':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:26: undefined reference
to `LHash<unsigned int, double>::LHash(unsigned int)'
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:26: undefined reference
to `LHash<unsigned int, double>::LHash(unsigned int)'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::estimateEstepNgram(unsigned int*, unsigned int,
NgramStats&, NgramCounts<double>&, LHash<unsigned int, double>&)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:221: undefined reference
to `LHash<unsigned int, double>::find(unsigned int, bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`NgramCounts<unsigned int>::findCount(unsigned int const*, unsigned
int)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:47: undefined reference
to `Trie<unsigned int, unsigned int>::findTrie(unsigned int const*,
bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `Trie<unsigned
int, unsigned int>::findTrie(unsigned int, bool&) const':
/home/ak/Downloads/srilm/include/Trie.h:145: undefined reference to
`LHash<unsigned int, Trie<unsigned int, unsigned int> >::find(unsigned
int, bool&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `NgramCountsIter':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:115: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
/home/ak/Downloads/srilm/lm/src/NgramStats.h:122: undefined reference
to `TrieIter2<unsigned int, unsigned int>::TrieIter2(Trie<unsigned
int, unsigned int> const&, unsigned int*, unsigned int, int
(*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `~NgramCounts':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:37: undefined reference
to `Trie<unsigned int, double>::~Trie()'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::estimate(NgramStats&, Discount**)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:178: undefined reference
to `NgramCounts<double>::NgramCounts(Vocab&, unsigned int)'
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:179: undefined reference
to `LHash<unsigned int, double>::LHash(unsigned int)'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `~NgramCounts':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:37: undefined reference
to `Trie<unsigned int, double>::~Trie()'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `~VocabIter':
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Vocab.h:258: undefined reference to
`LHashIter<char const*, unsigned int>::~LHashIter()'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`SkipNgram::memStats(MemStats&)':
/home/ak/Downloads/srilm/lm/src/SkipNgram.cc:34: undefined reference
to `LHash<unsigned int, double>::memStats(MemStats&) const'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function `~NgramCounts':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:37: undefined reference
to `Trie<unsigned int, double>::~Trie()'
/home/ak/Downloads/srilm/lm/src/NgramStats.h:37: undefined reference
to `Trie<unsigned int, double>::~Trie()'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`NgramCounts<double>::write(File&)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:70: undefined reference
to `NgramCounts<double>::write(File&, unsigned int, bool)'
../obj/i686-m64/liboolm.a(SkipNgram.o): In function
`NgramCounts<double>::read(File&)':
/home/ak/Downloads/srilm/lm/src/NgramStats.h:67: undefined reference
to `NgramCounts<double>::read(File&, unsigned int)'
../obj/i686-m64/liboolm.a(SkipNgram.o):(.rodata._ZTV11NgramCountsIdE[vtable
for NgramCounts<double>]+0x68): undefined reference to
`NgramCounts<double>::memStats(MemStats&)'
../obj/i686-m64/liboolm.a(SkipNgram.o):(.rodata._ZTV11NgramCountsIdE[vtable
for NgramCounts<double>]+0x70): undefined reference to
`NgramCounts<double>::countSentence(char const* const*, double)'
../obj/i686-m64/liboolm.a(SkipNgram.o):(.rodata._ZTV11NgramCountsIdE[vtable
for NgramCounts<double>]+0x78): undefined reference to
`NgramCounts<double>::countSentence(unsigned int const*, double)'
../obj/i686-m64/liboolm.a(TaggedNgram.o): In function `NgramBOsIter':
/home/ak/Downloads/srilm/lm/src/Ngram.h:139: undefined reference to
`TrieIter2<unsigned int, BOnode>::TrieIter2(Trie<unsigned int, BOnode>
const&, unsigned int*, unsigned int, int (*)(unsigned int, unsigned
int))'
../obj/i686-m64/liboolm.a(TaggedNgram.o): In function `NgramProbsIter':
/home/ak/Downloads/srilm/lm/src/Ngram.h:157: undefined reference to
`LHashIter<unsigned int, float>::LHashIter(LHash<unsigned int, float>
const&, int (*)(unsigned int, unsigned int))'
../obj/i686-m64/liboolm.a(TaggedNgram.o): In function `~NgramProbsIter':
/home/ak/Downloads/srilm/lm/src/Ngram.h:153: undefined reference to
`LHashIter<unsigned int, float>::~LHashIter()'
/home/ak/Downloads/srilm/lm/src/Ngram.h:153: undefined reference to
`LHashIter<unsigned int, float>::~LHashIter()'
../obj/i686-m64/liboolm.a(WordMesh.o): In function `LHash<unsigned
int, double>::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, double>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, double>::removedData'
../obj/i686-m64/liboolm.a(VocabMultiMap.o): In function
`LHash<unsigned int const*, double>::remove(unsigned int const*,
bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int const*, double>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int const*, double>::removedData'
../obj/i686-m64/liboolm.a(VocabMultiMap.o): In function
`Map_noKey<VocabIndex>':
/usr/include/bits/string3.h:52: undefined reference to `LHash<unsigned
int const*, double>::removedData'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o): In
function `ProductNgram::read(File&, bool)':
/home/ak/Downloads/srilm/flm/src/ProductNgram.cc:54: undefined
reference to `FNgramSpecs<unsigned int>::FNgramSpecs(File&,
FactoredVocab&, unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o): In
function `FNgramStats':
/home/ak/Downloads/srilm/flm/src/FNgramStats.h:148: undefined
reference to `FNgramCounts<unsigned int>::FNgramCounts(FactoredVocab&,
FNgramSpecs<unsigned int>&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o): In
function `ProductNgram::read(File&, bool)':
/home/ak/Downloads/srilm/flm/src/ProductNgram.cc:69: undefined
reference to `FNgramCounts<unsigned int>::read()'
/home/ak/Downloads/srilm/flm/src/ProductNgram.cc:74: undefined
reference to `FNgramCounts<unsigned int>::estimateDiscounts()'
/home/ak/Downloads/srilm/flm/src/ProductNgram.cc:75: undefined
reference to `FNgramCounts<unsigned
int>::computeCardinalityFunctions()'
/home/ak/Downloads/srilm/flm/src/ProductNgram.cc:76: undefined
reference to `FNgramCounts<unsigned int>::sumCounts()'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o): In
function `FNgramCounts<unsigned int>::read(File&)':
/home/ak/Downloads/srilm/flm/src/FNgramStats.h:83: undefined reference
to `FNgramCounts<unsigned int>::read()'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o): In
function `FNgramCounts<unsigned int>::write(File&)':
/home/ak/Downloads/srilm/flm/src/FNgramStats.h:99: undefined reference
to `FNgramCounts<unsigned int>::write(bool)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV11FNgramStats[vtable
for FNgramStats]+0x50): undefined reference to `FNgramCounts<unsigned
int>::countFile(File&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV11FNgramStats[vtable
for FNgramStats]+0x68): undefined reference to `FNgramCounts<unsigned
int>::memStats(MemStats&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV11FNgramStats[vtable
for FNgramStats]+0x78): undefined reference to `FNgramCounts<unsigned
int>::countSentence(unsigned int, unsigned int, WidMatrix&, unsigned
int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV11FNgramStats[vtable
for FNgramStats]+0x80): undefined reference to `FNgramCounts<unsigned
int>::countSentence(char const* const*, unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV12FNgramCountsIjE[vtable
for FNgramCounts<unsigned int>]+0x50): undefined reference to
`FNgramCounts<unsigned int>::countFile(File&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV12FNgramCountsIjE[vtable
for FNgramCounts<unsigned int>]+0x68): undefined reference to
`FNgramCounts<unsigned int>::memStats(MemStats&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV12FNgramCountsIjE[vtable
for FNgramCounts<unsigned int>]+0x78): undefined reference to
`FNgramCounts<unsigned int>::countSentence(unsigned int, unsigned int,
WidMatrix&, unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(ProductNgram.o):(.rodata._ZTV12FNgramCountsIjE[vtable
for FNgramCounts<unsigned int>]+0x80): undefined reference to
`FNgramCounts<unsigned int>::countSentence(char const* const*,
unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FactoredVocab.o): In
function `FactoredVocab::getIndex(char const*, unsigned int)':
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:279: undefined
reference to `FNgramSpecs<unsigned int>::getTag(char const*)'
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:282: undefined
reference to `FNgramSpecs<unsigned int>::wordTag()'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FactoredVocab.o): In
function `FactoredVocab::addWord(char const*)':
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:193: undefined
reference to `FNgramSpecs<unsigned int>::getTag(char const*)'
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:196: undefined
reference to `FNgramSpecs<unsigned int>::wordTag()'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FactoredVocab.o): In
function `FactoredVocab::addWord2(char const*, bool&)':
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:228: undefined
reference to `FNgramSpecs<unsigned int>::getTag(char const*)'
/home/ak/Downloads/srilm/flm/src/FactoredVocab.cc:231: undefined
reference to `FNgramSpecs<unsigned int>::wordTag()'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::recomputeBOWs()':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2162: undefined reference
to `FNgramSpecs<unsigned int>::FNgramSpec::LevelIter::next(unsigned
int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::bgChildProbBO(unsigned int, unsigned int const*,
unsigned int, unsigned int, unsigned int)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:685: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:686: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:706: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:707: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:726: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:727: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:744: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:746: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::boNode(unsigned int, unsigned int const*, unsigned
int, unsigned int, unsigned int)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:544: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:554: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:567: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:554: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:567: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:601: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:608: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:617: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:610: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:617: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:610: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:627: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGGrandChildIter::BGGrandChildIter(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:636: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:629: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGGrandChildIter::next(unsigned int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:636: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::ParentSubset::backoffValueRSubCtxW(unsigned int,
unsigned int const*, unsigned int, BackoffNodeStrategy, FNgram&,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:629: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGGrandChildIter::next(unsigned int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `LHash<unsigned int, Trie<unsigned int, FNgram::BOnode>
>::remove(unsigned int, bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, Trie<unsigned int, FNgram::BOnode>
>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, Trie<unsigned int, FNgram::BOnode>
>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, Trie<unsigned int, FNgram::BOnode>
>::removedData'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `LHash<unsigned int, FNgram::ProbEntry>::remove(unsigned int,
bool&)':
/home/ak/Downloads/srilm/include/LHash.cc:416: undefined reference to
`LHash<unsigned int, FNgram::ProbEntry>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:417: undefined reference to
`LHash<unsigned int, FNgram::ProbEntry>::removedData'
/home/ak/Downloads/srilm/include/LHash.cc:473: undefined reference to
`LHash<unsigned int, FNgram::ProbEntry>::removedData'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::wordProbSum()':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2930: undefined reference
to `FNgramSpecs<unsigned int>::FNgramSpec::LevelIter::next(unsigned
int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::rescoreFile(File&, double, double, LM&, double,
double, char const*)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2805: undefined reference
to `FNgramSpecs<unsigned int>::loadWordFactors(char const* const*,
WordMatrix&, unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::pplFile(File&, TextStats&, char const*)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2684: undefined reference
to `FNgramSpecs<unsigned int>::loadWordFactors(char const* const*,
WordMatrix&, unsigned int)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::computeBOWs(unsigned int, unsigned int)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2028: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::BGChildIterCnstr(unsigned int,
unsigned int, unsigned int)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:2030: undefined reference
to `FNgramSpecs<unsigned
int>::FNgramSpec::BGChildIterCnstr::next(unsigned int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::write(unsigned int, File&)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:1256: undefined reference
to `FNgramSpecs<unsigned int>::FNgramSpec::LevelIter::next(unsigned
int&)'
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:1265: undefined reference
to `FNgramSpecs<unsigned int>::FNgramSpec::LevelIter::next(unsigned
int&)'
/home/ak/Downloads/srilm/lib/i686-m64/libflm.a(FNgramLM.o): In
function `FNgram::estimate(unsigned int)':
/home/ak/Downloads/srilm/flm/src/FNgramLM.cc:1433: undefined reference
to `FNgramSpecs<unsigned int>::FNgramSpec::LevelIter::next(unsigned
int&)'
collect2: ld returned 1 exit status
/home/ak/Downloads/srilm/sbin/decipher-install 0555
../bin/i686-m64/ngram /home/ak/Downloads/srilm/bin/i686-m64
ERROR:  File to be installed (../bin/i686-m64/ngram) does not exist.
ERROR:  File to be installed (../bin/i686-m64/ngram) is not a plain file.
WARNING: creating directory /home/ak/Downloads/srilm/bin/i686-m64
Usage:  decipher-install <mode> <file1> ... <fileN> <directory>
       mode:                 file permission mode, in octal
       file1 ... fileN:      files to be installed
       directory:            where the files should be installed

files =  ../bin/i686-m64/ngram
directory =  /home/ak/Downloads/srilm/bin/i686-m64
mode =  0555

*****************************************************************************************************

Thanks a lot in advance.

Sincere Regards,
Anand Karthik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.speech.sri.com/pipermail/srilm-user/attachments/20120211/cb581222/attachment.html>


More information about the SRILM-User mailing list