[Bug 215323] net/ntp: fix build with LibreSSL

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 15 16:50:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215323

            Bug ID: 215323
           Summary: net/ntp: fix build with LibreSSL
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy at FreeBSD.org
          Reporter: naddy at FreeBSD.org
          Assignee: cy at FreeBSD.org
             Flags: maintainer-feedback?(cy at FreeBSD.org)

Created attachment 177989
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177989&action=edit
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list