Created attachment 177989 [details] ntp.patch Here is the required patch to allow building ntp with LibreSSL. Explanation: ntp checks the OPENSSL_VERSION_NUMBER define to determine whether to use the OpenSSL 1.0 or 1.1 API, which are mutually incompatible. LibreSSL implements the 1.0 API but sets OPENSSL_VERSION_NUMBER to 0x20000000L, so the check ends up choosing the wrong API. The fix is this straightforward change: -#if OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
A commit references this bug: Author: cy Date: Thu Dec 15 20:22:15 UTC 2016 New revision: 428634 URL: https://svnweb.freebsd.org/changeset/ports/428634 Log: Fix build with LibreSSL. PR: 215323 Submitted by: naddy Changes: head/net/ntp/Makefile head/net/ntp/files/patch-include_libssl__compat.h head/net/ntp/files/patch-libntp_libssl__compat.c
Committed. Thanks for the patch.