Bug 217793

Summary: mail/cyrus-imapd30: build fails with libressl: libcyrus_imap.so: undefined reference to 'DH_set0_pqg'
Product: Ports & Packages Reporter: Mark.Martinec
Component: Individual Port(s)Assignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (ume)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
full build log (xz compressed) none

Description Mark.Martinec 2017-03-14 23:46:37 UTC
Created attachment 180834 [details]
full build log (xz compressed)

mail/cyrus-imapd30 fails to build (using poudriere under FreeBSD 11.0),
apparently due to building with libressl. The full log is attached,
the excerpt from the log is here:

  libtool: link: cc -DPIC -fPIC -O2 -pipe ... -Wl,/usr/local/lib
  imap/.libs/libcyrus_imap.so: undefined reference to `DH_set0_pqg'
  cc: error: linker command failed with exit code 1 (use -v to see invocation)
  gmake[3]: *** [Makefile:3817: imap/imapd] Error 1


The OpenSSL docs state that DH_get0_pqg was added in 1.1.0:
  https://www.openssl.org/docs/man1.1.0/crypto/DH_get0_pqg.html

(and is apparently missing in libressl-2.4.5 from ports).


(Note that mail/cyrus-imapd25 builds and works with libressl just fine.)
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-03-15 11:47:35 UTC
A commit references this bug:

Author: ume
Date: Wed Mar 15 11:46:59 UTC 2017
New revision: 436232
URL: https://svnweb.freebsd.org/changeset/ports/436232

Log:
  Fix build with libressl.

  PR:		217793

Changes:
  head/mail/cyrus-imapd30/files/patch-imap__tls.c
  head/mail/cyrus-imapd30/files/patch-imtest__imtest.c
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2017-03-15 11:54:09 UTC
Thank you for letting me know it.
It should be fixed now.