[Dovecot] Failed build with lucene plugin
Hi,
I've tryed build dovecot with the lucene plugin but I have this is output:
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c -o lucene-wrapper.lo lucene-wrapper.cc libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c lucene-wrapper.cc -fPIC -DPIC -o .libs/lucene-wrapper.o Assembler messages: FATAL: can't create .libs/lucene-wrapper.o: Permission denied lucene-wrapper.cc:24:36: error: CLucene/util/CLStreams.h: No such file or directory lucene-wrapper.cc:25:45: error: CLucene/search/MultiPhraseQuery.h: No such file or directory In file included from lucene-wrapper.cc:26: SnowballAnalyzer.h:12: error: expected constructor, destructor, or type conversion before '(' token *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error
Veniamin Gvozdikov wrote:
Hi,
I've tryed build dovecot with the lucene plugin but I have this is output:
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c -o lucene-wrapper.lo lucene-wrapper.cc libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c lucene-wrapper.cc -fPIC -DPIC -o .libs/lucene-wrapper.o Assembler messages: FATAL: can't create .libs/lucene-wrapper.o: Permission denied lucene-wrapper.cc:24:36: error: CLucene/util/CLStreams.h: No such file or directory lucene-wrapper.cc:25:45: error: CLucene/search/MultiPhraseQuery.h: No such file or directory In file included from lucene-wrapper.cc:26: SnowballAnalyzer.h:12: error: expected constructor, destructor, or type conversion before '(' token *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error
Which platform/OS are you trying to compile on? Which version of CLucene? You need at version 2.3.3.4 (not 0.9) as stated on the Wiki (http://wiki2.dovecot.org/Plugins/FTS/Lucene)
N.
Thank you. I'm using the FreeBSD, and clucene is 0.9. Now I'm try compile 2.3.3.4 which's fails now, and then I'll try build the dovecot with lucene plugin.
2012/5/22 Nick Rosier nick+dovecot@bunbun.be:
Veniamin Gvozdikov wrote:
Hi,
I've tryed build dovecot with the lucene plugin but I have this is output:
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c -o lucene-wrapper.lo lucene-wrapper.cc libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c lucene-wrapper.cc -fPIC -DPIC -o .libs/lucene-wrapper.o Assembler messages: FATAL: can't create .libs/lucene-wrapper.o: Permission denied lucene-wrapper.cc:24:36: error: CLucene/util/CLStreams.h: No such file or directory lucene-wrapper.cc:25:45: error: CLucene/search/MultiPhraseQuery.h: No such file or directory In file included from lucene-wrapper.cc:26: SnowballAnalyzer.h:12: error: expected constructor, destructor, or type conversion before '(' token *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error
Which platform/OS are you trying to compile on? Which version of CLucene? You need at version 2.3.3.4 (not 0.9) as stated on the Wiki (http://wiki2.dovecot.org/Plugins/FTS/Lucene)
N.
-- Phone: +7 916 948 58 30 Site: http://zlonet.ru
Thank you. I'm using the FreeBSD, and clucene is 0.9. Now I'm try compile 2.3.3.4 which's fails now, and then I'll try build the dovecot with lucene plugin. You need to compile CLucene 2.3.3.4 with Clang. I've also tried with the FreeBSD included compiler but it fails. The recent addition of SOLR-support to the dovecot2 port was made by and at the request of me. I would like to add lucene 2.3.3.4 to ports as well but don't know the
Veniamin Gvozdikov wrote: proper procedure and I also hesitate because it only compiles with Clang. I've contacted the author of the original lucene port but haven't received a reply.
Rgds, N.
2012/5/22 Nick Rosiernick+dovecot@bunbun.be:
Veniamin Gvozdikov wrote:
Hi,
I've tryed build dovecot with the lucene plugin but I have this is output:
/bin/sh ../../../libtool --tag=CXX --mode=compile c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c -o lucene-wrapper.lo lucene-wrapper.cc libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib -I../../../src/lib-mail -I../../../src/lib-index -I../../../src/lib-storage -I../../../src/plugins/fts -I../../../src/doveadm -I/usr/local/include -I/usr/local/lib -O2 -pipe -fno-strict-aliasing -MT lucene-wrapper.lo -MD -MP -MF .deps/lucene-wrapper.Tpo -c lucene-wrapper.cc -fPIC -DPIC -o .libs/lucene-wrapper.o Assembler messages: FATAL: can't create .libs/lucene-wrapper.o: Permission denied lucene-wrapper.cc:24:36: error: CLucene/util/CLStreams.h: No such file or directory lucene-wrapper.cc:25:45: error: CLucene/search/MultiPhraseQuery.h: No such file or directory In file included from lucene-wrapper.cc:26: SnowballAnalyzer.h:12: error: expected constructor, destructor, or type conversion before '(' token *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error *** Error code 1 1 error Which platform/OS are you trying to compile on? Which version of CLucene? You need at version 2.3.3.4 (not 0.9) as stated on the Wiki (http://wiki2.dovecot.org/Plugins/FTS/Lucene)
N.
On 22.5.2012, at 13.47, Nick Rosier wrote:
You need to compile CLucene 2.3.3.4 with Clang. I've also tried with the FreeBSD included compiler but it fails. The recent addition of SOLR-support to the dovecot2 port was made by and at the request of me. I would like to add lucene 2.3.3.4 to ports as well but don't know the proper procedure and I also hesitate because it only compiles with Clang. I've contacted the author of the original lucene port but haven't received a reply.
It would also be interesting to try if Dovecot would work with Lucene++: https://github.com/luceneplusplus/LucenePlusPlus
CLucene people were planning on somehow merging the projects, but that doesn't seem to be happening very fast.
participants (3)
-
Nick Rosier
-
Timo Sirainen
-
Veniamin Gvozdikov