[Dovecot] squat not working in 2.1

Morten Stevens mstevens at imt-systems.com
Wed Feb 29 15:54:49 EET 2012


On 29.02.2012 14:29, Timo Sirainen wrote:
> On 29.2.2012, at 15.27, Ralf Hildebrandt wrote:
>
>> The plugin doesn't build:
>>
>> postamt:/usr/src/dovecot-2.1/dovecot-2.1/src/plugins/fts-lucene# 
>> make
> ..
>> ii  libclucene-dev                      0.9.21b-2+b1 library for 
>> full-featured text search engine (development)
>> ii  libclucene0ldbl                     0.9.21b-2+b1 library for 
>> full-featured text search engine (runtime)
>
> It requires CLucene 2.3.2.

Hi Timo,

I have the same problem.  It does not build with 2.3.3.

[mockbuild at x86-002 result]$ cat root.log | grep clucene
DEBUG util.py:257:   --> clucene-core-devel-2.3.3.4-3.fc16.x86_64
DEBUG util.py:257:   clucene-core-devel     x86_64 2.3.3.4-3.fc16       
     updates-released 258 k
DEBUG util.py:257:   clucene-core           x86_64 2.3.3.4-3.fc16       
     updates-released 507 k
DEBUG util.py:257:    clucene-core-devel.x86_64 0:2.3.3.4-3.fc16
DEBUG util.py:257:    clucene-core.x86_64 0:2.3.3.4-3.fc16

build.log:

Making all in fts-lucene
make[4]: Entering directory 
`/builddir/build/BUILD/dovecot-2.1.1/src/plugins/fts-lucene'
/bin/sh ../../../libtool --tag=CC   --mode=compile gcc -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   -std=gnu99 -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -m64 -mtune=generic -fno-strict-aliasing 
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2    -c -o doveadm-fts-lucene.lo doveadm-fts-lucene.c
/bin/sh ../../../libtool --tag=CC   --mode=compile gcc -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   -std=gnu99 -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -m64 -mtune=generic -fno-strict-aliasing 
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2    -c -o fts-lucene-plugin.lo fts-lucene-plugin.c
/bin/sh ../../../libtool --tag=CC   --mode=compile gcc -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   -std=gnu99 -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -m64 -mtune=generic -fno-strict-aliasing 
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2    -c -o fts-backend-lucene.lo fts-backend-lucene.c
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -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   -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -m64 -mtune=generic -c -o lucene-wrapper.lo 
lucene-wrapper.cc
libtool: compile:  gcc -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 -std=gnu99 -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -Wall 
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2 -c fts-backend-lucene.c  -fPIC -DPIC -o 
.libs/fts-backend-lucene.o
libtool: compile:  gcc -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 -std=gnu99 -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -Wall 
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2 -c doveadm-fts-lucene.c  -fPIC -DPIC -o 
.libs/doveadm-fts-lucene.o
libtool: compile:  gcc -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 -std=gnu99 -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -Wall 
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2 -c fts-lucene-plugin.c  -fPIC -DPIC -o 
.libs/fts-lucene-plugin.o
libtool: compile:  g++ -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 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 
-mtune=generic -c lucene-wrapper.cc  -fPIC -DPIC -o 
.libs/lucene-wrapper.o
In file included from /usr/include/CLucene/StdHeader.h:20:0,
                  from /usr/include/CLucene.h:11,
                  from lucene-wrapper.cc:23:
/usr/include/CLucene/SharedHeader.h:18:36: fatal error: 
CLucene/clucene-config.h: No such file or directory
compilation terminated.
/bin/sh ../../../libtool --tag=CC   --mode=link gcc  -std=gnu99 -O2 -g 
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4  -m64 -mtune=generic -fno-strict-aliasing 
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith 
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime 
-Wstrict-aliasing=2    -module -avoid-version  -Wl,-z,relro  -o 
lib20_doveadm_fts_lucene_plugin.la -rpath /usr/lib64/dovecot/doveadm 
doveadm-fts-lucene.lo  -lrt
make[4]: *** [lucene-wrapper.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: gcc -shared  -fPIC -DPIC  .libs/doveadm-fts-lucene.o   
-lrt  -O2 -m64 -mtune=generic -Wl,-z -Wl,relro   -Wl,-soname 
-Wl,lib20_doveadm_fts_lucene_plugin.so -o 
.libs/lib20_doveadm_fts_lucene_plugin.so
libtool: link: ( cd ".libs" && rm -f 
"lib20_doveadm_fts_lucene_plugin.la" && ln -s 
"../lib20_doveadm_fts_lucene_plugin.la" 
"lib20_doveadm_fts_lucene_plugin.la" )
make[4]: Leaving directory 
`/builddir/build/BUILD/dovecot-2.1.1/src/plugins/fts-lucene'
make[3]: Leaving directory 
`/builddir/build/BUILD/dovecot-2.1.1/src/plugins'
make[3]: *** [all-recursive] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/dovecot-2.1.1/src'
make[2]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/dovecot-2.1.1'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.0Z7jEb (%build)
     Bad exit status from /var/tmp/rpm-tmp.0Z7jEb (%build)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
  # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps 
builddir/build/SPECS/dovecot.spec']
Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", 
line 70, in trace
     result = func(*args, **kw)
   File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 352, 
in do
     raise mockbuild.exception.Error, ("Command failed. See logs for 
output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
  # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps 
builddir/build/SPECS/dovecot.spec']
LEAVE do --> EXCEPTION RAISED


Best regards,

Morten



More information about the dovecot mailing list