[Dovecot] Dovecot 2.2.2 compiling error
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
On 22.5.2013, at 20.31, Mart Pirita sysadmin@e-positive.ee wrote:
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
What gcc version?
Timo Sirainen kirjutas:
On 22.5.2013, at 20.31, Mart Pirita sysadmin@e-positive.ee wrote:
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 What gcc version?
gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.6/specs Configured with: ../configure --prefix=/usr --with-slibdir=/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --enable-threads=posix --enable-languages=c,c++,f77,java,objc --enable-__cxa_atexit --enable-c99 --enable-nls --enable-long-long --enable-multilib --with-gnu-as --with-gnu-ld --with-system-zlib --without-x i386-redhat-linux Thread model: posix gcc version 3.3.6
-- Mart
On 23.5.2013, at 9.05, Mart Pirita sysadmin@e-positive.ee wrote:
Timo Sirainen kirjutas:
On 22.5.2013, at 20.31, Mart Pirita sysadmin@e-positive.ee wrote:
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 What gcc version?
gcc -v gcc version 3.3.6
Hmh. Does the attached patch help?
participants (2)
-
Mart Pirita
-
Timo Sirainen