Hi!

I'm tryind to compile Postfix with Dovecot support.

CentOS 5.5
Kernel 2.6.18-194.26.1.el5
Dovecot 2.0.8
Postfix 2.7.2

The make command:

make -f Makefile.init makefiles \
    'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -I/usr/include
-DHAS_DB -I/usr/include/db4 -DUSE_TLS -I/usr/include/openssl
-DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"
-I/usr/local/dovecot/include/dovecot' \
    'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lpcre
-L/usr/lib -ldb -L/usr/lib -lssl -lcrypto
-l/usr/local/dovecot/lib/dovecot'


This is the error:

In file included from ctable.c:61:
./sys_defs.h:717:1: warning: "HAS_DB" redefined
<command line>:1:1: warning: this is the location of the previous definition
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql
-DHAS_PCRE -I/usr/include -DHAS_DB -I/usr/include/db4 -DUSE_TLS
-I/usr/include/openssl -DUSE_SASL_AUTH
-DDEF_SERVER_SASL_TYPE=\"dovecot\"
-I/usr/local/dovecot/include/dovecot -g -O -I. -DLINUX2 -c dict.c
In file included from dict.c:179:
sys_defs.h:717:1: warning: "HAS_DB" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from dict_ht.h:18,
                 from dict.c:199:
/usr/local/dovecot/include/dovecot/dict.h:43: error: expected
declaration specifiers or ‘...’ before ‘pool_t’
/usr/local/dovecot/include/dovecot/dict.h:44: error: conflicting types
for ‘dict_lookup’
dict.h:128: error: previous declaration of ‘dict_lookup’ was here
/usr/local/dovecot/include/dovecot/dict.h:54: error: expected ‘=’,
‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dict_iterate’
dict.c: In function ‘dict_eval_lookup’:
dict.c:432: warning: passing argument 1 of ‘dict_lookup’ from
incompatible pointer type
dict.c:432: error: too few arguments to function ‘dict_lookup’
make: *** [dict.o] Error 1
make: *** [update] Error 1



Regards,
Rodrigo.

Reply via email to