I have OpenSSL from the port: openssl-1.0.2fp1. Looking at that packing
list and following the apparently indicated directories seems to yield:

home% ls -al /usr/local/include/eopenssl/openssl
total 3596
drwxr-xr-x  2 root  wheel    2048 Aug 17 18:50 .
drwxr-xr-x  3 root  wheel     512 Aug 17 18:50 ..
-r--r--r--  1 root  bin      6146 Aug 17 18:50 aes.h
-r--r--r--  1 root  bin     63142 Aug 17 18:50 asn1.h
-r--r--r--  1 root  bin     24435 Aug 17 18:50 asn1_mac.h
-r--r--r--  1 root  bin     34475 Aug 17 18:50 asn1t.h
-r--r--r--  1 root  bin     38739 Aug 17 18:50 bio.h
-r--r--r--  1 root  bin      5351 Aug 17 18:50 blowfish.h
-r--r--r--  1 root  bin     41112 Aug 17 18:50 bn.h
-r--r--r--  1 root  bin      5026 Aug 17 18:50 buffer.h
-r--r--r--  1 root  bin      5565 Aug 17 18:50 camellia.h
-r--r--r--  1 root  bin      4659 Aug 17 18:50 cast.h
-r--r--r--  1 root  bin      3257 Aug 17 18:50 cmac.h
-r--r--r--  1 root  bin     28641 Aug 17 18:50 cms.h
-r--r--r--  1 root  bin      2335 Aug 17 18:50 comp.h
-r--r--r--  1 root  bin     11256 Aug 17 18:50 conf.h
-r--r--r--  1 root  bin      4147 Aug 17 18:50 conf_api.h
-r--r--r--  1 root  bin     27649 Aug 17 18:50 crypto.h
-r--r--r--  1 root  bin     11913 Aug 17 18:50 des.h
-r--r--r--  1 root  bin     21486 Aug 17 18:50 des_old.h
-r--r--r--  1 root  bin     16180 Aug 17 18:50 dh.h
-r--r--r--  1 root  bin     13662 Aug 17 18:50 dsa.h
-r--r--r--  1 root  bin     20210 Aug 17 18:50 dso.h
-r--r--r--  1 root  bin      9046 Aug 17 18:50 dtls1.h
-r--r--r--  1 root  bin     10945 Aug 17 18:50 e_os2.h
-r--r--r--  1 root  bin       616 Aug 17 18:50 ebcdic.h
-r--r--r--  1 root  bin     56134 Aug 17 18:50 ec.h
-r--r--r--  1 root  bin      5191 Aug 17 18:50 ecdh.h
-r--r--r--  1 root  bin     14038 Aug 17 18:50 ecdsa.h
-r--r--r--  1 root  bin     44946 Aug 17 18:50 engine.h
-r--r--r--  1 root  bin     16776 Aug 17 18:50 err.h
-r--r--r--  1 root  bin     67798 Aug 17 18:50 evp.h
-r--r--r--  1 root  bin      4535 Aug 17 18:50 hmac.h
-r--r--r--  1 root  bin      4679 Aug 17 18:50 idea.h
-r--r--r--  1 root  bin      8165 Aug 17 18:50 krb5_asn.h
-r--r--r--  1 root  bin      6853 Aug 17 18:50 kssl.h
-r--r--r--  1 root  bin      9549 Aug 17 18:50 lhash.h
-r--r--r--  1 root  bin      4786 Aug 17 18:50 md4.h
-r--r--r--  1 root  bin      4785 Aug 17 18:50 md5.h
-r--r--r--  1 root  bin      3942 Aug 17 18:50 mdc2.h
-r--r--r--  1 root  bin      8260 Aug 17 18:50 modes.h
-r--r--r--  1 root  bin    175657 Aug 17 18:50 obj_mac.h
-r--r--r--  1 root  bin     47564 Aug 17 18:50 objects.h
-r--r--r--  1 root  bin     27147 Aug 17 18:50 ocsp.h
-r--r--r--  1 root  bin      6924 Aug 17 18:50 opensslconf.h
-r--r--r--  1 root  bin      3941 Aug 17 18:50 opensslv.h
-r--r--r--  1 root  bin      7788 Aug 17 18:50 ossl_typ.h
-r--r--r--  1 root  bin     25807 Aug 17 18:50 pem.h
-r--r--r--  1 root  bin      2862 Aug 17 18:50 pem2.h
-r--r--r--  1 root  bin     14839 Aug 17 18:50 pkcs12.h
-r--r--r--  1 root  bin     20778 Aug 17 18:50 pkcs7.h
-r--r--r--  1 root  bin      3673 Aug 17 18:50 pqueue.h
-r--r--r--  1 root  bin      5772 Aug 17 18:50 rand.h
-r--r--r--  1 root  bin      4546 Aug 17 18:50 rc2.h
-r--r--r--  1 root  bin      3807 Aug 17 18:50 rc4.h
-r--r--r--  1 root  bin      4371 Aug 17 18:50 ripemd.h
-r--r--r--  1 root  bin     29735 Aug 17 18:50 rsa.h
-r--r--r--  1 root  bin    202903 Aug 17 18:50 safestack.h
-r--r--r--  1 root  bin      6040 Aug 17 18:50 seed.h
-r--r--r--  1 root  bin      7929 Aug 17 18:50 sha.h
-r--r--r--  1 root  bin      5577 Aug 17 18:50 srp.h
-r--r--r--  1 root  bin      6638 Aug 17 18:50 srtp.h
-r--r--r--  1 root  bin    149280 Aug 17 18:50 ssl.h
-r--r--r--  1 root  bin     12049 Aug 17 18:50 ssl2.h
-r--r--r--  1 root  bin      3789 Aug 17 18:50 ssl23.h
-r--r--r--  1 root  bin     33281 Aug 17 18:50 ssl3.h
-r--r--r--  1 root  bin      4532 Aug 17 18:50 stack.h
-r--r--r--  1 root  bin     27694 Aug 17 18:50 symhacks.h
-r--r--r--  1 root  bin     39399 Aug 17 18:50 tls1.h
-r--r--r--  1 root  bin     34477 Aug 17 18:50 ts.h
-r--r--r--  1 root  bin      4631 Aug 17 18:50 txt_db.h
-r--r--r--  1 root  bin     18687 Aug 17 18:50 ui.h
-r--r--r--  1 root  bin      3494 Aug 17 18:50 ui_compat.h
-r--r--r--  1 root  bin      1083 Aug 17 18:50 whrlpool.h
-r--r--r--  1 root  bin     53188 Aug 17 18:50 x509.h
-r--r--r--  1 root  bin     29023 Aug 17 18:50 x509_vfy.h
-r--r--r--  1 root  bin     40389 Aug 17 18:50 x509v3.h

and

home% ls -al /usr/local/lib/eopenssl
total 17700
drwxr-xr-x   4 root  wheel      512 Aug 17 18:50 .
drwxr-xr-x  41 root  wheel    11776 Aug 19 02:35 ..
drwxr-xr-x   2 root  wheel      512 Aug 17 18:50 engines
-r--r--r--   1 root  bin    4583100 Aug 17 18:50 libcrypto.a
-r--r--r--   1 root  bin    2820636 Aug 17 18:50 libcrypto.so.3.0
-r--r--r--   1 root  bin     890424 Aug 17 18:50 libssl.a
-r--r--r--   1 root  bin     644014 Aug 17 18:50 libssl.so.3.0
drwxr-xr-x   6 root  wheel      512 Aug 17 18:50 man

So now I have:

make tidy \
        && make makefiles CCARGS="-DUSE_TLS
-I/usr/local/include/eopenssl/openssl
-DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\""
AUXLIBS="-L/usr/local/lib/eopenssl -lssl -lcrypto" \
        && make \
        && sudo sh postfix-install

But I'm still getting the same error. Am I following the wrong path(s)?

Thanks!

On Tue, Aug 23, 2016 at 11:36 AM, Viktor Dukhovni <
postfix-us...@dukhovni.org> wrote:

> On Tue, Aug 23, 2016 at 11:10:38AM -0700, David Benfell wrote:
>
> > Thinking that OpenBSD's packages incorporated assumptions that are
> > inapplicable to how I use postfix, I am attempting to build it myself.
> >
> > Based on what I saw in the READMEs and what I found on the system, I am
> > using:
> >
> > make tidy \
> >         && make makefiles CCARGS="-DUSE_TLS -I/usr/include/openssl
> > -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"" AUXLIBS="-L/usr/lib
> > -lssl -lcrypto" \
> >         && make \
> >         && sudo sh postfix-install
>
> The OpenBSD system headers and libraries are likely LibreSSL not
> OpenSSL.  Postfix requires OpenSSL.  You can build OpenSSL in some
> other location, and compile/link Postfix against that.
>
> --
>         Viktor.
>

Reply via email to