LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2009, 11:32 PM   #1
GaHeRiS
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
Unable to make Moses (statistical machine translation system)


Hi. I've been trying to compile Moses from source using gcc, and I don't know why this make fails. The result of the ./configure and make are attached below. I'd really appreciate some help. Thanks.

Code:
// result of ./configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking Ngram.h usability... yes
checking Ngram.h presence... no
configure: WARNING: Ngram.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: Ngram.h: proceeding with the compiler's result
checking for Ngram.h... yes
checking getopt.h usability... yes
checking getopt.h presence... no
configure: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: getopt.h: proceeding with the compiler's result
checking for getopt.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating moses/src/Makefile
config.status: creating moses-cmd/src/Makefile
config.status: creating misc/Makefile
config.status: creating mert/Makefile
config.status: creating config.h
config.status: executing depfiles commands

// result of make

(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/sean/Download/moses/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/sean/Download/moses'
Making all in moses/src
make[2]: Entering directory `/home/sean/Download/moses/moses/src'
make  all-am
make[3]: Entering directory `/home/sean/Download/moses/moses/src'
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT AlignmentElement.o -MD -MP -MF .deps/AlignmentElement.Tpo -c -o AlignmentElement.o AlignmentElement.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT AlignmentPhrase.o -MD -MP -MF .deps/AlignmentPhrase.Tpo -c -o AlignmentPhrase.o AlignmentPhrase.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT AlignmentPair.o -MD -MP -MF .deps/AlignmentPair.Tpo -c -o AlignmentPair.o AlignmentPair.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT BitmapContainer.o -MD -MP -MF .deps/BitmapContainer.Tpo -c -o BitmapContainer.o BitmapContainer.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from BitmapContainer.h:27,
                 from BitmapContainer.cpp:26:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/AlignmentPair.Tpo .deps/AlignmentPair.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT ConfusionNet.o -MD -MP -MF .deps/ConfusionNet.Tpo -c -o ConfusionNet.o ConfusionNet.cpp
mv -f .deps/AlignmentElement.Tpo .deps/AlignmentElement.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT DecodeGraph.o -MD -MP -MF .deps/DecodeGraph.Tpo -c -o DecodeGraph.o DecodeGraph.cpp
ConfusionNet.cpp:205: warning: ignoring #pragma warning 
ConfusionNet.cpp:216: warning: ignoring #pragma warning 
ConfusionNet.cpp:221: warning: ignoring #pragma warning 
BitmapContainer.cpp: In constructor ‘Moses::BackwardsEdge::BackwardsEdge(const Moses::BitmapContainer&, Moses::BitmapContainer&, const Moses::TranslationOptionList&, const Moses::SquareMatrix&)’:
BitmapContainer.cpp:147: warning: comparison between signed and unsigned integer expressions
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from TranslationOptionCollection.h:26,
                 from TranslationOptionCollectionConfusionNet.h:4,
                 from ConfusionNet.cpp:9:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/AlignmentPhrase.Tpo .deps/AlignmentPhrase.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT DecodeStep.o -MD -MP -MF .deps/DecodeStep.Tpo -c -o DecodeStep.o DecodeStep.cpp
mv -f .deps/DecodeGraph.Tpo .deps/DecodeGraph.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT DecodeStepGeneration.o -MD -MP -MF .deps/DecodeStepGeneration.Tpo -c -o DecodeStepGeneration.o DecodeStepGeneration.cpp
ConfusionNet.cpp:212: warning: unused parameter ‘factorsToPrint’
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from DecodeStep.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from DecodeStepGeneration.cpp:24:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
DecodeStepGeneration.cpp:84: warning: unused parameter ‘toc’
DecodeStepGeneration.cpp:84: warning: unused parameter ‘adhereTableLimit’
mv -f .deps/BitmapContainer.Tpo .deps/BitmapContainer.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT DecodeStepTranslation.o -MD -MP -MF .deps/DecodeStepTranslation.Tpo -c -o DecodeStepTranslation.o DecodeStepTranslation.cpp
mv -f .deps/DecodeStep.Tpo .deps/DecodeStep.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT Dictionary.o -MD -MP -MF .deps/Dictionary.Tpo -c -o Dictionary.o Dictionary.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from DecodeStepTranslation.cpp:24:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/DecodeStepGeneration.Tpo .deps/DecodeStepGeneration.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT DummyScoreProducers.o -MD -MP -MF .deps/DummyScoreProducers.Tpo -c -o DummyScoreProducers.o DummyScoreProducers.cpp
mv -f .deps/Dictionary.Tpo .deps/Dictionary.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT Factor.o -MD -MP -MF .deps/Factor.Tpo -c -o Factor.o Factor.cpp
mv -f .deps/ConfusionNet.Tpo .deps/ConfusionNet.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT FactorCollection.o -MD -MP -MF .deps/FactorCollection.Tpo -c -o FactorCollection.o FactorCollection.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from DummyScoreProducers.cpp:5:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/DecodeStepTranslation.Tpo .deps/DecodeStepTranslation.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT FactorTypeSet.o -MD -MP -MF .deps/FactorTypeSet.Tpo -c -o FactorTypeSet.o FactorTypeSet.cpp
Factor.cpp:28: warning: unused parameter ‘direction’
Factor.cpp:28: warning: unused parameter ‘factorType’
Factor.cpp:35: warning: unused parameter ‘direction’
Factor.cpp:35: warning: unused parameter ‘factorType’
mv -f .deps/Factor.Tpo .deps/Factor.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT FeatureFunction.o -MD -MP -MF .deps/FeatureFunction.Tpo -c -o FeatureFunction.o FeatureFunction.cpp
FeatureFunction.cpp:15: warning: unused parameter ‘cur_hypo’
FeatureFunction.cpp:15: warning: unused parameter ‘accumulator’
mv -f .deps/FeatureFunction.Tpo .deps/FeatureFunction.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT FFState.o -MD -MP -MF .deps/FFState.Tpo -c -o FFState.o FFState.cpp
mv -f .deps/FFState.Tpo .deps/FFState.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT FloydWarshall.o -MD -MP -MF .deps/FloydWarshall.Tpo -c -o FloydWarshall.o FloydWarshall.cpp
mv -f .deps/FactorTypeSet.Tpo .deps/FactorTypeSet.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT GenerationDictionary.o -MD -MP -MF .deps/GenerationDictionary.Tpo -c -o GenerationDictionary.o GenerationDictionary.cpp
mv -f .deps/DummyScoreProducers.Tpo .deps/DummyScoreProducers.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.cpp
mv -f .deps/FactorCollection.Tpo .deps/FactorCollection.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT Hypothesis.o -MD -MP -MF .deps/Hypothesis.Tpo -c -o Hypothesis.o Hypothesis.cpp
mv -f .deps/hash.Tpo .deps/hash.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT HypothesisStack.o -MD -MP -MF .deps/HypothesisStack.Tpo -c -o HypothesisStack.o HypothesisStack.cpp
mv -f .deps/FloydWarshall.Tpo .deps/FloydWarshall.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT HypothesisStackCubePruning.o -MD -MP -MF .deps/HypothesisStackCubePruning.Tpo -c -o HypothesisStackCubePruning.o HypothesisStackCubePruning.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStack.h:6,
                 from HypothesisStack.cpp:2:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from Hypothesis.cpp:29:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from GenerationDictionary.cpp:29:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
Hypothesis.h: In constructor ‘Moses::Hypothesis::Hypothesis(const Moses::InputType&, const Moses::TargetPhrase&)’:
Hypothesis.h:86: warning: ‘Moses::Hypothesis::m_transOpt’ will be initialized after
Hypothesis.h:70: warning:   ‘const Moses::TargetPhrase& Moses::Hypothesis::m_targetPhrase’
Hypothesis.cpp:51: warning:   when initialized here
Hypothesis.h:88: warning: ‘Moses::Hypothesis::m_id’ will be initialized after
Hypothesis.h:85: warning:   ‘Moses::AlignmentPair Moses::Hypothesis::m_alignPair’
Hypothesis.cpp:51: warning:   when initialized here
Hypothesis.h: In constructor ‘Moses::Hypothesis::Hypothesis(const Moses::Hypothesis&, const Moses::TranslationOption&)’:
Hypothesis.h:86: warning: ‘Moses::Hypothesis::m_transOpt’ will be initialized after
Hypothesis.h:71: warning:   ‘const Moses::Phrase* Moses::Hypothesis::m_sourcePhrase’
Hypothesis.cpp:78: warning:   when initialized here
Hypothesis.h:82: warning: ‘Moses::Hypothesis::m_ffStates’ will be initialized after
Hypothesis.h:81: warning:   ‘Moses::ScoreComponentCollection Moses::Hypothesis::m_scoreBreakdown’
Hypothesis.cpp:78: warning:   when initialized here
Hypothesis.h:88: warning: ‘Moses::Hypothesis::m_id’ will be initialized after
Hypothesis.h:85: warning:   ‘Moses::AlignmentPair Moses::Hypothesis::m_alignPair’
Hypothesis.cpp:78: warning:   when initialized here
mv -f .deps/HypothesisStack.Tpo .deps/HypothesisStack.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT HypothesisStackNormal.o -MD -MP -MF .deps/HypothesisStackNormal.Tpo -c -o HypothesisStackNormal.o HypothesisStackNormal.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStackCubePruning.h:27,
                 from HypothesisStackCubePruning.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
HypothesisStackCubePruning.cpp:260: warning: unused parameter ‘range’
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStackNormal.h:26,
                 from HypothesisStackNormal.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/Hypothesis.Tpo .deps/Hypothesis.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT InputType.o -MD -MP -MF .deps/InputType.Tpo -c -o InputType.o InputType.cpp
mv -f .deps/GenerationDictionary.Tpo .deps/GenerationDictionary.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT InputFileStream.o -MD -MP -MF .deps/InputFileStream.Tpo -c -o InputFileStream.o InputFileStream.cpp
In file included from InputFileStream.cpp:23:
gzfilebuf.h:5:18: error: zlib.h: No such file or directory
mv -f .deps/HypothesisStackCubePruning.Tpo .deps/HypothesisStackCubePruning.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT LMList.o -MD -MP -MF .deps/LMList.Tpo -c -o LMList.o LMList.cpp
In file included from InputFileStream.cpp:23:
gzfilebuf.h:76: error: ‘gzFile’ does not name a type
gzfilebuf.h: In constructor ‘gzfilebuf::gzfilebuf(const char*)’:
gzfilebuf.h:11: error: ‘_gzf’ was not declared in this scope
gzfilebuf.h:11: error: ‘gzopen’ was not declared in this scope
gzfilebuf.h: In destructor ‘virtual gzfilebuf::~gzfilebuf()’:
gzfilebuf.h:16: error: ‘_gzf’ was not declared in this scope
gzfilebuf.h:16: error: ‘gzclose’ was not declared in this scope
gzfilebuf.h: At global scope:
gzfilebuf.h:18: warning: unused parameter ‘c’
gzfilebuf.h:25: warning: unused parameter ‘s’
gzfilebuf.h:25: warning: unused parameter ‘num’
gzfilebuf.h:29: warning: unused parameter ‘sp’
gzfilebuf.h:29: warning: unused parameter ‘which’
gzfilebuf.h: In member function ‘virtual int gzfilebuf::underflow()’:
gzfilebuf.h:55: error: ‘_gzf’ was not declared in this scope
gzfilebuf.h:55: error: ‘gzread’ was not declared in this scope
gzfilebuf.h: In member function ‘virtual std::streamsize gzfilebuf::xsgetn(char*, std::streamsize)’:
gzfilebuf.h:72: error: ‘_gzf’ was not declared in this scope
gzfilebuf.h:72: error: ‘gzread’ was not declared in this scope
make[3]: *** [InputFileStream.o] Error 1
make[3]: *** Waiting for unfinished jobs....
InputType.cpp:52: warning: unused parameter ‘start’
InputType.cpp:52: warning: unused parameter ‘end’
mv -f .deps/InputType.Tpo .deps/InputType.Po
mv -f .deps/LMList.Tpo .deps/LMList.Po
mv -f .deps/HypothesisStackNormal.Tpo .deps/HypothesisStackNormal.Po
make[3]: Leaving directory `/home/sean/Download/moses/moses/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sean/Download/moses/moses/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sean/Download/moses'
make: *** [all] Error 2
 
Old 07-06-2009, 12:07 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
gzfilebuf.h:5:18: error: zlib.h: No such file or directory
You miss the zlib development package.
Since you didn't say what distro you're using, you have to search your distro's repo for a package named something like zlib-dev and install it.

Regards

Last edited by bathory; 07-06-2009 at 12:32 AM.
 
Old 07-06-2009, 02:41 AM   #3
GaHeRiS
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply. I installed the zlib developer package, which did solve the missing header error. However, it still will not compile.

Code:
// console output for: ./configure --with-srilm=srilm

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking Ngram.h usability... yes
checking Ngram.h presence... no
configure: WARNING: Ngram.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: Ngram.h: proceeding with the compiler's result
checking for Ngram.h... yes
checking getopt.h usability... yes
checking getopt.h presence... no
configure: WARNING: getopt.h: accepted by the compiler, rejected by the 
preprocessor!
configure: WARNING: getopt.h: proceeding with the compiler's result
checking for getopt.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating moses/src/Makefile
config.status: creating moses-cmd/src/Makefile
config.status: creating misc/Makefile
config.status: creating mert/Makefile
config.status: creating config.h
config.status: executing depfiles commands

// console output for: make -j 4

(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/home/sean/Download/moses/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/sean/Download/moses'
Making all in moses/src
make[2]: Entering directory `/home/sean/Download/moses/moses/src'
make  all-am
make[3]: Entering directory `/home/sean/Download/moses/moses/src'
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
AlignmentElement.o -MD -MP -MF .deps/AlignmentElement.Tpo -c -o 
AlignmentElement.o AlignmentElement.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
AlignmentPhrase.o -MD -MP -MF .deps/AlignmentPhrase.Tpo -c -o 
AlignmentPhrase.o AlignmentPhrase.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
AlignmentPair.o -MD -MP -MF .deps/AlignmentPair.Tpo -c -o 
AlignmentPair.o AlignmentPair.cpp
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
BitmapContainer.o -MD -MP -MF .deps/BitmapContainer.Tpo -c -o 
BitmapContainer.o BitmapContainer.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from BitmapContainer.h:27,
                 from BitmapContainer.cpp:26:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/AlignmentPair.Tpo .deps/AlignmentPair.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
ConfusionNet.o -MD -MP -MF .deps/ConfusionNet.Tpo -c -o ConfusionNet.o 
ConfusionNet.cpp
ConfusionNet.cpp:205: warning: ignoring #pragma warning 
ConfusionNet.cpp:216: warning: ignoring #pragma warning 
ConfusionNet.cpp:221: warning: ignoring #pragma warning 
mv -f .deps/AlignmentElement.Tpo .deps/AlignmentElement.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
DecodeGraph.o -MD -MP -MF .deps/DecodeGraph.Tpo -c -o DecodeGraph.o 
DecodeGraph.cpp
BitmapContainer.cpp: In constructor 
‘Moses::BackwardsEdge::BackwardsEdge(const Moses::BitmapContainer&, 
Moses::BitmapContainer&, const Moses::TranslationOptionList&, const 
Moses::SquareMatrix&)’:
BitmapContainer.cpp:147: warning: comparison between signed and unsigned 
integer expressions
mv -f .deps/AlignmentPhrase.Tpo .deps/AlignmentPhrase.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
DecodeStep.o -MD -MP -MF .deps/DecodeStep.Tpo -c -o DecodeStep.o 
DecodeStep.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from TranslationOptionCollection.h:26,
                 from TranslationOptionCollectionConfusionNet.h:4,
                 from ConfusionNet.cpp:9:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/DecodeGraph.Tpo .deps/DecodeGraph.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
DecodeStepGeneration.o -MD -MP -MF .deps/DecodeStepGeneration.Tpo -c -o 
DecodeStepGeneration.o DecodeStepGeneration.cpp
ConfusionNet.cpp:212: warning: unused parameter ‘factorsToPrint’
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from DecodeStep.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from DecodeStepGeneration.cpp:24:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
DecodeStepGeneration.cpp:84: warning: unused parameter ‘toc’
DecodeStepGeneration.cpp:84: warning: unused parameter 
‘adhereTableLimit’
mv -f .deps/BitmapContainer.Tpo .deps/BitmapContainer.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
DecodeStepTranslation.o -MD -MP -MF .deps/DecodeStepTranslation.Tpo -c 
-o DecodeStepTranslation.o DecodeStepTranslation.cpp
mv -f .deps/DecodeStep.Tpo .deps/DecodeStep.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
Dictionary.o -MD -MP -MF .deps/Dictionary.Tpo -c -o Dictionary.o 
Dictionary.cpp
mv -f .deps/DecodeStepGeneration.Tpo .deps/DecodeStepGeneration.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
DummyScoreProducers.o -MD -MP -MF .deps/DummyScoreProducers.Tpo -c -o 
DummyScoreProducers.o DummyScoreProducers.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from DecodeStepTranslation.cpp:24:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/Dictionary.Tpo .deps/Dictionary.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
Factor.o -MD -MP -MF .deps/Factor.Tpo -c -o Factor.o Factor.cpp
mv -f .deps/ConfusionNet.Tpo .deps/ConfusionNet.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
FactorCollection.o -MD -MP -MF .deps/FactorCollection.Tpo -c -o 
FactorCollection.o FactorCollection.cpp
Factor.cpp:28: warning: unused parameter ‘direction’
Factor.cpp:28: warning: unused parameter ‘factorType’
Factor.cpp:35: warning: unused parameter ‘direction’
Factor.cpp:35: warning: unused parameter ‘factorType’
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from DummyScoreProducers.cpp:5:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/Factor.Tpo .deps/Factor.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
FactorTypeSet.o -MD -MP -MF .deps/FactorTypeSet.Tpo -c -o 
FactorTypeSet.o FactorTypeSet.cpp
mv -f .deps/DecodeStepTranslation.Tpo .deps/DecodeStepTranslation.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
FeatureFunction.o -MD -MP -MF .deps/FeatureFunction.Tpo -c -o 
FeatureFunction.o FeatureFunction.cpp
FeatureFunction.cpp:15: warning: unused parameter ‘cur_hypo’
FeatureFunction.cpp:15: warning: unused parameter ‘accumulator’
mv -f .deps/FeatureFunction.Tpo .deps/FeatureFunction.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
FFState.o -MD -MP -MF .deps/FFState.Tpo -c -o FFState.o FFState.cpp
mv -f .deps/FFState.Tpo .deps/FFState.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
FloydWarshall.o -MD -MP -MF .deps/FloydWarshall.Tpo -c -o 
FloydWarshall.o FloydWarshall.cpp
mv -f .deps/FactorCollection.Tpo .deps/FactorCollection.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
GenerationDictionary.o -MD -MP -MF .deps/GenerationDictionary.Tpo -c -o 
GenerationDictionary.o GenerationDictionary.cpp
mv -f .deps/DummyScoreProducers.Tpo .deps/DummyScoreProducers.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.cpp
mv -f .deps/hash.Tpo .deps/hash.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
Hypothesis.o -MD -MP -MF .deps/Hypothesis.Tpo -c -o Hypothesis.o 
Hypothesis.cpp
mv -f .deps/FactorTypeSet.Tpo .deps/FactorTypeSet.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
HypothesisStack.o -MD -MP -MF .deps/HypothesisStack.Tpo -c -o 
HypothesisStack.o HypothesisStack.cpp
mv -f .deps/FloydWarshall.Tpo .deps/FloydWarshall.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
HypothesisStackCubePruning.o -MD -MP -MF 
.deps/HypothesisStackCubePruning.Tpo -c -o HypothesisStackCubePruning.o 
HypothesisStackCubePruning.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from GenerationDictionary.cpp:29:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from TranslationOption.h:29,
                 from Hypothesis.cpp:29:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStack.h:6,
                 from HypothesisStack.cpp:2:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStackCubePruning.h:27,
                 from HypothesisStackCubePruning.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return 
typeHypothesis.h: In constructor ‘Moses::Hypothesis::Hypothesis(const 
Moses::InputType&, const Moses::TargetPhrase&)’:
Hypothesis.h:86: warning: ‘Moses::Hypothesis::m_transOpt’ will be 
initialized after
Hypothesis.h:70: warning:   ‘const Moses::TargetPhrase& 
Moses::Hypothesis::m_targetPhrase’
Hypothesis.cpp:51: warning:   when initialized here
Hypothesis.h:88: warning: ‘Moses::Hypothesis::m_id’ will be initialized 
after
Hypothesis.h:85: warning:   ‘Moses::AlignmentPair 
Moses::Hypothesis::m_alignPair’
Hypothesis.cpp:51: warning:   when initialized here
Hypothesis.h: In constructor ‘Moses::Hypothesis::Hypothesis(const 
Moses::Hypothesis&, const Moses::TranslationOption&)’:
Hypothesis.h:86: warning: ‘Moses::Hypothesis::m_transOpt’ will be 
initialized after
Hypothesis.h:71: warning:   ‘const Moses::Phrase* 
Moses::Hypothesis::m_sourcePhrase’
Hypothesis.cpp:78: warning:   when initialized here
Hypothesis.h:82: warning: ‘Moses::Hypothesis::m_ffStates’ will be 
initialized after
Hypothesis.h:81: warning:   ‘Moses::ScoreComponentCollection 
Moses::Hypothesis::m_scoreBreakdown’
Hypothesis.cpp:78: warning:   when initialized here
Hypothesis.h:88: warning: ‘Moses::Hypothesis::m_id’ will be initialized 
after
Hypothesis.h:85: warning:   ‘Moses::AlignmentPair 
Moses::Hypothesis::m_alignPair’
Hypothesis.cpp:78: warning:   when initialized here

FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
HypothesisStackCubePruning.cpp:260: warning: unused parameter ‘range’
mv -f .deps/HypothesisStack.Tpo .deps/HypothesisStack.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
HypothesisStackNormal.o -MD -MP -MF .deps/HypothesisStackNormal.Tpo -c 
-o HypothesisStackNormal.o HypothesisStackNormal.cpp
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from HypothesisStackNormal.h:26,
                 from HypothesisStackNormal.cpp:25:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
mv -f .deps/GenerationDictionary.Tpo .deps/GenerationDictionary.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
InputType.o -MD -MP -MF .deps/InputType.Tpo -c -o InputType.o 
InputType.cpp
mv -f .deps/Hypothesis.Tpo .deps/Hypothesis.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
InputFileStream.o -MD -MP -MF .deps/InputFileStream.Tpo -c -o 
InputFileStream.o InputFileStream.cpp
InputType.cpp:52: warning: unused parameter ‘start’
InputType.cpp:52: warning: unused parameter ‘end’
mv -f .deps/HypothesisStackCubePruning.Tpo 
.deps/HypothesisStackCubePruning.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
LMList.o -MD -MP -MF .deps/LMList.Tpo -c -o LMList.o LMList.cpp
In file included from InputFileStream.cpp:23:
gzfilebuf.h:18: warning: unused parameter ‘c’
gzfilebuf.h:25: warning: unused parameter ‘s’
gzfilebuf.h:25: warning: unused parameter ‘num’
gzfilebuf.h:29: warning: unused parameter ‘sp’
gzfilebuf.h:29: warning: unused parameter ‘which’
mv -f .deps/InputType.Tpo .deps/InputType.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
LVoc.o -MD -MP -MF .deps/LVoc.Tpo -c -o LVoc.o LVoc.cpp
mv -f .deps/InputFileStream.Tpo .deps/InputFileStream.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
LanguageModel.o -MD -MP -MF .deps/LanguageModel.Tpo -c -o 
LanguageModel.o LanguageModel.cpp
mv -f .deps/LMList.Tpo .deps/LMList.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
LanguageModelFactory.o -MD -MP -MF .deps/LanguageModelFactory.Tpo -c -o 
LanguageModelFactory.o LanguageModelFactory.cpp
mv -f .deps/LVoc.Tpo .deps/LVoc.Po
g++ -DHAVE_CONFIG_H -I. -I../..  -W -Wall -ffor-scope 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES  -Isrilm/include  -g -O2 -MT 
LanguageModelInternal.o -MD -MP -MF .deps/LanguageModelInternal.Tpo -c 
-o LanguageModelInternal.o LanguageModelInternal.cpp
In file included from LanguageModelFactory.cpp:31:
LanguageModelSRI.h:28:19: error: Vocab.h: No such file or directory
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from LanguageModel.cpp:33:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
In file included from LanguageModelFactory.cpp:31:
LanguageModelSRI.h:41: error: ‘VocabIndex’ was not declared in this 
scope
LanguageModelSRI.h:41: error: template argument 1 is invalid
LanguageModelSRI.h:41: error: template argument 2 is invalid
LanguageModelSRI.h:42: error: ISO C++ forbids declaration of ‘Vocab’ 
with no type
LanguageModelSRI.h:42: error: expected ‘;’ before ‘*’ token
LanguageModelSRI.h:44: error: ‘VocabIndex’ does not name a type
LanguageModelSRI.h:46: error: ‘VocabIndex’ has not been declared
LanguageModelSRI.h:46: error: ‘VocabIndex’ has not been declared
LanguageModelSRI.h:48: error: ‘VocabIndex’ does not name a type
LanguageModelSRI.h:49: error: ‘VocabIndex’ does not name a type
LanguageModelFactory.cpp:61: warning: unused parameter ‘dub’
make[3]: *** [LanguageModelFactory.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/HypothesisStackNormal.Tpo .deps/HypothesisStackNormal.Po
In file included from PrefixTree.h:14,
                 from PrefixTreeMap.h:8,
                 from LexicalReorderingTable.h:15,
                 from LexicalReordering.h:16,
                 from Hypothesis.h:36,
                 from SentenceStats.h:29,
                 from StaticData.h:34,
                 from LanguageModelInternal.cpp:6:
FilePtr.h:37: warning: type qualifiers ignored on function return type
FilePtr.h:38: warning: type qualifiers ignored on function return type
FilePtr.h:42: warning: type qualifiers ignored on function return type
LanguageModelInternal.cpp:121: warning: unused parameter ‘len’
mv -f .deps/LanguageModel.Tpo .deps/LanguageModel.Po
LanguageModelInternal.cpp: In member function ‘virtual bool 
Moses::LanguageModelInternal::Load(const std::string&, 
Moses::FactorType, float, size_t)’:
LanguageModelInternal.cpp:72: warning: ‘factor’ may be used 
uninitialized in this function
LanguageModelInternal.cpp:71: warning: ‘nGram’ may be used uninitialized 
in this function
mv -f .deps/LanguageModelInternal.Tpo .deps/LanguageModelInternal.Po
make[3]: Leaving directory `/home/sean/Download/moses/moses/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sean/Download/moses/moses/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sean/Download/moses'
make: *** [all] Error 2
I am using Fedora 10.
 
Old 07-06-2009, 04:13 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should take a look at this post
 
Old 07-06-2009, 05:23 AM   #5
GaHeRiS
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
That solved the problem. Thank you.
 
  


Reply

Tags
compile, error, make



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
want to make Log of system calls per process running on the machine sudhansu Linux - Kernel 7 02-16-2012 02:50 AM
Unable to use wget and unable to ping machine from external source grunshaw Linux - Networking 3 10-24-2006 08:46 AM
Unable to compile (make, make install):need linux-headers smiley_lauf Linux - Newbie 3 01-31-2006 12:05 AM
statistical packages tireseas Linux - Software 6 02-01-2004 03:33 AM
[Early] Congratulations Moses! MasterC General 8 07-10-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration