Hi Tim It looks like you're missing zlib.h. Check you have the zlib-devel rpm installed.
regards Barry On Thursday 26 November 2009 17:47, Tim Mylward wrote: > Hi > > > > I got a similar problem to that raised in respect of a ".compilation > problem on fedora 11" which I used to fix the same problem on Linux SUSE by > adding the -std=c++0x option as suggested. > > Now I get more activity but with many Warnings and Errors: > > > > I'm afraid my Linux knowledge is limited and I wondered if you might have > any suggestions regarding what I am doing wrong. > > > > Best Regards, > > Tim > > > > // START > > > > suse11:/src/trunk # make -j 4 > > make all-recursive > > make[1]: Entering directory `/src/trunk' > > Making all in moses/src > > make[2]: Entering directory `/src/trunk/moses/src' > > cd ../.. && /bin/sh /src/trunk/missing --run automake-1.10 --gnu > moses/src/Makefile > > cd ../.. && /bin/sh ./config.status moses/src/Makefile depfiles > > config.status: creating moses/src/Makefile > > config.status: executing depfiles commands > > make[2]: Leaving directory `/src/trunk/moses/src' > > make[2]: Entering directory `/src/trunk/moses/src' > > make all-am > > make[3]: Entering directory `/src/trunk/moses/src' > > g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/include -g > -O2 -MT ConfusionNet.o -MD -MP -MF .deps/ConfusionNet.Tpo -c -o > ConfusionNet.o ConfusionNet.cpp > > g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/src/srilm/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 > > 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 -std=c++0x -I/src/srilm/include -g > -O2 -MT DecodeStep.o -MD -MP -MF .deps/DecodeStep.Tpo -c -o DecodeStep.o > DecodeStep.cpp > > mv -f .deps/AlignmentPair.Tpo .deps/AlignmentPair.Po > > ConfusionNet.cpp:212: warning: unused parameter 'factorsToPrint' > > g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/src/srilm/include -g > -O2 -MT > DecodeStepGeneration.o -MD -MP -MF .deps/DecodeStepGeneration.Tpo -c -o > DecodeStepGeneration.o DecodeStepGeneration.cpp > > 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 -std=c++0x -I/src/srilm/include -g > -O2 -MT > DecodeStepTranslation.o -MD -MP -MF .deps/DecodeStepTranslation.Tpo -c -o > DecodeStepTranslation.o DecodeStepTranslation.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 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 > > 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 > > DecodeStepGeneration.cpp:80: warning: unused parameter 'toc' > > DecodeStepGeneration.cpp:80: warning: unused parameter 'adhereTableLimit' > > 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/DecodeStep.Tpo .deps/DecodeStep.Po > > g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/include -g > -O2 -MT > DummyScoreProducers.o -MD -MP -MF .deps/DummyScoreProducers.Tpo -c -o > DummyScoreProducers.o DummyScoreProducers.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 -std=c++0x -I/src/srilm/include -g > -O2 -MT Factor.o -MD -MP -MF .deps/Factor.Tpo -c -o Factor.o Factor.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 -std=c++0x -I/src/srilm/include -g > -O2 -MT > FactorCollection.o -MD -MP -MF .deps/FactorCollection.Tpo -c -o > FactorCollection.o FactorCollection.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 -std=c++0x -I/src/srilm/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' > > 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 -std=c++0x -I/src/srilm/include -g > -O2 -MT > FeatureFunction.o -MD -MP -MF .deps/FeatureFunction.Tpo -c -o > FeatureFunction.o FeatureFunction.cpp > > FeatureFunction.cpp:13: warning: unused parameter 'cur_hypo' > > FeatureFunction.cpp:13: 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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/include -g > -O2 -MT Hypothesis.o -MD -MP -MF .deps/Hypothesis.Tpo -c -o Hypothesis.o > Hypothesis.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 -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/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 > > 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 > > 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:255: 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 -std=c++0x -I/src/srilm/include -g > -O2 -MT > HypothesisStackNormal.o -MD -MP -MF .deps/HypothesisStackNormal.Tpo -c -o > HypothesisStackNormal.o HypothesisStackNormal.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 -std=c++0x -I/src/srilm/include -g > -O2 -MT InputType.o -MD -MP -MF .deps/InputType.Tpo -c -o InputType.o > InputType.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/Hypothesis.Tpo .deps/Hypothesis.Po > > g++ -DHAVE_CONFIG_H -I. -I../.. -W -Wall -ffor-scope > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -std=c++0x -I/src/srilm/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 -std=c++0x -I/src/srilm/include -g > -O2 -MT LMList.o -MD -MP -MF .deps/LMList.Tpo -c -o LMList.o LMList.cpp > > InputType.cpp:52: warning: unused parameter 'start' > > InputType.cpp:52: warning: unused parameter 'end' > > In file included from InputFileStream.cpp:23: > > gzfilebuf.h:76: error: 'gzFile' does not name a type > > In file included from InputFileStream.cpp:23: > > 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:24: warning: unused parameter 's' > > gzfilebuf.h:24: warning: unused parameter 'num' > > In file included from InputFileStream.cpp:23: > > 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.... > > 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 `/src/trunk/moses/src' > > make[2]: *** [all] Error 2 > > make[2]: Leaving directory `/src/trunk/moses/src' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/src/trunk' > > make: *** [all] Error 2 -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support