Bug 255966

Summary: mail/postfix build failure
Product: Ports & Packages Reporter: oz42
Component: Individual Port(s)Assignee: Juraj Lutter <otis>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: lwhsu, oz42
Priority: --- Flags: bugzilla: maintainer-feedback? (ohauer)
Version: Latest   
Hardware: Any   
OS: Any   

Description oz42 2021-05-18 06:28:21 UTC
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
Comment 1 oz42 2021-05-18 06:29:51 UTC
My make.conf:

OPTIONS_UNSET= NIS
OPTIONS_UNSET+= X11
OPTIONS_UNSET+= DOCS
OPTIONS_UNSET+= DEBUG
OPTIONS_UNSET+= WAYLAND

Please see also bug 255677
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2021-06-01 05:00:11 UTC
Over to new maintainer
Comment 3 Juraj Lutter freebsd_committer freebsd_triage 2021-06-01 08:35:22 UTC
(In reply to oz42 from comment #0)
What is your OS release, please?
Comment 4 oz42 2021-06-01 09:06:34 UTC
(In reply to Juraj Lutter from comment #3)
It is 12.2-RELEASE
Comment 5 Juraj Lutter freebsd_committer freebsd_triage 2021-06-15 21:22:36 UTC
Is this the same problem as with bug 255677 ?
Comment 6 Juraj Lutter freebsd_committer freebsd_triage 2021-06-15 21:50:04 UTC
(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?
Comment 7 oz42 2021-06-16 07:04:04 UTC
(In reply to Juraj Lutter from comment #5)
Yes
Comment 8 oz42 2021-06-16 07:04:32 UTC
(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)
Comment 9 Juraj Lutter freebsd_committer freebsd_triage 2021-07-08 19:26:42 UTC
Is this a build against LibreSSL?
Comment 10 Juraj Lutter freebsd_committer freebsd_triage 2021-07-08 19:30:33 UTC
OpenSSL API 1.0 and LibreTLS is not supported any longer. You either try mail/postfix35 or switch to OpenSSL.