postfix-users May 2014 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Client side DANE - minimum openssl version

Re: Client side DANE - minimum openssl version

From: Larry Stone <lstone19_at_nospam>
Date: Mon May 12 2014 - 01:57:29 GMT
To: postfix-users@postfix.org

On May 11, 2014, at 6:34 PM, Viktor Dukhovni <postfix-users@dukhovni.org> wrote:

> On Sun, May 11, 2014 at 06:00:38PM -0500, Larry Stone wrote:
>
>> On the test system, trying to force the new version of OpenSSL (1.0.1g), I used:
>> make -f Makefile.init makefiles \
>> CCARGS='-DUSE_TLS /usr/local/ssl/include/openssl \
>> -DUSE_SASL_AUTH \
>> -DDEF_COMMAND_DIR=\"/usr/local/sbin\" \
>> -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" \
>> -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" \
>> -DHAS_PCRE -I/usr/local/include' \
>> AUXLIBS='L/usr/local/ssl/lib ?lssl ?lcrypto \
>> -L/usr/local/lib -lpcre -L/usr/lib -lresolv?
>
> The above syntax is incorrect. Try
>
> ... CCARGS='
> -DUSE_TLS -I/usr/local/ssl/include
> -DUSE_SASL_AUTH
> -DDEF_COMMAND_DIR=\"/usr/local/sbin\"
> -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\"
> -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\"
> -DHAS_PCRE -I/usr/local/include
> ' \
> AUXLIBS='
> -L /usr/local/ssl/lib -lssl -lcrypto
> -L/usr/local/lib -lpcre
> '

That worked. Thanks.

But I donít understand why. Iím assuming the key difference was on the -DUSE_TLS directive. With the new OpenSSL version, /usr/local/ssl/include contains only the openssl directory which in turn contains all the openssl header files. So how does the path specified behind -DUSE_TLS work?

-- Larry Stone lstone19@stonejongleux.com http://www.stonejongleux.com/