Bug 217793 - mail/cyrus-imapd30: build fails with libressl: libcyrus_imap.so: undefined reference to 'DH_set0_pqg'
Summary: mail/cyrus-imapd30: build fails with libressl: libcyrus_imap.so: undefined re...
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: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-14 23:46 UTC by Mark.Martinec
Modified: 2017-03-15 11:54 UTC (History)
0 users

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


Attachments
full build log (xz compressed) (18.43 KB, application/x-xz)
2017-03-14 23:46 UTC, Mark.Martinec
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.