Repository 32bit  Forum
Repository 64bit  Wiki

Compilazione di Flock, si lamenta di CLucene

Se avete problemi con l'installazione e la configurazione di Slackware64 postate qui. Non usate questo forum per argomenti che trattano la Slackware32 o generali... per quelli usate rispettivamente il forum Slackware e Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware64 usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware64, se l'argomento è Slackware32 o generale usate rispettivamente il forum Slackware o Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.

Compilazione di Flock, si lamenta di CLucene

Messaggioda Vic Steele » gio ott 01, 2009 10:52

Ciao a tutti. Sto provando a compilare Flock 2.5 (sorgenti presi da qui) a 64 bit, ma ho dei problemi, presumibilmente con CLucene (dal pacchetto originale 0.9.21b) che sembra gli sia indigesto.
Passando al configure questi parametri:

Codice: Seleziona tutto
./configure --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-official-branding \
--enable-application=browser \
--enable-install-strip \
--enable-strip \
--enable-system-cairo \
--enable-optimize


durante la compilazione si ferma così:

Codice: Seleziona tutto
gmake[6]: Entering directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene'
gmake[7]: Entering directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/public'
flockILucene.idl
../../../../dist/bin/xpidl -m typelib -w -I. -I../../../../dist/idl -e _xpidlgen/flockILucene.xpt -d .deps/flockILucene.pp flockILucene.idl
../../../../dist/bin/xpt_link _xpidlgen/xpcomclucene.xpt _xpidlgen/flockILucene.xpt
/tmp/txz/flock/source/source-svn-export-2.5/mozilla/config/nsinstall -R -m 644 _xpidlgen/xpcomclucene.xpt ../../../../dist/bin/components
gmake[7]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/public'
gmake[7]: Entering directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/src'
flockLucene.cpp
c++ -o flockLucene.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.30\" -DOSARCH=Linux  -I. -I. -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include/uconv -I../../../../dist/include   -I../../../../dist/include/xpcomclucene -I../../../../dist/include/nspr     -I../../../../dist/sdk/include -I../../../../../../../local/include -I../../../../../../../local/lib    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/flockLucene.pp flockLucene.cpp
In file included from /usr/include/CLucene/config/compiler.h:40,
                 from /usr/include/CLucene/StdHeader.h:17,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/config/CompilerGcc.h:12:68: error: CLucene/clucene-config.h: No such file or directory
In file included from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/StdHeader.h:62:3: error: #error "Neither unistd.h or (io.h & direct.h) were available"
/usr/include/CLucene/StdHeader.h:69:4: error: #error "CLucene can't compile with exception handling on because <stdexcept> header is not available"
/usr/include/CLucene/StdHeader.h:78:3: error: #error "Haven't implemented platforms with no sys/stat.h"
/usr/include/CLucene/StdHeader.h:84:3: error: #error "CLucene can compile, but some extras may not work"
/usr/include/CLucene/StdHeader.h:90:3: error: #error "CLucene can't compile without <math.h>"
/usr/include/CLucene/StdHeader.h:96:3: error: #error "CLucene can't compile without the map header"
/usr/include/CLucene/StdHeader.h:102:3: error: #error "CLucene can't compile without the list header"
/usr/include/CLucene/StdHeader.h:108:3: error: #error "CLucene can't compile without the set header"
/usr/include/CLucene/StdHeader.h:114:3: error: #error "CLucene can't compile without the vector header"
/usr/include/CLucene/StdHeader.h:134:3: error: #error "Can't compile clucene without <algorithm>"
/usr/include/CLucene/StdHeader.h:140:3: error: #error "Can't compile clucene without <functional>"
/usr/include/CLucene/StdHeader.h:144:3: error: #error "CLucene can't compile without printf, replacements have not been implemented"
/usr/include/CLucene/StdHeader.h:148:3: error: #error "CLucene can't compile without snprintf, replacements have not been implemented"
/usr/include/CLucene/StdHeader.h:182:3: error: #error "Haven't implemented platforms with no errno.h"
/usr/include/CLucene/StdHeader.h:188:3: error: #error "Haven't implemented platforms with no fcntl.h"
In file included from /usr/include/CLucene/config/compiler.h:183,
                 from /usr/include/CLucene/StdHeader.h:201,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/config/CompilerGcc.h:100:5: error: #error I do not know what to use for a uint64_t.
/usr/include/CLucene/config/CompilerGcc.h:111:5: error: #error I do not know what to use for a uint32_t.
/usr/include/CLucene/config/CompilerGcc.h:118:5: error: #error I do not know what to use for a uint8_t.
In file included from /usr/include/CLucene/StdHeader.h:307,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/config/repl_wchar.h:14:3: error: #error wcscpy is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:19:3: error: #error wcsncpy is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:24:3: error: #error wcscat is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:29:3: error: #error wcschr is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:34:3: error: #error wcspy is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:39:3: error: #error wcslen is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:44:3: error: #error wcscmp is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:49:3: error: #error wcsncmp is not defined, and a licensed replacement has not been written yet
/usr/include/CLucene/config/repl_wchar.h:55:3: error: #error wcscspn is not defined, and a licensed replacement has not been written yet
In file included from /usr/include/CLucene/StdHeader.h:441,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/LuceneThreads.h:48:4: error: #error A valid thread library was not found
In file included from /usr/include/CLucene/StdHeader.h:441,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/LuceneThreads.h:56: error: expected ‘;’ before ‘*’ token
/usr/include/CLucene/LuceneThreads.h:59: error: expected `)' before ‘&’ token
In file included from /usr/include/CLucene/StdHeader.h:443,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/Misc.h:21: error: ‘uint64_t’ does not name a type
In file included from /usr/include/CLucene/StdHeader.h:444,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/Equators.h:22: error: expected template-name before ‘<’ token
/usr/include/CLucene/util/Equators.h:22: error: expected `{' before ‘<’ token
/usr/include/CLucene/util/Equators.h:22: error: expected unqualified-id before ‘<’ token
/usr/include/CLucene/util/Equators.h:28: error: expected template-name before ‘<’ token
/usr/include/CLucene/util/Equators.h:28: error: expected `{' before ‘<’ token
/usr/include/CLucene/util/Equators.h:28: error: expected unqualified-id before ‘<’ token
/usr/include/CLucene/util/Equators.h:34: error: expected template-name before ‘<’ token
/usr/include/CLucene/util/Equators.h:34: error: expected `{' before ‘<’ token
/usr/include/CLucene/util/Equators.h:34: error: expected unqualified-id before ‘<’ token
/usr/include/CLucene/util/Equators.h:39: error: invalid use of incomplete type ‘class Equals::WChar’
/usr/include/CLucene/util/Equators.h:34: error: forward declaration of ‘class Equals::WChar’
/usr/include/CLucene/util/Equators.h:48: error: expected template-name before ‘<’ token
/usr/include/CLucene/util/Equators.h:48: error: expected `{' before ‘<’ token
/usr/include/CLucene/util/Equators.h:48: error: expected unqualified-id before ‘<’ token
In file included from /usr/include/CLucene/StdHeader.h:445,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/VoidList.h:28: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/util/VoidList.h:116: error: ‘vector’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:116: error: ‘vector’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:116: error: wrong number of template arguments (2, should be 3)
/usr/include/CLucene/util/VoidList.h:23: error: provided for ‘template<class _kt, class _base, class _valueDeletor> class __CLList’
/usr/include/CLucene/util/VoidList.h:116: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidList.h:116: error: expected unqualified-id before ‘>’ token
/usr/include/CLucene/util/VoidList.h:154: error: ‘list’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:154: error: ‘list’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:154: error: wrong number of template arguments (2, should be 3)
/usr/include/CLucene/util/VoidList.h:23: error: provided for ‘template<class _kt, class _base, class _valueDeletor> class __CLList’
/usr/include/CLucene/util/VoidList.h:154: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidList.h:154: error: expected unqualified-id before ‘>’ token
/usr/include/CLucene/util/VoidList.h:165: error: ‘set’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:165: error: ‘set’ is not a member of ‘std’
/usr/include/CLucene/util/VoidList.h:165: error: template argument 2 is invalid
/usr/include/CLucene/util/VoidList.h:165: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidList.h:165: error: expected unqualified-id before ‘>’ token
In file included from /usr/include/CLucene/StdHeader.h:446,
                 from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/VoidMap.h:31: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/util/VoidMap.h:35: error: typedef name may not be a nested-name-specifier
/usr/include/CLucene/util/VoidMap.h:35: error: expected ‘;’ before ‘<’ token
/usr/include/CLucene/util/VoidMap.h:162: error: ‘map’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:162: error: ‘map’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:162: error: template argument 3 is invalid
/usr/include/CLucene/util/VoidMap.h:163: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidMap.h:163: error: expected unqualified-id before ‘>’ token
/usr/include/CLucene/util/VoidMap.h:226: error: ‘map’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:226: error: ‘map’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:226: error: template argument 3 is invalid
/usr/include/CLucene/util/VoidMap.h:227: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidMap.h:227: error: expected unqualified-id before ‘>’ token
/usr/include/CLucene/util/VoidMap.h:247: error: ‘multimap’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:247: error: ‘multimap’ is not a member of ‘std’
/usr/include/CLucene/util/VoidMap.h:247: error: template argument 3 is invalid
/usr/include/CLucene/util/VoidMap.h:248: error: expected `{' before ‘>’ token
/usr/include/CLucene/util/VoidMap.h:248: error: expected unqualified-id before ‘>’ token
In file included from ../../../../dist/include/system_wrappers/stdint.h:3,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.3/bits/postypes.h:50,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.3/bits/char_traits.h:47,
                 from /usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.3/string:47,
                 from ../../../../dist/include/system_wrappers/string:3,
                 from /usr/include/CLucene/util/streambase.h:29,
                 from /usr/include/CLucene/util/bufferedstream.h:29,
                 from /usr/include/CLucene/store/IndexInput.h:14,
                 from /usr/include/CLucene/store/Directory.h:18,
                 from /usr/include/CLucene/index/IndexReader.h:14,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/stdint.h:120: error: conflicting declaration ‘typedef long int intptr_t’
/usr/include/CLucene/config/compiler.h:221: error: ‘intptr_t’ has a previous declaration as ‘typedef int intptr_t’
In file included from /usr/include/CLucene/store/Directory.h:18,
                 from /usr/include/CLucene/index/IndexReader.h:14,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/store/IndexInput.h:34: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene/index/IndexReader.h:14,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/store/Directory.h:42: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/store/Directory.h:59: error: ‘vector’ has not been declared
/usr/include/CLucene/store/Directory.h:59: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/include/CLucene/store/Directory.h: In member function ‘char** Directory::list() const’:
/usr/include/CLucene/store/Directory.h:48: error: ‘vector’ was not declared in this scope
/usr/include/CLucene/store/Directory.h:48: error: expected primary-expression before ‘>’ token
/usr/include/CLucene/store/Directory.h:48: error: ‘names’ was not declared in this scope
In file included from /usr/include/CLucene/index/IndexReader.h:15,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/store/FSDirectory.h: At global scope:
/usr/include/CLucene/store/FSDirectory.h:89: error: expected ‘;’ before ‘*’ token
/usr/include/CLucene/store/FSDirectory.h:161: error: ‘vector’ has not been declared
/usr/include/CLucene/store/FSDirectory.h:161: error: expected ‘,’ or ‘...’ before ‘<’ token
In file included from /usr/include/CLucene/index/TermVector.h:14,
                 from /usr/include/CLucene/index/IndexReader.h:18,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/FieldInfos.h:78: error: field ‘byName’ has incomplete type
/usr/include/CLucene/index/FieldInfos.h:80: error: field ‘byNumber’ has incomplete type
In file included from /usr/include/CLucene/index/IndexReader.h:18,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/TermVector.h:146: error: field ‘fields’ has incomplete type
/usr/include/CLucene/index/TermVector.h:147: error: field ‘terms’ has incomplete type
/usr/include/CLucene/index/TermVector.h:284: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene/index/IndexReader.h:19,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/SegmentInfos.h:79: error: field ‘infos’ has incomplete type
In file included from /usr/include/CLucene/index/Term.h:15,
                 from /usr/include/CLucene/index/Terms.h:14,
                 from /usr/include/CLucene/index/IndexReader.h:20,
                 from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/StringIntern.h:28: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene.h:14,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/IndexReader.h:93: error: field ‘closeCallbacks’ has incomplete type
/usr/include/CLucene/index/IndexReader.h:142: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene/store/TransactionalRAMDirectory.h:10,
                 from /usr/include/CLucene/index/IndexWriter.h:18,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/store/RAMDirectory.h:23: error: field ‘buffers’ has incomplete type
/usr/include/CLucene/store/RAMDirectory.h:119: error: field ‘files’ has incomplete type
/usr/include/CLucene/store/RAMDirectory.h:122: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/store/RAMDirectory.h:126: error: ‘vector’ has not been declared
/usr/include/CLucene/store/RAMDirectory.h:126: error: expected ‘,’ or ‘...’ before ‘<’ token
In file included from /usr/include/CLucene/index/IndexWriter.h:18,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/store/TransactionalRAMDirectory.h:31: error: field ‘filesToRemoveOnAbort’ has incomplete type
/usr/include/CLucene/store/TransactionalRAMDirectory.h:34: error: field ‘filesToRestoreOnAbort’ has incomplete type
In file included from /usr/include/CLucene/index/TermInfosReader.h:17,
                 from /usr/include/CLucene/index/SegmentHeader.h:21,
                 from /usr/include/CLucene/index/IndexWriter.h:20,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/util/ThreadLocal.h:28: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/util/ThreadLocal.h:29: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:30: error: ‘::CLuceneThreadIdCompare’ has not been declared
/usr/include/CLucene/util/ThreadLocal.h:30: error: ‘::CLuceneThreadIdCompare’ has not been declared
/usr/include/CLucene/util/ThreadLocal.h:31: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:31: error: template argument 1 is invalid
/usr/include/CLucene/util/ThreadLocal.h:32: error: template argument 1 is invalid
/usr/include/CLucene/util/ThreadLocal.h:32: error: template argument 3 is invalid
/usr/include/CLucene/util/ThreadLocal.h:32: error: template argument 4 is invalid
/usr/include/CLucene/util/ThreadLocal.h:76: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:77: error: ‘::CLuceneThreadIdCompare’ has not been declared
/usr/include/CLucene/util/ThreadLocal.h:77: error: ‘::CLuceneThreadIdCompare’ has not been declared
/usr/include/CLucene/util/ThreadLocal.h:78: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:78: error: template argument 1 is invalid
/usr/include/CLucene/util/ThreadLocal.h:79: error: template argument 1 is invalid
/usr/include/CLucene/util/ThreadLocal.h:79: error: template argument 3 is invalid
/usr/include/CLucene/util/ThreadLocal.h:79: error: template argument 4 is invalid
/usr/include/CLucene/util/ThreadLocal.h:81: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/util/ThreadLocal.h: In constructor ‘ThreadLocal<T, _deletor>::ThreadLocal()’:
/usr/include/CLucene/util/ThreadLocal.h:96: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:96: error: expected `;' before ‘id’
/usr/include/CLucene/util/ThreadLocal.h:97: error: ‘ThreadLocalBase_THIS_LOCK’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:98: error: request for member ‘insert’ in ‘ThreadLocalBase::threadLocals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h:98: error: wrong number of template arguments (1, should be 2)
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h:72: error: provided for ‘template<class _T1, class _T2> struct std::pair’
/usr/include/CLucene/util/ThreadLocal.h:98: error: ‘id’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h: In destructor ‘ThreadLocal<T, _deletor>::~ThreadLocal()’:
/usr/include/CLucene/util/ThreadLocal.h:104: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:104: error: expected `;' before ‘id’
/usr/include/CLucene/util/ThreadLocal.h:105: error: ‘ThreadLocalBase_THIS_LOCK’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:108: error: request for member ‘clear’ in ‘((ThreadLocal<T, _deletor>*)this)->ThreadLocal<T, _deletor>::locals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h:111: error: expected initializer before ‘itr’
/usr/include/CLucene/util/ThreadLocal.h:112: error: expected initializer before ‘end’
/usr/include/CLucene/util/ThreadLocal.h:113: error: ‘itr’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:113: error: ‘end’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:115: error: request for member ‘erase’ in ‘ThreadLocalBase::threadLocals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h: In member function ‘T ThreadLocal<T, _deletor>::get()’:
/usr/include/CLucene/util/ThreadLocal.h:124: error: request for member ‘get’ in ‘((ThreadLocal<T, _deletor>*)this)->ThreadLocal<T, _deletor>::locals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h:124: error: ‘_LUCENE_CURRTHREADID’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h: In member function ‘void ThreadLocal<T, _deletor>::set(T)’:
/usr/include/CLucene/util/ThreadLocal.h:134: error: ‘_LUCENE_THREADID_TYPE’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:134: error: expected `;' before ‘id’
/usr/include/CLucene/util/ThreadLocal.h:135: error: request for member ‘remove’ in ‘((ThreadLocal<T, _deletor>*)this)->ThreadLocal<T, _deletor>::locals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h:135: error: ‘id’ was not declared in this scope
/usr/include/CLucene/util/ThreadLocal.h:137: error: request for member ‘insert’ in ‘((ThreadLocal<T, _deletor>*)this)->ThreadLocal<T, _deletor>::locals’, which is of non-class type ‘int’
/usr/include/CLucene/util/ThreadLocal.h:137: error: ‘_LUCENE_THREADID_TYPE’ cannot appear in a constant-expression
/usr/include/CLucene/util/ThreadLocal.h:137: error: template argument 1 is invalid
In file included from /usr/include/CLucene/index/SegmentHeader.h:21,
                 from /usr/include/CLucene/index/IndexWriter.h:20,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/TermInfosReader.h: At global scope:
/usr/include/CLucene/index/TermInfosReader.h:48: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene/index/SegmentHeader.h:22,
                 from /usr/include/CLucene/index/IndexWriter.h:20,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/CompoundFile.h:91: error: field ‘entries’ has incomplete type
/usr/include/CLucene/index/CompoundFile.h:106: error: ‘vector’ has not been declared
/usr/include/CLucene/index/CompoundFile.h:106: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/include/CLucene/index/CompoundFile.h:178: error: field ‘ids’ has incomplete type
/usr/include/CLucene/index/CompoundFile.h:180: error: field ‘entries’ has incomplete type
In file included from /usr/include/CLucene/index/IndexWriter.h:20,
                 from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/SegmentHeader.h:146: error: field ‘_norms’ has incomplete type
In file included from /usr/include/CLucene.h:15,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/IndexWriter.h:117: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene.h:16,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/index/MultiReader.h:126: error: field ‘normsCache’ has incomplete type
In file included from /usr/include/CLucene/search/SearchHeader.h:20,
                 from /usr/include/CLucene/search/IndexSearcher.h:14,
                 from /usr/include/CLucene.h:18,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/Explanation.h:21: error: field ‘details’ has incomplete type
In file included from /usr/include/CLucene/search/IndexSearcher.h:14,
                 from /usr/include/CLucene.h:18,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/SearchHeader.h:156: error: field ‘hitDocs’ has incomplete type
In file included from /usr/include/CLucene/search/FieldSortedHitQueue.h:16,
                 from /usr/include/CLucene/search/IndexSearcher.h:21,
                 from /usr/include/CLucene.h:18,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/FieldDocSortedHitQueue.h:64: error: ‘_LUCENE_THREADMUTEX’ does not name a type
In file included from /usr/include/CLucene/search/FieldSortedHitQueue.h:18,
                 from /usr/include/CLucene/search/IndexSearcher.h:21,
                 from /usr/include/CLucene.h:18,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/FieldCacheImpl.h:28: error: ‘_LUCENE_THREADMUTEX’ does not name a type
/usr/include/CLucene/search/FieldCacheImpl.h:84: error: invalid use of incomplete type ‘class CLHashMap<FieldCacheImpl::FileEntry*, FieldCacheAuto*, FieldCacheImpl::FileEntry::Compare, FieldCacheImpl::FileEntry::Equals, Deletor::Object<FieldCacheImpl::FileEntry>, Deletor::Object<FieldCacheAuto> >’
/usr/include/CLucene/util/VoidMap.h:161: error: declaration of ‘class CLHashMap<FieldCacheImpl::FileEntry*, FieldCacheAuto*, FieldCacheImpl::FileEntry::Compare, FieldCacheImpl::FileEntry::Equals, Deletor::Object<FieldCacheImpl::FileEntry>, Deletor::Object<FieldCacheAuto> >’
/usr/include/CLucene/search/FieldCacheImpl.h:100: error: field ‘cache’ has incomplete type
In file included from /usr/include/CLucene/search/IndexSearcher.h:21,
                 from /usr/include/CLucene.h:18,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/FieldSortedHitQueue.h:41: error: invalid use of incomplete type ‘class CLHashMap<FieldCacheImpl::FileEntry*, ScoreDocComparator*, FieldCacheImpl::FileEntry::Compare, FieldCacheImpl::FileEntry::Equals, Deletor::Object<FieldCacheImpl::FileEntry>, Deletor::Object<ScoreDocComparator> >’
/usr/include/CLucene/util/VoidMap.h:161: error: declaration of ‘class CLHashMap<FieldCacheImpl::FileEntry*, ScoreDocComparator*, FieldCacheImpl::FileEntry::Compare, FieldCacheImpl::FileEntry::Equals, Deletor::Object<FieldCacheImpl::FileEntry>, Deletor::Object<ScoreDocComparator> >’
/usr/include/CLucene/search/FieldSortedHitQueue.h: In constructor ‘FieldSortedHitQueue::hitqueueCacheReaderType::hitqueueCacheReaderType(bool)’:
/usr/include/CLucene/search/FieldSortedHitQueue.h:45: error: ‘setDeleteKey’ was not declared in this scope
/usr/include/CLucene/search/FieldSortedHitQueue.h:46: error: ‘setDeleteValue’ was not declared in this scope
/usr/include/CLucene/search/FieldSortedHitQueue.h: In destructor ‘FieldSortedHitQueue::hitqueueCacheReaderType::~hitqueueCacheReaderType()’:
/usr/include/CLucene/search/FieldSortedHitQueue.h:49: error: cannot call member function ‘void PriorityQueue<_type, _valueDeletor>::clear() [with _type = FieldDoc*, _valueDeletor = Deletor::Object<FieldDoc>]’ without object
In file included from /usr/include/CLucene/search/BooleanQuery.h:14,
                 from /usr/include/CLucene/search/MultiTermQuery.h:20,
                 from /usr/include/CLucene/search/WildcardQuery.h:15,
                 from /usr/include/CLucene.h:21,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/ConjunctionScorer.h: At global scope:
/usr/include/CLucene/search/ConjunctionScorer.h:21: error: field ‘scorers’ has incomplete type
In file included from /usr/include/CLucene/search/MultiTermQuery.h:20,
                 from /usr/include/CLucene/search/WildcardQuery.h:15,
                 from /usr/include/CLucene.h:21,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/BooleanQuery.h:31: error: field ‘clauses’ has incomplete type
/usr/include/CLucene/search/BooleanQuery.h:37: error: field ‘weights’ has incomplete type
/usr/include/CLucene/search/BooleanQuery.h: In member function ‘virtual Weight* BooleanQuery::_createWeight(Searcher*)’:
/usr/include/CLucene/search/BooleanQuery.h:55: error: ‘clauses’ was not declared in this scope
In file included from /usr/include/CLucene.h:23,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/search/PhraseQuery.h: At global scope:
/usr/include/CLucene/search/PhraseQuery.h:34: error: field ‘positions’ has incomplete type
/usr/include/CLucene/search/PhraseQuery.h:38: error: field ‘terms’ has incomplete type
In file included from /usr/include/CLucene/queryParser/QueryParserBase.h:16,
                 from /usr/include/CLucene/queryParser/QueryToken.h:14,
                 from /usr/include/CLucene/queryParser/TokenList.h:15,
                 from /usr/include/CLucene/queryParser/QueryParser.h:19,
                 from /usr/include/CLucene.h:32,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/analysis/Analyzers.h:175: error: field ‘stopTable’ has incomplete type
/usr/include/CLucene/analysis/Analyzers.h:218: error: field ‘analyzerMap’ has incomplete type
In file included from /usr/include/CLucene/queryParser/QueryToken.h:14,
                 from /usr/include/CLucene/queryParser/TokenList.h:15,
                 from /usr/include/CLucene/queryParser/QueryParser.h:19,
                 from /usr/include/CLucene.h:32,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/queryParser/QueryParserBase.h:103: error: ‘std::vector’ has not been declared
/usr/include/CLucene/queryParser/QueryParserBase.h:103: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/include/CLucene/queryParser/QueryParserBase.h:194: error: ‘GetBooleanQuery’ declared as a ‘virtual’ field
/usr/include/CLucene/queryParser/QueryParserBase.h:194: error: expected ‘;’ before ‘(’ token
In file included from /usr/include/CLucene/queryParser/QueryParser.h:19,
                 from /usr/include/CLucene.h:32,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/queryParser/TokenList.h:22: error: field ‘tokens’ has incomplete type
In file included from /usr/include/CLucene.h:33,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/analysis/standard/StandardAnalyzer.h:28: error: field ‘stopSet’ has incomplete type
In file included from flockLucene.cpp:20:
flockLuceneImpl.h:65: error: ‘lucene’ has not been declared
flockLuceneImpl.h:65: error: expected ‘,’ or ‘...’ before ‘*’ token
flockLuceneImpl.h:70: error: ‘lucene’ has not been declared
flockLuceneImpl.h:70: error: ISO C++ forbids declaration of ‘PerFieldAnalyzerWrapper’ with no type
flockLuceneImpl.h:70: error: expected ‘;’ before ‘*’ token
flockLuceneImpl.h:72: error: ‘lucene’ has not been declared
flockLuceneImpl.h:72: error: ISO C++ forbids declaration of ‘Directory’ with no type
flockLuceneImpl.h:72: error: expected ‘;’ before ‘*’ token
flockLuceneImpl.h:73: error: ‘lucene’ has not been declared
flockLuceneImpl.h:73: error: ISO C++ forbids declaration of ‘IndexReader’ with no type
flockLuceneImpl.h:73: error: expected ‘;’ before ‘*’ token
In file included from ../../../../dist/include/xpcom/nsStringGlue.h:52,
                 from ../../../../dist/include/xpcom/nsThreadUtils.h:47,
                 from flockLucene.cpp:22:
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1271: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1309: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
gmake[7]: *** [flockLucene.o] Error 1
gmake[7]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/src'
gmake[6]: *** [libs] Error 2
gmake[6]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/browser'
gmake[2]: *** [libs_tier_app] Error 2
gmake[2]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla'
gmake[1]: *** [tier_app] Error 2
gmake[1]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla'
make: *** [default] Error 2


Ho compilato Firefox (più o meno la stessa cosa) proprio qualche giorno fa, e non ho avuto nessun tipo di problema. Anche lui fa uso di questa libreria.
Sorgenti bacati?


EDIT: Inizio a rispondermi da solo, è probabile che questi sorgenti (nello specifico il file flockLucene.cpp) cerchino una diversa impostazione della libreria CLucene, e che quindi serva una patch.
Il primo errore mi rimprovera per l'assenza di "clucene-config.h", che in /usr/include/CLucene/ effettivamente non è presente, ma mi insospettisce quel CLConfig.h che invece noi abbiamo.
Ho provato a fare una copia del file nominandola, appunto, clucene-config.h, e l'errore ora è questo:

Codice: Seleziona tutto
gmake[7]: Entering directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/src'
flockLucene.cpp
c++ -o flockLucene.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.30\" -DOSARCH=Linux  -I. -I. -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include/uconv -I../../../../dist/include   -I../../../../dist/include/xpcomclucene -I../../../../dist/include/nspr     -I../../../../dist/sdk/include -I../../../../../../../local/include -I../../../../../../../local/lib    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/flockLucene.pp flockLucene.cpp
In file included from /usr/include/CLucene.h:11,
                 from flockLuceneImpl.h:35,
                 from flockLucene.cpp:20:
/usr/include/CLucene/StdHeader.h:62:3: error: #error "Neither unistd.h or (io.h & direct.h) were available"
/usr/include/CLucene/StdHeader.h:69:4: error: #error "CLucene can't compile with exception handling on because <stdexcept> header is not available"
/usr/include/CLucene/StdHeader.h:78:3: error: #error "Haven't implemented platforms with no sys/stat.h"
/usr/include/CLucene/StdHeader.h:84:3: error: #error "CLucene can compile, but some extras may not work"
/usr/include/CLucene/StdHeader.h:90:3: error: #error "CLucene can't compile without <math.h>"
/usr/include/CLucene/StdHeader.h:96:3: error: #error "CLucene can't compile without the map header"
/usr/include/CLucene/StdHeader.h:102:3: error: #error "CLucene can't compile without the list header"
/usr/include/CLucene/StdHeader.h:108:3: error: #error "CLucene can't compile without the set header"
/usr/include/CLucene/StdHeader.h:114:3: error: #error "CLucene can't compile without the vector header"
/usr/include/CLucene/StdHeader.h:134:3: error: #error "Can't compile clucene without <algorithm>"
/usr/include/CLucene/StdHeader.h:140:3: error: #error "Can't compile clucene without <functional>"
/usr/include/CLucene/StdHeader.h:144:3: error: #error "CLucene can't compile without printf, replacements have not been implemented"
/usr/include/CLucene/StdHeader.h:148:3: error: #error "CLucene can't compile without snprintf, replacements have not been implemented"
/usr/include/CLucene/StdHeader.h:182:3: error: #error "Haven't implemented platforms with no errno.h"
/usr/include/CLucene/StdHeader.h:188:3: error: #error "Haven't implemented platforms with no fcntl.h"


Ma dubito anche che sia quello il file che cerca.
Non è che a qualcuno va di provare? Posso postarvi lo SlackBuild intero.


RI-EDIT: dopo un'ulteriore sporca mossa, ovvero copia di /usr/lib64/CLucene/clucene-config.h in /usr/include/CLucene/ prosegue per un altro paio di files:

Codice: Seleziona tutto
gmake[7]: Entering directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/src'
flockLucene.cpp
c++ -o flockLucene.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.30\" -DOSARCH=Linux  -I. -I. -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include/uconv -I../../../../dist/include   -I../../../../dist/include/xpcomclucene -I../../../../dist/include/nspr     -I../../../../dist/sdk/include -I/usr/lib64/CLucene/include -I/usr/lib64/CLucene/lib    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/flockLucene.pp flockLucene.cpp
In file included from ../../../../dist/include/xpcom/nsStringGlue.h:52,
                 from ../../../../dist/include/xpcom/nsThreadUtils.h:47,
                 from flockLucene.cpp:22:
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1271: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1309: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
flockLuceneImpl.cpp
c++ -o flockLuceneImpl.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.30\" -DOSARCH=Linux  -I. -I. -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include/uconv -I../../../../dist/include   -I../../../../dist/include/xpcomclucene -I../../../../dist/include/nspr     -I../../../../dist/sdk/include -I/usr/lib64/CLucene/include -I/usr/lib64/CLucene/lib    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/flockLuceneImpl.pp flockLuceneImpl.cpp
In file included from ../../../../dist/include/xpcom/nsStringGlue.h:52,
                 from ../../../../dist/include/xpcom/nsHashKeys.h:48,
                 from flockLuceneImpl.cpp:30:
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentSubstring_external Substring(const PRUnichar*, const PRUnichar*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1271: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
../../../../dist/include/xpcom/nsStringAPI.h: In function ‘const nsDependentCSubstring_external Substring(const char*, const char*)’:
../../../../dist/include/xpcom/nsStringAPI.h:1309: warning: conversion to ‘PRUint32’ from ‘long int’ may alter its value
flockLuceneImpl.cpp: In constructor ‘Flock_ConvertTCHARtoUTF16::Flock_ConvertTCHARtoUTF16(const wchar_t*, nsIUnicodeDecoder*)’:
flockLuceneImpl.cpp:223: warning: conversion to ‘PRInt32’ from ‘long unsigned int’ may alter its value
flockLuceneImpl.cpp: In constructor ‘Flock_ConvertTCHARtoASCII::Flock_ConvertTCHARtoASCII(const wchar_t*)’:
flockLuceneImpl.cpp:267: warning: conversion to ‘char’ from ‘unsigned int’ may alter its value
flockLuceneImpl.cpp: In member function ‘virtual nsresult flockLuceneImpl::AddDocument(const char*, const char*, const nsAString&, const nsAString&, const nsAString&, const nsAString&, const nsAString&, flockILuceneIndexListener*)’:
flockLuceneImpl.cpp:665: warning: conversion to ‘PRUint16’ from ‘int’ may alter its value
flockLuceneModule.cpp
c++ -o flockLuceneModule.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6.30\" -DOSARCH=Linux  -I. -I. -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include/uconv -I../../../../dist/include   -I../../../../dist/include/xpcomclucene -I../../../../dist/include/nspr     -I../../../../dist/sdk/include -I/usr/lib64/CLucene/include -I/usr/lib64/CLucene/lib    -fPIC   -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/flockLuceneModule.pp flockLuceneModule.cpp
rm -f libxpcomclucene.so
c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-long-long -pedantic -O2 -fPIC -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -fexceptions -Wno-unknown-pragmas -fPIC -shared -Wl,-z,defs -Wl,-h,libxpcomclucene.so -o libxpcomclucene.so  flockLucene.o flockLuceneImpl.o flockLuceneModule.o     -lpthread   -Wl,-rpath-link,../../../../dist/bin  ../../../../dist/lib/libxpcomglue_s.a -L../../../../dist/bin -lxpcom -L../../../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L/usr/lib64/CLucene/lib -lclucene -lsupc++ -Wl,--version-script -Wl,../../../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm   
flockLuceneImpl.o: In function `flockLuceneImpl::EnsureReader()':
flockLuceneImpl.cpp:(.text+0x184): undefined reference to `lucene::index::IndexReader::open(lucene::store::Directory*, bool)'
flockLuceneImpl.o: In function `flockLuceneImpl::ReturnResults(lucene::search::Hits*, int, unsigned int*, nsISimpleEnumerator**)':
flockLuceneImpl.cpp:(.text+0x8c8): undefined reference to `lucene::search::Hits::length() const'
flockLuceneImpl.cpp:(.text+0x92b): undefined reference to `lucene::search::Hits::doc(int)'
flockLuceneImpl.cpp:(.text+0x93b): undefined reference to `lucene::search::Hits::score(int)'
flockLuceneImpl.cpp:(.text+0x95e): undefined reference to `lucene::document::Document::get(wchar_t const*) const'
flockLuceneImpl.cpp:(.text+0x9cf): undefined reference to `lucene::document::Document::get(wchar_t const*) const'
flockLuceneImpl.cpp:(.text+0xa0b): undefined reference to `lucene::document::Document::get(wchar_t const*) const'
flockLuceneImpl.cpp:(.text+0xa3d): undefined reference to `lucene::document::Document::get(wchar_t const*) const'
flockLuceneImpl.o: In function `flockLuceneImpl::Search(nsAString const&, char const*, int, flockILuceneSearchCallback*)':
flockLuceneImpl.cpp:(.text+0xda4): undefined reference to `lucene::search::BooleanQuery::BooleanQuery()'
flockLuceneImpl.cpp:(.text+0xdf4): undefined reference to `lucene::index::Term::Term(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0xe23): undefined reference to `lucene::search::TermQuery::TermQuery(lucene::index::Term*)'
flockLuceneImpl.cpp:(.text+0xe45): undefined reference to `lucene::search::BooleanQuery::add(lucene::search::Query*, bool, bool, bool)'
flockLuceneImpl.cpp:(.text+0xe57): undefined reference to `lucene::search::IndexSearcher::IndexSearcher(lucene::index::IndexReader*)'
flockLuceneImpl.cpp:(.text+0xe7c): undefined reference to `lucene::search::Hits::length() const'
flockLuceneImpl.cpp:(.text+0xe90): undefined reference to `lucene::search::IndexSearcher::close()'
flockLuceneImpl.cpp:(.text+0xe9d): undefined reference to `lucene::search::IndexSearcher::~IndexSearcher()'
flockLuceneImpl.cpp:(.text+0xeaa): undefined reference to `lucene::search::BooleanQuery::~BooleanQuery()'
flockLuceneImpl.cpp:(.text+0xf62): undefined reference to `lucene::queryParser::MultiFieldQueryParser::parse(wchar_t const*, wchar_t const**, lucene::analysis::Analyzer*)'
flockLuceneImpl.cpp:(.text+0xf91): undefined reference to `lucene::search::BooleanQuery::add(lucene::search::Query*, bool, bool, bool)'
flockLuceneImpl.cpp:(.text+0x1094): undefined reference to `lucene::search::BooleanQuery::~BooleanQuery()'
flockLuceneImpl.cpp:(.text+0x10ee): undefined reference to `lucene::search::IndexSearcher::~IndexSearcher()'
flockLuceneImpl.o: In function `flockLuceneImpl::~flockLuceneImpl()':
flockLuceneImpl.cpp:(.text+0x124d): undefined reference to `lucene::index::IndexReader::close()'
flockLuceneImpl.o: In function `flockLuceneImpl::~flockLuceneImpl()':
flockLuceneImpl.cpp:(.text+0x1339): undefined reference to `lucene::index::IndexReader::close()'
flockLuceneImpl.o: In function `flockLuceneImpl::~flockLuceneImpl()':
flockLuceneImpl.cpp:(.text+0x141d): undefined reference to `lucene::index::IndexReader::close()'
flockLuceneImpl.o: In function `flockLuceneImpl::DeleteDocument(char const*, flockILuceneIndexListener*)':
flockLuceneImpl.cpp:(.text+0x1550): undefined reference to `lucene::index::Term::Term(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x156d): undefined reference to `lucene::search::TermQuery::TermQuery(lucene::index::Term*)'
flockLuceneImpl.cpp:(.text+0x157e): undefined reference to `lucene::search::IndexSearcher::IndexSearcher(lucene::index::IndexReader*)'
flockLuceneImpl.cpp:(.text+0x15a6): undefined reference to `lucene::search::Hits::length() const'
flockLuceneImpl.cpp:(.text+0x15b4): undefined reference to `lucene::search::Hits::id(int)'
flockLuceneImpl.cpp:(.text+0x15bf): undefined reference to `lucene::index::IndexReader::deleteDocument(int)'
flockLuceneImpl.cpp:(.text+0x15d0): undefined reference to `lucene::search::IndexSearcher::close()'
flockLuceneImpl.cpp:(.text+0x15d9): undefined reference to `lucene::index::IndexReader::close()'
flockLuceneImpl.cpp:(.text+0x160c): undefined reference to `lucene::search::IndexSearcher::~IndexSearcher()'
flockLuceneImpl.cpp:(.text+0x1619): undefined reference to `lucene::search::TermQuery::~TermQuery()'
flockLuceneImpl.cpp:(.text+0x1626): undefined reference to `lucene::index::Term::~Term()'
flockLuceneImpl.cpp:(.text+0x167d): undefined reference to `lucene::index::Term::~Term()'
flockLuceneImpl.cpp:(.text+0x168f): undefined reference to `lucene::search::TermQuery::~TermQuery()'
flockLuceneImpl.cpp:(.text+0x16af): undefined reference to `lucene::search::IndexSearcher::~IndexSearcher()'
flockLuceneImpl.o: In function `flockLuceneImpl::AddDocument(char const*, char const*, nsAString const&, nsAString const&, nsAString const&, nsAString const&, nsAString const&, flockILuceneIndexListener*)':
flockLuceneImpl.cpp:(.text+0x1754): undefined reference to `lucene::index::Term::Term(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x176d): undefined reference to `lucene::index::IndexReader::deleteDocuments(lucene::index::Term*)'
flockLuceneImpl.cpp:(.text+0x1776): undefined reference to `lucene::index::IndexReader::close()'
flockLuceneImpl.cpp:(.text+0x179a): undefined reference to `lucene::index::Term::~Term()'
flockLuceneImpl.cpp:(.text+0x17a7): undefined reference to `lucene::document::Document::Document()'
flockLuceneImpl.cpp:(.text+0x17c8): undefined reference to `lucene::document::Field::Keyword(wchar_t const*, wchar_t const*)'
flockLuceneImpl.cpp:(.text+0x17d8): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x1806): undefined reference to `lucene::document::Field::Keyword(wchar_t const*, wchar_t const*)'
flockLuceneImpl.cpp:(.text+0x1816): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x184a): undefined reference to `lucene::document::Field::Text(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x185a): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x1890): undefined reference to `lucene::document::Field::Text(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x18a0): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x18d5): undefined reference to `lucene::document::Field::UnStored(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x18e5): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x191e): undefined reference to `lucene::document::Field::UnStored(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x192e): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x1964): undefined reference to `lucene::document::Field::UnStored(wchar_t const*, wchar_t const*, bool)'
flockLuceneImpl.cpp:(.text+0x1974): undefined reference to `lucene::document::Document::add(lucene::document::Field&)'
flockLuceneImpl.cpp:(.text+0x1998): undefined reference to `lucene::index::IndexWriter::IndexWriter(lucene::store::Directory*, lucene::analysis::Analyzer*, bool, bool)'
flockLuceneImpl.cpp:(.text+0x19af): undefined reference to `lucene::index::IndexWriter::addDocument(lucene::document::Document*, lucene::analysis::Analyzer*)'
flockLuceneImpl.cpp:(.text+0x19c3): undefined reference to `lucene::index::IndexWriter::~IndexWriter()'
flockLuceneImpl.cpp:(.text+0x19d0): undefined reference to `lucene::document::Document::~Document()'
flockLuceneImpl.cpp:(.text+0x1a09): undefined reference to `lucene::index::IndexWriter::optimize()'
flockLuceneImpl.cpp:(.text+0x1a1b): undefined reference to `lucene::index::IndexWriter::~IndexWriter()'
flockLuceneImpl.cpp:(.text+0x1a28): undefined reference to `lucene::document::Document::~Document()'
flockLuceneImpl.cpp:(.text+0x1a61): undefined reference to `lucene::index::Term::~Term()'
flockLuceneImpl.o: In function `flockLuceneImpl::Init(nsIFile*)':
flockLuceneImpl.cpp:(.text+0x1c26): undefined reference to `lucene::analysis::PerFieldAnalyzerWrapper::PerFieldAnalyzerWrapper(lucene::analysis::Analyzer*)'
flockLuceneImpl.cpp:(.text+0x1c3f): undefined reference to `lucene::analysis::standard::StandardAnalyzer::StandardAnalyzer()'
flockLuceneImpl.cpp:(.text+0x1c4f): undefined reference to `lucene::analysis::PerFieldAnalyzerWrapper::addAnalyzer(wchar_t const*, lucene::analysis::Analyzer*)'
flockLuceneImpl.cpp:(.text+0x1c67): undefined reference to `lucene::index::IndexReader::indexExists(char const*)'
flockLuceneImpl.cpp:(.text+0x1c80): undefined reference to `lucene::store::FSDirectory::getDirectory(char const*, bool)'
flockLuceneImpl.cpp:(.text+0x1c9c): undefined reference to `lucene::index::IndexWriter::IndexWriter(lucene::store::Directory*, lucene::analysis::Analyzer*, bool, bool)'
flockLuceneImpl.cpp:(.text+0x1ca4): undefined reference to `lucene::index::IndexWriter::~IndexWriter()'
flockLuceneImpl.cpp:(.text+0x1cfb): undefined reference to `lucene::store::FSDirectory::getDirectory(char const*, bool)'
flockLuceneImpl.cpp:(.text+0x1d0f): undefined reference to `lucene::index::IndexReader::isLocked(char const*)'
flockLuceneImpl.cpp:(.text+0x1d22): undefined reference to `lucene::index::IndexReader::unlock(lucene::store::Directory*)'
flockLuceneImpl.o: In function `lucene::search::Searcher::search(lucene::search::Query*)':
flockLuceneImpl.cpp:(.text._ZN6lucene6search8Searcher6searchEPNS0_5QueryE[lucene::search::Searcher::search(lucene::search::Query*)]+0x26): undefined reference to `lucene::search::Hits::Hits(lucene::search::Searcher*, lucene::search::Query*, lucene::search::Filter*, lucene::search::Sort const*)'
flockLuceneImpl.o: In function `FlockAnalyzer::tokenStream(wchar_t const*, lucene::util::Reader*)':
flockLuceneImpl.cpp:(.text._ZN13FlockAnalyzer11tokenStreamEPKwPN6lucene4util6ReaderE[FlockAnalyzer::tokenStream(wchar_t const*, lucene::util::Reader*)]+0x21): undefined reference to `lucene::analysis::standard::StandardTokenizer::StandardTokenizer(lucene::util::Reader*)'
flockLuceneImpl.cpp:(.text._ZN13FlockAnalyzer11tokenStreamEPKwPN6lucene4util6ReaderE[FlockAnalyzer::tokenStream(wchar_t const*, lucene::util::Reader*)]+0x3e): undefined reference to `lucene::analysis::standard::StandardFilter::StandardFilter(lucene::analysis::TokenStream*, bool)'
flockLuceneImpl.cpp:(.text._ZN13FlockAnalyzer11tokenStreamEPKwPN6lucene4util6ReaderE[FlockAnalyzer::tokenStream(wchar_t const*, lucene::util::Reader*)]+0x5b): undefined reference to `lucene::analysis::TokenFilter::TokenFilter(lucene::analysis::TokenStream*, bool)'
flockLuceneImpl.cpp:(.text._ZN13FlockAnalyzer11tokenStreamEPKwPN6lucene4util6ReaderE[FlockAnalyzer::tokenStream(wchar_t const*, lucene::util::Reader*)]+0x62): undefined reference to `vtable for lucene::analysis::LowerCaseFilter'
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../x86_64-slackware-linux/bin/ld: flockLuceneImpl.o: relocation R_X86_64_PC32 against undefined hidden symbol `vtable for lucene::analysis::LowerCaseFilter' can not be used when making a shared object
/usr/lib64/gcc/x86_64-slackware-linux/4.3.3/../../../../x86_64-slackware-linux/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[7]: *** [libxpcomclucene.so] Error 1
gmake[7]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene/src'
gmake[6]: *** [libs] Error 2
gmake[6]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base/lucene'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock/base'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/flock'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla/browser'
gmake[2]: *** [libs_tier_app] Error 2
gmake[2]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla'
gmake[1]: *** [tier_app] Error 2
gmake[1]: Leaving directory `/tmp/txz/flock/source/source-svn-export-2.5/mozilla'
make: *** [default] Error 2


Mi sa proprio che è un bug. Magari è stato progettato in strutture totalmente diverse dalla nostra.
Ma mi piacerebbe sentire il parere dei più esperti.
Vic Steele
Linux 2.6
Linux 2.6
 
Messaggi: 534
Iscritto il: dom apr 27, 2008 12:46
Località: Potenza
Nome Cognome: Luigi Caiazza
Slackware: current x86_64
Kernel: 3.0.0
Desktop: Fluxbox / KDE 4.7.0
Distribuzione: Fedora 15

Torna a Slackware64

Chi c’è in linea

Visitano il forum: Nessuno e 2 ospiti

cron