cc -fPIC -I. -I../../include -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_META_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"no\" -DDEF_HTML_DIR=\"no\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -Wmissing-prototypes -Wformat -Wno-comment -DUSE_SASL_AUTH -DHAS_EAI -I/usr/local/include -DHAS_PCRE -I/usr/local/include -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/local/include -I/usr/local/include/db5 -I/usr/local/include -DHAS_DEV_URANDOM -DDEF_SHLIB_DIR=\"/usr/local/lib/postfix\" -DUSE_DYNAMIC_LIBS -DUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fno-common -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I. -I../../include -DFREEBSD12 -Wl,-rpath,/usr/local/lib/postfix -o smtpd smtpd.o smtpd_token.o smtpd_check.o smtpd_chat.o smtpd_state.o smtpd_peer.o smtpd_sasl_proto.o smtpd_sasl_glue.o smtpd_proxy.o smtpd_xforward.o smtpd_dsn_fix.o smtpd_milter.o smtpd_resolve.o smtpd_expand.o smtpd_haproxy.o ../../lib/libpostfix-master.so ../../lib/libpostfix-tls.so ../../lib/libxsasl.a ../../lib/libmilter.a ../../lib/libpostfix-dns.so ../../lib/libpostfix-global.so ../../lib/libpostfix-util.so -pie -L/usr/local/lib -licuuc -L/usr/local/lib -Wl,-rpath,/usr/local/lib -fstack-protector-strong -lssl -lcrypto -L/usr/local/lib/db5 -ldb-5.3 -L/usr/local/lib -licui18n -licuuc -licudata ld: error: ../../lib/libpostfix-tls.so: undefined reference to EVP_MD_CTX_create ld: error: ../../lib/libpostfix-tls.so: undefined reference to EVP_MD_CTX_destroy ld: error: ../../lib/libpostfix-tls.so: undefined reference to SSL_CTX_set1_groups ld: error: ../../lib/libpostfix-tls.so: undefined reference to sk_new_null ld: error: ../../lib/libpostfix-tls.so: undefined reference to sk_pop_free ld: error: ../../lib/libpostfix-tls.so: undefined reference to sk_push cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [smtpd] Error code 1 make[4]: stopped in /usr/ports/mail/postfix/work/postfix-3.6.0/src/smtpd 1 error
My make.conf: OPTIONS_UNSET= NIS OPTIONS_UNSET+= X11 OPTIONS_UNSET+= DOCS OPTIONS_UNSET+= DEBUG OPTIONS_UNSET+= WAYLAND Please see also bug 255677
Over to new maintainer
(In reply to oz42 from comment #0) What is your OS release, please?
(In reply to Juraj Lutter from comment #3) It is 12.2-RELEASE
Is this the same problem as with bug 255677 ?
(In reply to Juraj Lutter from comment #5) If yes, could you please try with the recent postfix 3.6.1 update that arrived only a short while ago?
(In reply to Juraj Lutter from comment #5) Yes
(In reply to Juraj Lutter from comment #6) Slightly different, but still failure: --- tls_misc.o --- /usr/local/libexec/ccache/world/cc -fPIC -I. -I../../include -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_META_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"no\" -DDEF_HTML_DIR=\"no\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -Wmissing-prototypes -Wformat -Wno-comment -DUSE_SASL_AUTH -DHAS_EAI -I/usr/local/include -DHAS_PCRE -I/usr/local/include -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/local/include -I/usr/local/include/db5 -DHAS_CDB -I/usr/local/include -I/usr/local/include -DHAS_DEV_URANDOM -DDEF_SHLIB_DIR=\"/usr/local/lib/postfix\" -DUSE_DYNAMIC_LIBS -DUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fno-common -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -I. -I../../include -DFREEBSD12 -c tls_misc.c tls_misc.c:331:31: error: use of undeclared identifier 'TLS1_3_VERSION' TLS_PROTOCOL_TXT_TLSV1_3, TLS1_3_VERSION, ^ tls_misc.c:892:28: error: use of undeclared identifier 'TLS1_3_VERSION' if (SSL_version(ssl) < TLS1_3_VERSION)
Is this a build against LibreSSL?
OpenSSL API 1.0 and LibreTLS is not supported any longer. You either try mail/postfix35 or switch to OpenSSL.