Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2016 16:50:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215323] net/ntp: fix build with LibreSSL
Message-ID:  <bug-215323-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215323

            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@FreeBSD.org
          Reporter: naddy@FreeBSD.org
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

Created attachment 177989
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177989&action=
=3Dedit
ntp.patch

Here is the required patch to allow building ntp with LibreSSL.

Explanation: ntp checks the OPENSSL_VERSION_NUMBER define to determine whet=
her
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 t=
he
check ends up choosing the wrong API. The fix is this straightforward chang=
e:

-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBE=
R)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215323-13>