Bug 233527 - mail/postfix: Fails to build with libressl 2.8.2
Summary: mail/postfix: Fails to build with libressl 2.8.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Olli Hauer
Depends on:
Reported: 2018-11-26 06:55 UTC by Simeon Simeonov
Modified: 2018-11-26 07:03 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ohauer)


Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Simeonov 2018-11-26 06:55:35 UTC
This is most likely the same problem that was fixed for mail/postfix-current in 

The build fails with:

1 warning generated.
--- smtpd_haproxy.o ---
In file included from smtpd_haproxy.c:83:
In file included from ./smtpd.h:33:
../../include/tls.h:95:9: warning: 'OPENSSL_VERSION' macro redefined [-Wmacro-redefined]
/usr/local/include/openssl/crypto.h:336:9: note: previous definition is here
#define OPENSSL_VERSION         0
1 warning generated.
--- smtpd ---
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 -DHAS_CDB -I/usr/local/include -DU_DISABLE_RENAMING=1 -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  -O2 -pipe -fno-strict-aliasing -fstack-protector -I. -I../../include -DFREEBSD11 -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 -lssl -lcrypto -L/usr/local/lib -licui18n -licuuc -licudata
../../lib/libpostfix-tls.so: undefined reference to `SSL_CTX_set_num_tickets'
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.3.2/src/smtpd
1 error

make[4]: stopped in /usr/ports/mail/postfix/work/postfix-3.3.2/src/smtpd
*** [update] Error code 1

make[3]: stopped in /usr/ports/mail/postfix/work/postfix-3.3.2
1 error

make[3]: stopped in /usr/ports/mail/postfix/work/postfix-3.3.2
Comment 1 commit-hook freebsd_committer 2018-11-26 07:00:24 UTC
A commit references this bug:

Author: ohauer
Date: Mon Nov 26 06:59:18 UTC 2018
New revision: 485924
URL: https://svnweb.freebsd.org/changeset/ports/485924

  - fix build with libressl 2.8.2

  PR:             233517 233527
  Submitted by:   Andrej Ebert
  Reported by:	Herbert J. Skuhra

Comment 2 Olli Hauer freebsd_committer 2018-11-26 07:03:10 UTC
patch committed!

Thanks for the PR!