On Wed, Dec 15, 2010 at 03:11:26PM -0300, M. Rodrigo Monteiro wrote:
> The make command:
>
> make -f Makefile.init makefiles \
> 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -I/usr/include
No need for -I/usr/include, this is always included.
> -DHAS_DB -I/usr/include/db4 -DUSE_TLS -I/usr/include/openssl
The "HAS_DB" is determined automatically on Linux systems, do not use
custom -I/usr/include/db4, the default system Berkeley DB libraries and
headers must be used.
No need for -I/usr/include/openssl, the include files are
<openssl/mumble.h>
and are found via /usr/include.
> -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"
> -I/usr/local/dovecot/include/dovecot' \
There are no dovecot include files, no need for this -I argument is
mentioned in SASL_README...
> 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lpcre
No need for -L/usr/lib, this is "free".
> -L/usr/lib -ldb -L/usr/lib -lssl -lcrypto
> -l/usr/local/dovecot/lib/dovecot'
The lower-case "-l/usr/local/dovecot/lib/dovecot" looks wrong. In any
case Postfix does not link with any dovecot libraries.
> This is the error:
>
> /usr/local/dovecot/include/dovecot/dict.h:43: error: expected
DO NOT add this directory to the include file search path.
--
Viktor.