Hello.
I cant build 2.2.2, but I can build fine version 2.1.16 with same options:
RedHat based customized distro, 2.6.28.10 kernel
Build options:
export CPPFLAGS export LDFLAGS
CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib
./configure
--prefix=/usr
--with-ssl=openssl
--with-ssldir=/etc/ssl
--sysconfdir=/etc
--without-vpopmail
--with-pam
--without-bsdauth
--without-sql
--without-nss
--without-ldap
--without-pgsql
--without-mysql
--without-sqlite
--with-rundir=/var/run/dovecot
--without-deliver
--without-gssapi
Build error:
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I../../.. -I../../../src/lib -I../../../src/lib-test
-I../../../src/lib-dict -I../../../src/lib-fs -I../../../src/lib-mail
-I../../../src/lib-imap -I../../../src/lib-index
-I../../../src/lib-storage -I/usr/local/ssl/include -std=gnu99 -g -O2
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime
-MT index-search.lo -MD -MP -MF .deps/index-search.Tpo -c -o
index-search.lo index-search.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../src/lib
-I../../../src/lib-test -I../../../src/lib-dict -I../../../src/lib-fs
-I../../../src/lib-mail -I../../../src/lib-imap -I../../../src/lib-index
-I../../../src/lib-storage -I/usr/local/ssl/include -std=gnu99 -g -O2
-Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime
-MT index-search.lo -MD -MP -MF .deps/index-search.Tpo -c index-search.c
-fPIC -DPIC -o .libs/index-search.o
index-search.c: In function search_arg_match_text': index-search.c:715: error: size of array
type name' is negative
make[5]: *** [index-search.lo] Error 1
make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-2.2.2/src/lib-storage/index' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-2.2.2/src/lib-storage/index'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-2.2.2/src/lib-storage' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-2.2.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dovecot-2.2.2'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.57532 (%build)
Please advise?
-- Mart