On Mon, Oct 06, 2014 at 11:30:29AM +0300, Alexandru GRIGORAS wrote:

> I am struggling with a postifx compilation on AIX 6.1 with cyrus-sasl for
> doing SMTP AUTH.
> 
> These are my flags:
> make makefiles CCARGS="-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DHAS_SSL
> -DHAS_DB -I/opt/pware64/include -I/opt/pware64/include/sasl
> -I/opt/pware64/include/openssl" AUXLIBS="-L/opt/pware64/lib
> -L/opt/pware64/lib/sasl2 -lsasl2 -ldb -lssl -lcrypto -lpthread"

Postfix does not have any documented -DHAS_SSL compile-time option.
The include path for OpenSSL compilation needs to *exclude* the "openssl"
path component that contains the openssl header files, they are used as

        #include <openssl/evp.h>
        #include <openssl/x509.h>
        ...

and so the "-I" option would typically be something like:

        -I/usr/local/include

NOT

        -I/usr/local/include/openssl

Also, you should generally not link with pthreads.  Everything in
Postfix is single threaded.

-- 
        Viktor.

Reply via email to