Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#114 strigi doesn't build when using latest clucene 2.3.3.4

open-invalid
nobody
5
2011-10-01
2011-05-07
Elias Probst
No

When using the latest clucene 2.3.3.4, strigi doesn't build anymore (full log provided in attachment):

Scanning dependencies of target cluceneng
[ 65%] Building CXX object libstreamanalyzer/plugins/indexers/clucenengindexer/CMakeFiles/cluceneng.dir/cluceneindexmanager.cpp.o
[ 65%] Building CXX object libstreamanalyzer/plugins/indexers/clucenengindexer/CMakeFiles/cluceneng.dir/cluceneindexreader.cpp.o
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:59: error: 'boost' has not been declared
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:59: error: expected initializer before '<' token
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:104: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:105: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:106: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:190: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:195: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:213: error: 'LuceneTerm' does not name a type
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp: In static member function 'static lucene::search::Query* CLuceneIndexReader::Private::createSingleFieldQuery(const std::string&, const Strigi::Query&)':
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:252: error: 'LuceneTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:252: error: expected ';' before 't'
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:253: error: expected ';' before 'nullTerm'
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:257: error: 't' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:257: error: 'createTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:258: error: 'nullTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:273: error: 'createKeywordTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:278: error: 'createWildCardTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp: In member function 'int64_t CLuceneIndexReader::documentId(const std::string&)':
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:587: error: 'LuceneTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:587: error: expected ';' before 'term'
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:588: error: 'term' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp: In member function 'virtual std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > CLuceneIndexReader::keywords(const std::string&, const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, uint32_t, uint32_t)':
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:773: error: 'LuceneTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:773: error: expected ';' before 'lastTerm'
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:776: error: expected ';' before 'term'
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:777: error: 'term' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:779: error: 'lastTerm' was not declared in this scope
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp: In member function 'virtual void CLuceneIndexReader::getChildren(const std::string&, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long int, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long int> > >&)':
/var/tmp/portage/app-misc/strigi-9999/work/strigi-9999/libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp:810: error: 'createKeywordTerm' is not a member of 'CLuceneIndexReader::Private'
make[2]: *** [libstreamanalyzer/plugins/indexers/clucenengindexer/CMakeFiles/cluceneng.dir/cluceneindexreader.cpp.o] Error 1
make[1]: *** [libstreamanalyzer/plugins/indexers/clucenengindexer/CMakeFiles/cluceneng.dir/all] Error 2
make: *** [all] Error 2

Discussion

  • Elias Probst
    Elias Probst
    2011-05-07

    The build.log of strigi-9999 (strigi from SCM) on Gentoo

     
    Attachments
  • Dennis
    Dennis
    2011-06-09

    I have the same error with clucene 2.3.3.4 installed. This line has my eye;

    cluceneindexreader.cpp:59: error: 'boost' has not been declared

    Using boost-1.46.1 here.

     
  • this patch just adds boost include directory to the search path but it seems not to be included in libstreamanalyzer/plugins/indexers/clucenengindexer/cluceneindexreader.cpp anyway..

    adding #include <boost/shared_ptr.hpp> as a quickfix removes those errors but does not compile because it now complains about missing prototypes of functions using the LuceneTerm typedef..

    apparently it seems to be more work to do to fix compiling against clucene 2.3.3.4 then just adding includedir searchpath and missing includes 8(

    unfortunately i don't know anything about strigi/clucene/boost.. 8)

     
  • Jos
    Jos
    2011-10-01

    • status: open --> open-invalid
     
  • Jos
    Jos
    2011-10-01

    That CLucene version is not supported. We only support the stable CLucene version.
    The upcoming version is very different and needs quite some rewriting.

     
  • I have no issues with clucene 2.3.3.4 at compilation time. I do get linker issues, though:

    [ 98%] Built target lucene2indexer
    Linking CXX executable index2dump
    /usr/bin/ld: CMakeFiles/index2dump.dir/indexdump.cpp.o: undefined reference to symbol '_ZN6lucene4util14atomic_threads16atomic_decrementEPj'
    /usr/bin/ld: note: '_ZN6lucene4util14atomic_threads16atomic_decrementEPj' is defined in DSO /usr/lib/libclucene-shared.so.1 so try adding it to the linker command line
    /usr/lib/libclucene-shared.so.1: could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make[2]: *** [plugins/indexers/clucenengindexer/indexdump/index2dump] Erro 1
    make[1]: *** [plugins/indexers/clucenengindexer/indexdump/CMakeFiles/index2dump.dir/all] Erro 2
    make: *** [all] Erro 2