Advertisement
anathemizatu

Untitled

Jun 13th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.03 KB | None | 0 0
  1. root@Debian-60-squeeze-64-minimal ~/greenstone/Greenstone-2.85-source-distribution # make
  2. for odir in common-src; do \
  3. if test -d $odir; then \
  4. echo making without-jni in $odir; \
  5. (cd $odir && make without-jni) || exit 1; \
  6. fi; \
  7. done
  8. making without-jni in common-src
  9. make[1]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src'
  10. for odir in indexers; do \
  11. echo making without-jni in $odir; \
  12. (cd $odir && make without-jni) || exit 1; \
  13. done
  14. making without-jni in indexers
  15. make[2]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers'
  16. for odir in packages/unac lucene-gs; do \
  17. echo making without-jni in $odir; \
  18. (cd $odir && make all) || exit 1; \
  19. done
  20. making without-jni in packages/unac
  21. make[3]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/packages/unac'
  22. gcc -c -DHAVE_CONFIG_H -DUNAC_VERSION=\"1.7.0\" -I../../../packages/iconv/include -g -O2 -Wall -Wmissing-declarations -Wmissing-prototypes -m32 unac.c
  23. rm -f libunac.a
  24. ar cru libunac.a unac.o
  25. ranlib libunac.a
  26. make[3]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/packages/unac'
  27. making without-jni in lucene-gs
  28. make[3]: Entering directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/lucene-gs'
  29. 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
  30. src/org/greenstone/LuceneWrapper/GS2Analyzer.java:43: warning: Set is a raw type. References to generic type Set<E> should be parameterized
  31. public GS2Analyzer(Set stopWords)
  32. ^^^
  33. 1 problem (1 warning)
  34. 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
  35. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:36: warning: The type IndexModifier is deprecated
  36. import org.apache.lucene.index.IndexModifier;
  37. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  38. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:41: warning: The import org.apache.lucene.search.Searcher is never used
  39. import org.apache.lucene.search.Searcher;
  40. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  41. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:42: warning: The import org.apache.lucene.search.IndexSearcher is never used
  42. import org.apache.lucene.search.IndexSearcher;
  43. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  44. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:47: warning: The type IndexModifier is deprecated
  45. extends IndexModifier
  46. ^^^^^^^^^^^^^
  47. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:57: warning: The constructor IndexModifier(String, Analyzer, boolean) is deprecated
  48. super(dir_name, analyzer, false);
  49. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  50. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:78: warning: The method createIndexReader() from the type IndexModifier is deprecated
  51. createIndexReader();
  52. ^^^^^^^^^^^^^^^^^^^
  53. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:79: warning: The field IndexModifier.indexReader is deprecated
  54. return indexReader.document(n);
  55. ^^^^^^^^^^^
  56. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:95: warning: The method createIndexReader() from the type IndexModifier is deprecated
  57. createIndexReader();
  58. ^^^^^^^^^^^^^^^^^^^
  59. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:97: warning: The field IndexModifier.indexReader is deprecated
  60. TermPositions term_positions = indexReader.termPositions(term);
  61. ^^^^^^^^^^^
  62. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:121: warning: The field IndexModifier.indexReader is deprecated
  63. return indexReader;
  64. ^^^^^^^^^^^
  65. src/org/greenstone/LuceneWrapper/GS2IndexModifier.java:129: warning: The field IndexModifier.indexWriter is deprecated
  66. return indexWriter;
  67. ^^^^^^^^^^^
  68. 11 problems (11 warnings)
  69. 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
  70. 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
  71. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:36: warning: The import java.util.Enumeration is never used
  72. import java.util.Enumeration;
  73. ^^^^^^^^^^^^^^^^^^^^^
  74. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:170: warning: The method close() from the type IndexModifier is deprecated
  75. index_modifier.close();
  76. ^^^^^^^^^^^^^^^^^^^^^^
  77. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:190: warning: The method docCount() from the type IndexModifier is deprecated
  78. debug("- Initial number of documents in index: " + index_modifier.docCount());
  79. ^^^^^^^^^^^^^^^^^^^^^^^^^
  80. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:199: warning: The method deleteDocument(int) from the type IndexModifier is deprecated
  81. index_modifier.deleteDocument(doc_num);
  82. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  83. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:212: warning: The method addDocument(Document) from the type IndexModifier is deprecated
  84. index_modifier.addDocument(document);
  85. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  86. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:235: warning: The method addDocument(Document) from the type IndexModifier is deprecated
  87. index_modifier.addDocument(document);
  88. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  89. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:255: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  90. Vector values = new Vector(Arrays.asList(values_raw));
  91. ^^^^^^
  92. 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
  93. Vector values = new Vector(Arrays.asList(values_raw));
  94. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  95. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:255: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  96. Vector values = new Vector(Arrays.asList(values_raw));
  97. ^^^^^^
  98. 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
  99. values.add(new_value);
  100. ^^^^^^^^^^^^^^^^^^^^^
  101. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:306: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  102. Vector values = new Vector();
  103. ^^^^^^
  104. src/org/greenstone/LuceneWrapper/GS2LuceneEditor.java:306: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  105. Vector values = new Vector();
  106. ^^^^^^
  107. 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
  108. values.add(new_value);
  109. ^^^^^^^^^^^^^^^^^^^^^
  110. 13 problems (13 warnings)
  111. 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
  112. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:52: warning: The import java.net.URL is never used
  113. import java.net.URL;
  114. ^^^^^^^^^^^^
  115. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:77: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  116. Vector filtered_args = new Vector();
  117. ^^^^^^
  118. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:77: warning: Vector is a raw type. References to generic type Vector<T> should be parameterized
  119. Vector filtered_args = new Vector();
  120. ^^^^^^
  121. 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
  122. filtered_args.add((Object)args[i]);
  123. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  124. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:107: warning: Unnecessary cast from String to Object
  125. filtered_args.add((Object)args[i]);
  126. ^^^^^^^^^^^^^^^
  127. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:180: warning: Stack is a raw type. References to generic type Stack<T> should be parameterized
  128. Stack stack_ = null;
  129. ^^^^^
  130. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:192: warning: The static field StandardAnalyzer.STOP_WORDS should be accessed directly
  131. static private String[] stop_words = GS2Analyzer.STOP_WORDS;
  132. ^^^^^^^^^^
  133. src/org/greenstone/LuceneWrapper/GS2LuceneIndexer.java:201: warning: Stack is a raw type. References to generic type Stack<T> should be parameterized
  134. stack_ = new Stack();
  135. ^^^^^
  136. 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
  137. stack_.push(save);
  138. ^^^^^^^^^^^^^^^^^
  139. 9 problems (9 warnings)
  140. 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
  141. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:61: warning: The static field StandardAnalyzer.STOP_WORDS should be accessed directly
  142. static private String[] stop_words = GS2Analyzer.STOP_WORDS;
  143. ^^^^^^^^^^
  144. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:121: error: LuceneQueryResult cannot be resolved to a type
  145. public LuceneQueryResult runQuery(String query_string) {
  146. ^^^^^^^^^^^^^^^^^
  147. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:129: error: LuceneQueryResult cannot be resolved to a type
  148. LuceneQueryResult lucene_query_result=new LuceneQueryResult();
  149. ^^^^^^^^^^^^^^^^^
  150. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:129: error: LuceneQueryResult cannot be resolved to a type
  151. LuceneQueryResult lucene_query_result=new LuceneQueryResult();
  152. ^^^^^^^^^^^^^^^^^
  153. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:143: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
  154. HashSet terms = new HashSet();
  155. ^^^^^^^
  156. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:143: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
  157. HashSet terms = new HashSet();
  158. ^^^^^^^
  159. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:146: warning: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
  160. HashMap doc_term_freq_map = new HashMap();
  161. ^^^^^^^
  162. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:146: warning: HashMap is a raw type. References to generic type HashMap<K,V> should be parameterized
  163. HashMap doc_term_freq_map = new HashMap();
  164. ^^^^^^^
  165. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:148: warning: Iterator is a raw type. References to generic type Iterator<E> should be parameterized
  166. Iterator iter = terms.iterator();
  167. ^^^^^^^^
  168. 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
  169. doc_term_freq_map.put(lucene_doc_num_obj, new Integer(doc_term_freq));
  170. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  171. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:182: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
  172. HashSet terms_including_stop_words = new HashSet();
  173. ^^^^^^^
  174. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:182: warning: HashSet is a raw type. References to generic type HashSet<T> should be parameterized
  175. HashSet terms_including_stop_words = new HashSet();
  176. ^^^^^^^
  177. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:184: warning: Iterator is a raw type. References to generic type Iterator<E> should be parameterized
  178. Iterator terms_including_stop_words_iter = terms_including_stop_words.iterator();
  179. ^^^^^^^^
  180. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:241: error: LuceneQueryResult cannot be resolved
  181. lucene_query_result.setError(LuceneQueryResult.PARSE_ERROR);
  182. ^^^^^^^^^^^^^^^^^
  183. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:244: error: LuceneQueryResult cannot be resolved
  184. lucene_query_result.setError(LuceneQueryResult.TOO_MANY_CLAUSES_ERROR);
  185. ^^^^^^^^^^^^^^^^^
  186. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:247: error: LuceneQueryResult cannot be resolved
  187. lucene_query_result.setError(LuceneQueryResult.IO_ERROR);
  188. ^^^^^^^^^^^^^^^^^
  189. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:251: error: LuceneQueryResult cannot be resolved
  190. lucene_query_result.setError(LuceneQueryResult.OTHER_ERROR);
  191. ^^^^^^^^^^^^^^^^^
  192. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:260: warning: The static field QueryParser.AND_OPERATOR should be accessed in a static way
  193. query_parser.setDefaultOperator(query_parser.AND_OPERATOR);
  194. ^^^^^^^^^^^^
  195. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:261: warning: The static field QueryParser.AND_OPERATOR should be accessed in a static way
  196. query_parser_no_stop_words.setDefaultOperator(query_parser.AND_OPERATOR);
  197. ^^^^^^^^^^^^
  198. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:263: warning: The static field QueryParser.OR_OPERATOR should be accessed in a static way
  199. query_parser.setDefaultOperator(query_parser.OR_OPERATOR);
  200. ^^^^^^^^^^^
  201. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:264: warning: The static field QueryParser.OR_OPERATOR should be accessed in a static way
  202. query_parser_no_stop_words.setDefaultOperator(query_parser.OR_OPERATOR);
  203. ^^^^^^^^^^^
  204. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:614: error: LuceneQueryResult cannot be resolved
  205. query_results_xml.append("<QueryString>" + LuceneQueryResult.xmlSafe(query_string) + "</QueryString>\n");
  206. ^^^^^^^^^^^^^^^^^
  207. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:620: error: LuceneQueryResult cannot be resolved to a type
  208. LuceneQueryResult query_result = queryer.runQuery(query_string);
  209. ^^^^^^^^^^^^^^^^^
  210. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:620: error: The method runQuery(String) from the type GS2LuceneQuery refers to the missing type LuceneQueryResult
  211. LuceneQueryResult query_result = queryer.runQuery(query_string);
  212. ^^^^^^^^
  213. src/org/greenstone/LuceneWrapper/GS2LuceneQuery.java:626: error: LuceneQueryResult cannot be resolved
  214. if (query_result.getError() != LuceneQueryResult.NO_ERROR) {
  215. ^^^^^^^^^^^^^^^^^
  216. 25 problems (11 errors, 14 warnings)
  217. make[3]: *** [classes/org/greenstone/LuceneWrapper/GS2LuceneQuery.class] Error 1
  218. make[3]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers/lucene-gs'
  219. make[2]: *** [without-jni] Error 1
  220. make[2]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src/indexers'
  221. make[1]: *** [without-jni] Error 1
  222. make[1]: Leaving directory `/root/greenstone/Greenstone-2.85-source-distribution/common-src'
  223. make: *** [without-jni] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement