Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@Debian-60-squeeze-64-minimal ~/greenstone/Greenstone-2.85-source-distribution # make
- for odir in common-src; do \
- if test -d $odir; then \
- echo making without-jni in $odir; \
- (cd $odir && make without-jni) || exit 1; \
- fi; \
- done
- making without-jni in common-src
- make[1]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src'
- for odir in indexers; do \
- echo making without-jni in $odir; \
- (cd $odir && make without-jni) || exit 1; \
- done
- making without-jni in indexers
- make[2]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers'
- for odir in packages/unac lucene-gs; do \
- echo making without-jni in $odir; \
- (cd $odir && make all) || exit 1; \
- done
- making without-jni in packages/unac
- make[3]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/packages/unac'
- gcc -c -DHAVE_CONFIG_H -DUNAC_VERSION=\"1.7.0\" -I../../../packages/iconv/include -g -O2 -Wall -Wmissing-declarations -Wmissing-prototypes -m32 unac.c
- rm -f libunac.a
- ar cru libunac.a unac.o
- ranlib libunac.a
- make[3]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/packages/unac'
- making without-jni in lucene-gs
- make[3]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/lucene-gs'
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2Analyzer.java
- src/org/greenstone/LuceneWrapper/GS2Analyzer.java:43: warning: Set is a raw type. References to generic type Set<E> should be parameterized
- public GS2Analyzer(Set stopWords)
- ^^^
- 1 problem (1 warning)
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2IndexModifier.java
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:36: warning: The type IndexModifier is deprecated
- import org.apache.lucene.index.IndexModifier;
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:41: warning: The import org.apache.lucene.search.Searcher is never used
- import org.apache.lucene.search.Searcher;
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:42: warning: The import org.apache.lucene.search.IndexSearcher is never used
- import org.apache.lucene.search.IndexSearcher;
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:47: warning: The type IndexModifier is deprecated
- extends IndexModifier
- ^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:57: warning: The constructor IndexModifier(String, Analyzer, boolean) is deprecated
- super(dir_name, analyzer, false);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:78: warning: The method createIndexReader() from the type IndexModifier is deprecated
- createIndexReader();
- ^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:79: warning: The field IndexModifier.indexReader is deprecated
- return indexReader.document(n);
- ^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:95: warning: The method createIndexReader() from the type IndexModifier is deprecated
- createIndexReader();
- ^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:97: warning: The field IndexModifier.indexReader is deprecated
- TermPositions term_positions = indexReader.termPositions(term);
- ^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:121: warning: The field IndexModifier.indexReader is deprecated
- return indexReader;
- ^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:129: warning: The field IndexModifier.indexWriter is deprecated
- return indexWriter;
- ^^^^^^^^^^^
- 11 problems (11 warnings)
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2LuceneDelete.java
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:36: warning: The import java.util.Enumeration is never used
- import java.util.Enumeration;
- ^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:170: warning: The method close() from the type IndexModifier is deprecated
- index_modifier.close();
- ^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:190: warning: The method docCount() from the type IndexModifier is deprecated
- debug("- Initial number of documents in index: " + index_modifier.docCount());
- ^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:199: warning: The method deleteDocument(int) from the type IndexModifier is deprecated
- index_modifier.deleteDocument(doc_num);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:212: warning: The method addDocument(Document) from the type IndexModifier is deprecated
- index_modifier.addDocument(document);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:235: warning: The method addDocument(Document) from the type IndexModifier is deprecated
- index_modifier.addDocument(document);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:255: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector values = new Vector(Arrays.asList(values_raw));
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:255: warning: Type safety: The constructor Vector(Collection) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
- Vector values = new Vector(Arrays.asList(values_raw));
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:255: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector values = new Vector(Arrays.asList(values_raw));
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:284: warning: Type safety: The method add(Object) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
- values.add(new_value);
- ^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:306: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector values = new Vector();
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:306: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector values = new Vector();
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:307: warning: Type safety: The method add(Object) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
- values.add(new_value);
- ^^^^^^^^^^^^^^^^^^^^^
- 13 problems (13 warnings)
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:52: warning: The import java.net.URL is never used
- import java.net.URL;
- ^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:77: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector filtered_args = new Vector();
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:77: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
- Vector filtered_args = new Vector();
- ^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:107: warning: Type safety: The method add(Object) belongs to the raw type Vector. References to generic type Vector<T> should be parameterized
- filtered_args.add((Object)args[i]);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:107: warning: Unnecessary cast from String to Object
- filtered_args.add((Object)args[i]);
- ^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:180: warning: Stack is a raw type. References to generic type Stack<T> should be parameterized
- Stack stack_ = null;
- ^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:192: warning: The static field StandardAnalyzer.STOP_WORDS should be accessed directly
- static private String[] stop_words = GS2Analyzer.STOP_WORDS;
- ^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:201: warning: Stack is a raw type. References to generic type Stack<T> should be parameterized
- stack_ = new Stack();
- ^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:448: warning: Type safety: The method push(Object) belongs to the raw type Stack. References to generic type Stack<T> should be parameterized
- stack_.push(save);
- ^^^^^^^^^^^^^^^^^
- 9 problems (9 warnings)
- mkdir -p classes && javac -source 1.4 -target 1.4 -classpath ./lib/lucene-core-2.3.2.jar:classes:. -d classes -sourcepath src/ src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:61: warning: The static field StandardAnalyzer.STOP_WORDS should be accessed directly
- static private String[] stop_words = GS2Analyzer.STOP_WORDS;
- ^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:121: error: LuceneQueryResult cannot be resolved to a type
- public LuceneQueryResult runQuery(String query_string) {
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:129: error: LuceneQueryResult cannot be resolved to a type
- LuceneQueryResult lucene_query_result=new LuceneQueryResult();
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:129: error: LuceneQueryResult cannot be resolved to a type
- LuceneQueryResult lucene_query_result=new LuceneQueryResult();
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:143: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
- HashSet terms = new HashSet();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:143: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
- HashSet terms = new HashSet();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:146: warning: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
- HashMap doc_term_freq_map = new HashMap();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:146: warning: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
- HashMap doc_term_freq_map = new HashMap();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:148: warning: Iterator is a raw type. References to generic type Iterator<E> should be parameterized
- Iterator iter = terms.iterator();
- ^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:173: warning: Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized
- doc_term_freq_map.put(lucene_doc_num_obj, new Integer(doc_term_freq));
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:182: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
- HashSet terms_including_stop_words = new HashSet();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:182: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
- HashSet terms_including_stop_words = new HashSet();
- ^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:184: warning: Iterator is a raw type. References to generic type Iterator<E> should be parameterized
- Iterator terms_including_stop_words_iter = terms_including_stop_words.iterator();
- ^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:241: error: LuceneQueryResult cannot be resolved
- lucene_query_result.setError(LuceneQueryResult.PARSE_ERROR);
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:244: error: LuceneQueryResult cannot be resolved
- lucene_query_result.setError(LuceneQueryResult.TOO_MANY_CLAUSES_ERROR);
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:247: error: LuceneQueryResult cannot be resolved
- lucene_query_result.setError(LuceneQueryResult.IO_ERROR);
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:251: error: LuceneQueryResult cannot be resolved
- lucene_query_result.setError(LuceneQueryResult.OTHER_ERROR);
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:260: warning: The static field QueryParser.AND_OPERATOR should be accessed in a static way
- query_parser.setDefaultOperator(query_parser.AND_OPERATOR);
- ^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:261: warning: The static field QueryParser.AND_OPERATOR should be accessed in a static way
- query_parser_no_stop_words.setDefaultOperator(query_parser.AND_OPERATOR);
- ^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:263: warning: The static field QueryParser.OR_OPERATOR should be accessed in a static way
- query_parser.setDefaultOperator(query_parser.OR_OPERATOR);
- ^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:264: warning: The static field QueryParser.OR_OPERATOR should be accessed in a static way
- query_parser_no_stop_words.setDefaultOperator(query_parser.OR_OPERATOR);
- ^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:614: error: LuceneQueryResult cannot be resolved
- query_results_xml.append("<QueryString>" + LuceneQueryResult.xmlSafe(query_string) + "</QueryString>\n");
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:620: error: LuceneQueryResult cannot be resolved to a type
- LuceneQueryResult query_result = queryer.runQuery(query_string);
- ^^^^^^^^^^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:620: error: The method runQuery(String) from the type GS2LuceneQuery refers to the missing type LuceneQueryResult
- LuceneQueryResult query_result = queryer.runQuery(query_string);
- ^^^^^^^^
- src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:626: error: LuceneQueryResult cannot be resolved
- if (query_result.getError() != LuceneQueryResult.NO_ERROR) {
- ^^^^^^^^^^^^^^^^^
- 25 problems (11 errors, 14 warnings)
- make[3]: *** [classes/org/greenstone/LuceneWrapper/GS2LuceneQuery.class] Error 1
- make[3]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/lucene-gs'
- make[2]: *** [without-jni] Error 1
- make[2]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers'
- make[1]: *** [without-jni] Error 1
- make[1]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src'
- make: *** [without-jni] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement