From: Newton V. <nw...@gm...> - 2009-02-23 23:05:17
|
Hi all, I'm trying to install Lucene-0.18 in Solaris 5.10. I have installed clucene-core-0.9.20 (the latest stable version according to installation recommendations at http://search.cpan.org/~tbusch/Lucene-0.18/lib/Lucene.pm<http://search.cpan.org/%7Etbusch/Lucene-0.18/lib/Lucene.pm> ). I had an error at line 34 of Makefile.PL running 'perl Makefile.PL'. I have changed line 11 of Makefile.PL: "linux" => ["/usr/include", "/usr/lib"], to: "solaris" => ["/usr/include", "/usr/lib"], and I had the following message: Using clucene config file /usr/lib/CLucene/clucene-config.h to build Makefile Building using clucene-core 0.9.20 Note (probably harmless): No library found for -lstdc++ Writing Makefile for Lucene But when I run 'make' I got the following: g++ -c -I/usr/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.18\" -DXS_VERSION=\"0.18\" -KPIC "-I/opt/coolstack/lib/perl5/5.8.8/i86pc-solaris/CORE" -DCLUCENE_0_9_20 Lucene.c g++: unrecognized option `-KPIC' xs/PerFieldAnalyzerWrapper.xs: In function `void XS_Lucene__Analysis__PerFieldAnalyzerWrapper_addAnalyzer(CV*)': xs/PerFieldAnalyzerWrapper.xs:18: error: no matching function for call to `lucene::analysis::PerFieldAnalyzerWrapper::addAnalyzer(const wchar_t*&, Analyzer*&)' /usr/include/CLucene/analysis/Analyzers.h:235: note: candidates are: void lucene::analysis::PerFieldAnalyzerWrapper::addAnalyzer(const char*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__Analysis__StopAnalyzer_new(CV*)': Lucene.c:574: error: `STRDUP_AtoW' undeclared (first use this function) Lucene.c:574: error: (Each undeclared identifier is reported only once for each function it appears in.) xs/StopAnalyzer.xs:13: error: no matching function for call to `lucene::analysis::StopAnalyzer::StopAnalyzer(const wchar_t**)' /usr/include/CLucene/analysis/Analyzers.h:174: note: candidates are: lucene::analysis::StopAnalyzer::StopAnalyzer(const lucene::analysis::StopAnalyzer&) /usr/include/CLucene/analysis/Analyzers.h:183: note: lucene::analysis::StopAnalyzer::StopAnalyzer(const char**) /usr/include/CLucene/analysis/Analyzers.h:179: note: lucene::analysis::StopAnalyzer::StopAnalyzer() Lucene.c: In function `void XS_Lucene__Analysis__Standard__StandardAnalyzer_new(CV*)': Lucene.c:772: error: `STRDUP_AtoW' undeclared (first use this function) xs/StandardAnalyzer.xs:13: error: no matching function for call to `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const wchar_t**)' /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:26: note: candidates are: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const lucene::analysis::standard::StandardAnalyzer&) /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:34: note: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer(const char**) /usr/include/CLucene/analysis/standard/StandardAnalyzer.h:31: note: lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer() xs/Document.xs: In function `void XS_Lucene__Document_get(CV*)': xs/Document.xs:21: error: no matching function for call to `lucene::document::Document::get(wchar_t*&)' /usr/include/CLucene/document/Document.h:85: note: candidates are: const char* lucene::document::Document::get(const char*) const xs/Document.xs: In function `void XS_Lucene__Document_removeField(CV*)': xs/Document.xs:30: error: no matching function for call to `lucene::document::Document::removeField(wchar_t*&)' /usr/include/CLucene/document/Document.h:128: note: candidates are: void lucene::document::Document::removeField(const char*) xs/Document.xs: In function `void XS_Lucene__Document_toString(CV*)': xs/Document.xs:36: error: cannot convert `char*' to `const wchar_t*' in assignment xs/Field.xs: In function `void XS_Lucene__Document__Field_Keyword(CV*)': xs/Field.xs:7: error: no matching function for call to `lucene::document::Field::Keyword(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:119: note: candidates are: static lucene::document::Field* lucene::document::Field::Keyword(const char*, const char*) xs/Field.xs: In function `void XS_Lucene__Document__Field_UnIndexed(CV*)': xs/Field.xs:17: error: no matching function for call to `lucene::document::Field::UnIndexed(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:125: note: candidates are: static lucene::document::Field* lucene::document::Field::UnIndexed(const char*, const char*) xs/Field.xs: In function `void XS_Lucene__Document__Field_Text(CV*)': xs/Field.xs:27: error: no matching function for call to `lucene::document::Field::Text(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:132: note: candidates are: static lucene::document::Field* lucene::document::Field::Text(const char*, const char*, bool) /usr/include/CLucene/document/Field.h:145: note: static lucene::document::Field* lucene::document::Field::Text(const char*, lucene::util::Reader*, bool) xs/Field.xs: In function `void XS_Lucene__Document__Field_UnStored(CV*)': xs/Field.xs:37: error: no matching function for call to `lucene::document::Field::UnStored(const wchar_t*&, const wchar_t*&)' /usr/include/CLucene/document/Field.h:138: note: candidates are: static lucene::document::Field* lucene::document::Field::UnStored(const char*, const char*, bool) xs/Term.xs: In function `void XS_Lucene__Index__Term_new(CV*)': xs/Term.xs:7: error: no matching function for call to `lucene::index::Term::Term(wchar_t*&, wchar_t*&)' /usr/include/CLucene/index/Term.h:39: note: candidates are: lucene::index::Term::Term(const lucene::index::Term&) /usr/include/CLucene/index/Term.h:68: note: lucene::index::Term::Term(const char*, const char*) /usr/include/CLucene/index/Term.h:62: note: lucene::index::Term::Term(const char*, const char*, bool) /usr/include/CLucene/index/Term.h:59: note: lucene::index::Term::Term() /usr/include/CLucene/index/Term.h:56: note: lucene::index::Term::Term(const lucene::index::Term*, const char*) xs/Explanation.xs: In function `void XS_Lucene__Search__Explanation_toString(CV*)': xs/Explanation.xs:5: error: cannot convert `char*' to `wchar_t*' in assignment xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_new(CV*)': xs/RangeFilter.xs:10: error: no matching function for call to `lucene::search::RangeFilter::RangeFilter(wchar_t*&, wchar_t*&, wchar_t*&, bool&, bool&)' /usr/include/CLucene/search/RangeFilter.h:33: note: candidates are: lucene::search::RangeFilter::RangeFilter(const char*, const char*, const char*, bool, bool) /usr/include/CLucene/search/RangeFilter.h:30: note: lucene::search::RangeFilter::RangeFilter(const lucene::search::RangeFilter&) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_Less(CV*)': xs/RangeFilter.xs:21: error: no matching function for call to `lucene::search::RangeFilter::Less(wchar_t*&, wchar_t*&)' /usr/include/CLucene/search/RangeFilter.h:35: note: candidates are: static lucene::search::RangeFilter* lucene::search::RangeFilter::Less(char*, char*) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_More(CV*)': xs/RangeFilter.xs:32: error: no matching function for call to `lucene::search::RangeFilter::More(wchar_t*&, wchar_t*&)' /usr/include/CLucene/search/RangeFilter.h:37: note: candidates are: static lucene::search::RangeFilter* lucene::search::RangeFilter::More(char*, char*) xs/RangeFilter.xs: In function `void XS_Lucene__Search__RangeFilter_toString(CV*)': xs/RangeFilter.xs:40: error: cannot convert `char*' to `wchar_t*' in assignment xs/SortField.xs: In function `void XS_Lucene__Search__SortField_new(CV*)': xs/SortField.xs:7: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/SortField.xs:15: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&, lucene::search::SortField::<anonymous enum>, int&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/SortField.xs:24: error: no matching function for call to `lucene::search::SortField::SortField(wchar_t*&, int&, int&)' /usr/include/CLucene/search/Sort.h:226: note: candidates are: lucene::search::SortField::SortField(const char*, lucene::search::SortComparatorSource*, bool) /usr/include/CLucene/search/Sort.h:215: note: lucene::search::SortField::SortField(const char*, int32_t, bool) /usr/include/CLucene/search/Sort.h:203: note: lucene::search::SortField::SortField(const char*) /usr/include/CLucene/search/Sort.h:152: note: lucene::search::SortField::SortField(const lucene::search::SortField&) xs/Query.xs: In function `void XS_Lucene__Search__Query_toString(CV*)': xs/Query.xs:5: error: cannot convert `char*' to `wchar_t*' in assignment xs/QueryParser.xs: In function `void XS_Lucene__QueryParser_new(CV*)': xs/QueryParser.xs:7: error: no matching function for call to `lucene::queryParser::QueryParser::QueryParser(wchar_t*&, Analyzer*&)' /usr/include/CLucene/queryParser/QueryParser.h:57: note: candidates are: lucene::queryParser::QueryParser::QueryParser(const lucene::queryParser::QueryParser&) /usr/include/CLucene/queryParser/QueryParser.h:66: note: lucene::queryParser::QueryParser::QueryParser(const char*, lucene::analysis::Analyzer*) xs/QueryParser.xs: In function `void XS_Lucene__QueryParser_parse(CV*)': xs/QueryParser.xs:24: error: no matching function for call to `lucene::queryParser::QueryParser::parse(wchar_t*&)' /usr/include/CLucene/queryParser/QueryParser.h:75: note: candidates are: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*) /usr/include/CLucene/queryParser/QueryParser.h:83: note: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(lucene::util::Reader*) /usr/include/CLucene/queryParser/QueryParser.h:89: note: static lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*, const char*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__MultiFieldQueryParser_new(CV*)': Lucene.c:3545: error: `STRDUP_AtoW' undeclared (first use this function) xs/MultiFieldQueryParser.xs:25: error: no matching function for call to `lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const wchar_t**, Analyzer*&, lucene::queryParser::BoostMap*&)' /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:34: note: candidates are: lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const lucene::queryParser::MultiFieldQueryParser&) /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:63: note: lucene::queryParser::MultiFieldQueryParser::MultiFieldQueryParser(const char**, lucene::analysis::Analyzer*, lucene::queryParser::BoostMap*) xs/MultiFieldQueryParser.xs: In function `void XS_Lucene__MultiFieldQueryParser_parse(CV*)': xs/MultiFieldQueryParser.xs:78: error: no matching function for call to `lucene::queryParser::QueryParser::parse(wchar_t*&)' /usr/include/CLucene/queryParser/QueryParser.h:75: note: candidates are: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*) /usr/include/CLucene/queryParser/QueryParser.h:83: note: virtual lucene::search::Query* lucene::queryParser::QueryParser::parse(lucene::util::Reader*) /usr/include/CLucene/queryParser/QueryParser.h:89: note: static lucene::search::Query* lucene::queryParser::QueryParser::parse(const char*, const char*, lucene::analysis::Analyzer*) Lucene.c:3714: error: `STRDUP_AtoW' undeclared (first use this function) xs/MultiFieldQueryParser.xs:94: error: no matching function for call to `lucene::queryParser::MultiFieldQueryParser::parse(wchar_t*&, const wchar_t**, Analyzer*&)' /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:83: note: candidates are: static lucene::search::Query* lucene::queryParser::MultiFieldQueryParser::parse(const char*, const char**, lucene::analysis::Analyzer*) /usr/include/CLucene/queryParser/MultiFieldQueryParser.h:115: note: static lucene::search::Query* lucene::queryParser::MultiFieldQueryParser::parse(const char*, const char**, const uint8_t*, lucene::analysis::Analyzer*) Lucene.c: In function `void XS_Lucene__Analysis__StopFilter_new(CV*)': Lucene.c:4073: error: `STRDUP_AtoW' undeclared (first use this function) xs/StopFilter.xs:8: error: no matching function for call to `lucene::analysis::StopFilter::StopFilter(TokenStream*&, bool, const wchar_t**)' /usr/include/CLucene/analysis/Analyzers.h:134: note: candidates are: lucene::analysis::StopFilter::StopFilter(const lucene::analysis::StopFilter&) /usr/include/CLucene/analysis/Analyzers.h:149: note: lucene::analysis::StopFilter::StopFilter(lucene::analysis::TokenStream*, bool, lucene::util::CLSetList<const char*, lucene::util::Compare::TChar, lucene::util::Deletor::Dummy>*) /usr/include/CLucene/analysis/Analyzers.h:142: note: lucene::analysis::StopFilter::StopFilter(lucene::analysis::TokenStream*, bool, const char**) xs/CharTokenizer.xs: In function `void XS_Lucene__Analysis__CharTokenizer_new(CV*)': xs/CharTokenizer.xs:6: error: cannot allocate an object of type `PerlCharTokenizer' xs/CharTokenizer.xs:6: error: because the following virtual functions are abstract: /usr/include/CLucene/analysis/Analyzers.h:32: error: virtual bool lucene::analysis::CharTokenizer::isTokenChar(char) const xs/Token.xs: In function `void XS_Lucene__Analysis__Token_new(CV*)': xs/Token.xs:10: error: no matching function for call to `lucene::analysis::Token::Token(wchar_t*&, int32_t&, int32_t&, wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:33: note: candidates are: lucene::analysis::Token::Token(const lucene::analysis::Token&) /usr/include/CLucene/analysis/AnalysisHeader.h:53: note: lucene::analysis::Token::Token(const char*, int32_t, int32_t, const char*) /usr/include/CLucene/analysis/AnalysisHeader.h:50: note: lucene::analysis::Token::Token() xs/Token.xs: In function `void XS_Lucene__Analysis__Token_set(CV*)': xs/Token.xs:28: error: no matching function for call to `lucene::analysis::Token::set(wchar_t*&, int32_t&, int32_t&, wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:54: note: candidates are: void lucene::analysis::Token::set(const char*, int32_t, int32_t, const char*) xs/Token.xs: In function `void XS_Lucene__Analysis__Token_termText(CV*)': xs/Token.xs:64: error: cannot convert `const char*' to `const wchar_t*' in assignment xs/Token.xs: In function `void XS_Lucene__Analysis__Token_setText(CV*)': xs/Token.xs:87: error: no matching function for call to `lucene::analysis::Token::setText(const wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:86: note: candidates are: void lucene::analysis::Token::setText(const char*) xs/Token.xs: In function `void XS_Lucene__Analysis__Token_type(CV*)': xs/Token.xs:123: error: cannot convert `const char*' to `const wchar_t*' in assignment xs/Token.xs: In function `void XS_Lucene__Analysis__Token_setType(CV*)': xs/Token.xs:132: error: no matching function for call to `lucene::analysis::Token::setType(const wchar_t*&)' /usr/include/CLucene/analysis/AnalysisHeader.h:108: note: candidates are: void lucene::analysis::Token::setType(const char*) xs/Reader.xs: In function `void XS_Lucene__Utils__Reader_read(CV*)': xs/Reader.xs:19: error: no matching function for call to `lucene::util::Reader::read(const wchar_t*&)' /usr/include/CLucene/util/Reader.h:38: note: candidates are: int lucene::util::Reader::read() /usr/include/CLucene/util/Reader.h:51: note: int32_t lucene::util::Reader::read(const char*&) /usr/include/CLucene/util/Reader.h:58: note: int32_t lucene::util::Reader::read(const char*&, int32_t) xs/Reader.xs:31: error: no matching function for call to `lucene::util::Reader::read(const wchar_t*&, int32_t&)' /usr/include/CLucene/util/Reader.h:38: note: candidates are: int lucene::util::Reader::read() /usr/include/CLucene/util/Reader.h:51: note: int32_t lucene::util::Reader::read(const char*&) /usr/include/CLucene/util/Reader.h:58: note: int32_t lucene::util::Reader::read(const char*&, int32_t) *** Error code 1 make: Fatal error: Command failed for target `Lucene.o' Some help would be very appreciated. Newton |