[sword-devel] Can't compile Sword from SVN on Fedora Core 3
Steven P. Ulrick
lists-sword at afolkey2.net
Tue Dec 27 05:20:59 MST 2005
Hello, Everyone
I am attempting to compile a fresh download of Sword from SVN, and
"make" bails with the following error:
g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DUSE_AUTOTOOLS -DUNIX -Dunix -D__unix__ -DSWICU_DATA=\"/usr/lib/sword/1.5.8_icu_3.4\" -D_FTPLIB_NO_COMPAT -D_ICU_ -DUSBINARY -O3 -DCURLAVAILABLE -DUSELUCENE -g -O2 -MT swmodule.lo -MD -MP -MF .deps/swmodule.Tpo -c ../src/modules/swmodule.cpp -o swmodule.o
../src/modules/swmodule.cpp: In member function `virtual sword::ListKey& sword::SWModule::search(const char*, int, int, sword::SWKey*, bool*, void (*)(char, void*), void*)':
../src/modules/swmodule.cpp:404: error: `IndexReader' has not been declared
../src/modules/swmodule.cpp:404: error: `indexExists' undeclared (first use this function)
../src/modules/swmodule.cpp:404: error: (Each undeclared identifier is reported only once for each function it appears in.)
../src/modules/swmodule.cpp:485: error: `IndexReader' has not been declared
/usr/include/fcntl.h:72: error: too few arguments to function `int open(const char*, int, ...)'
../src/modules/swmodule.cpp:485: error: at this point in file
../src/modules/swmodule.cpp:485: error: non-lvalue in unary `&'
../src/modules/swmodule.cpp:486: error: no matching function for call to `lucene::search::IndexSearcher::IndexSearcher(lucene::index::IndexReader&)'
/usr/include/CLucene/search/IndexSearcher.h:63: note: candidates are: lucene::search::IndexSearcher::IndexSearcher(const lucene::search::IndexSearcher&)
/usr/include/CLucene/search/IndexSearcher.h:75: note: lucene::search::IndexSearcher::IndexSearcher(lucene::index::IndexReader*)
/usr/include/CLucene/search/IndexSearcher.h:72: note: lucene::search::IndexSearcher::IndexSearcher(lucene::store::Directory*)
/usr/include/CLucene/search/IndexSearcher.h:69: note: lucene::search::IndexSearcher::IndexSearcher(const char*)
../src/modules/swmodule.cpp:489: error: `standard' has not been declared
../src/modules/swmodule.cpp:489: error: `StandardAnalyzer' undeclared (first use this function)
../src/modules/swmodule.cpp:489: error: expected `;' before "analyzer"
../src/modules/swmodule.cpp:490: error: `Parse' is not a member of `lucene::queryParser::QueryParser'
../src/modules/swmodule.cpp:490: error: `analyzer' undeclared (first use this function)
../src/modules/swmodule.cpp:492: error: no matching function for call to `lucene::search::IndexSearcher::search(lucene::search::Query&)'
/usr/include/CLucene/search/SearchHeader.h:309: note: candidates are: lucene::search::Hits* lucene::search::Searcher::search(lucene::search::Query*)
/usr/include/CLucene/search/SearchHeader.h:315: note: lucene::search::Hits* lucene::search::Searcher::search(lucene::search::Query*, lucene::search::Filter*)
/usr/include/CLucene/search/SearchHeader.h:322: note: lucene::search::Hits* lucene::search::Searcher::search(lucene::search::Query*, const lucene::search::Sort*)
/usr/include/CLucene/search/SearchHeader.h:329: note: lucene::search::Hits* lucene::search::Searcher::search(lucene::search::Query*, lucene::search::Filter*, const lucene::search::Sort*)
../src/modules/swmodule.cpp:497: error: 'class lucene::search::Hits' has no member named 'Length'
../src/modules/swmodule.cpp:498: error: `Document' undeclared (first use this function)
../src/modules/swmodule.cpp:498: error: `doc' undeclared (first use this function)
../src/modules/swmodule.cpp: In member function `virtual signed char sword::SWModule::createSearchFramework(void (*)(char, void*), void*)':
../src/modules/swmodule.cpp:919: error: `IndexWriter' undeclared (first use this function)
../src/modules/swmodule.cpp:919: error: `writer' undeclared (first use this function)
../src/modules/swmodule.cpp:920: error: `Directory' undeclared (first use this function)
../src/modules/swmodule.cpp:920: error: `d' undeclared (first use this function)
../src/modules/swmodule.cpp:922: error: `standard' has not been declared
../src/modules/swmodule.cpp:922: error: `StandardAnalyzer' undeclared (first use this function)
../src/modules/swmodule.cpp:922: error: `an' undeclared (first use this function)
../src/modules/swmodule.cpp:922: error: `standard' has not been declared
../src/modules/swmodule.cpp:922: error: `StandardAnalyzer' has not been declared
../src/modules/swmodule.cpp:930: error: `IndexReader' has not been declared
../src/modules/swmodule.cpp:930: error: `indexExists' undeclared (first use this function)
../src/modules/swmodule.cpp:931: error: `FSDirectory' has not been declared
../src/modules/swmodule.cpp:931: error: `getDirectory' undeclared (first use this function)
../src/modules/swmodule.cpp:932: error: `IndexReader' has not been declared
../src/modules/swmodule.cpp:932: error: `isLocked' undeclared (first use this function)
../src/modules/swmodule.cpp:933: error: `IndexReader' has not been declared
../src/modules/swmodule.cpp:933: error: `unlock' undeclared (first use this function)
../src/modules/swmodule.cpp:936: error: `IndexWriter' has not been declared
../src/modules/swmodule.cpp:938: error: `FSDirectory' has not been declared
../src/modules/swmodule.cpp:939: error: `IndexWriter' has not been declared
../src/modules/swmodule.cpp:995: error: `Document' undeclared (first use this function)
../src/modules/swmodule.cpp:995: error: `doc' undeclared (first use this function)
../src/modules/swmodule.cpp:995: error: `Document' has not been declared
../src/modules/swmodule.cpp:1020: error: `Field' has not been declared
../src/modules/swmodule.cpp:1020: error: `UnIndexed' undeclared (first use this function)
../src/modules/swmodule.cpp:1021: error: `Field' has not been declared
../src/modules/swmodule.cpp:1021: error: `UnStored' undeclared (first use this function)
../src/modules/swmodule.cpp:1023: error: `Field' has not been declared
../src/modules/swmodule.cpp:1127: error: `Field' has not been declared
../src/modules/swmodule.cpp:1131: error: `Field' has not been declared
make[1]: *** [swmodule.lo] Error 1
make[1]: Leaving directory `/home/steve/CVS/Assorted-CVS-Modules/sword/lib'
make: *** [all-recursive] Error 1
I have successfully installed clucene-0.9.10, and it is correctly
detected when I compile Bibletime (Bibletime is bailing during a
different error, though)
I have successfully compiled Sword and Bibletime from SVN and CVS on
many occasions. I am trying all of this on Fedora Core 3.
If you need any more information, feel free to let me know.
Steven P. Ulrick
More information about the sword-devel
mailing list