GNU bug report logs - #81860
adns 1.7.0 fails to build on macOS: undeclared function getentropy

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: adns; Reported by: Daeho Ro <email@HIDDEN>; dated Sun, 13 Sep 2026 05:10:03 UTC; Maintainer for adns is adns-discuss@HIDDEN.
bug reassigned from package 'debbugs.gnu.org' to 'adns'. Request was from Felix Lechner <felix.lechner@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Sep 2026 05:09:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 13 01:09:51 2026
Received: from localhost ([127.0.0.1]:58450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1x5cTO-0002Pj-67
	for submit <at> debbugs.gnu.org; Sun, 13 Sep 2026 01:09:51 -0400
Received: from pv-2005g-snip6-5.eps.apple.com ([2a01:b747:3003:202::42]:32344
 helo=outbound.pv.icloud.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <email@HIDDEN>) id 1x5avg-00047l-53
 for submit <at> debbugs.gnu.org; Sat, 12 Sep 2026 23:30:57 -0400
Received: from outbound.pv.icloud.com (unknown [127.0.0.2])
 by p00-icloudmta-asmtp-us-west-1a-10-percent-1 (Postfix) with ESMTPS id
 4C1D51800119
 for <submit <at> debbugs.gnu.org>; Sun, 13 Sep 2026 03:30:47 +0000 (UTC)
X-ICL-RepId: 01a098d1-471b-787b-b211-fedd417989de
X-ICL-Out-Info: HUtFAUMHWwJACUgATUQeDx5WFlZNRAJCTQhMHV4FRQNDF0kAXBcOVk1cFVIEWytWEVwQXENFBBIWXUVXDFIDXV5LFxMfVFYDUFEdXwIKBEcEWxdGA1NFQgYXEVABWB5WXloXXk1HH0BNYkkBWhlbHEAXSm5NUw8PFFgdWwIZGV1QVBFXUAtbAkQNSAcsAEYFRwFMHlkCUgtdADsBKRooBEgBOQspAS50Qwk4VwxSA11eSxcNTUMSQhUEG0YeQwRfL10XXgxeBQ==
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daeho.ro; s=sig1;
 t=1789270249; x=1791862249; bh=WY1HagmnPNGxE+mM4gpWxrUn3tE52vc8pg0hRDvD07k=;
 h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To:x-icloud-hme;
 b=Zq2Ld/eZEtT2PpGt7zVoAvXgHF3mtFZ+ShajzgGjnqlD2zQbI6hElBKZpRcuKcnYmmOm5e8stglufeCpDNgNouwdnY+ZOnBnp3ztYRfYJttbQn1DFBDmCMzNaZJXW1t6vM87AH6kLCvuraufjg3O9TCwZP8b84/9cFReJe47pZn46e0zIkoLVkhsAsiYQ1tRik53/BTMp/WvnRg0B3Elo+y/t3L6JKeVjlf4I27Me+HKm5nUESNVN6lQPexoGrQ/LJV2Y2CzF68J4iEOibbcJAptJFBmLrQjUiMPrwc0S9jhaWnC8gBIKtr552jiuaE98kUxzv5fEgGkkShHYxGo2Q==
mail-alias-created-date: 1761025022956
Received: from smtpclient.apple (unknown [17.156.192.29])
 by p00-icloudmta-asmtp-us-west-1a-10-percent-1 (Postfix) with ESMTPSA id
 313601800125
 for <submit <at> debbugs.gnu.org>; Sun, 13 Sep 2026 03:30:46 +0000 (UTC)
From: Daeho Ro <email@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_A8847AA2-8585-47D7-B95C-6C0CEEB07556"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\))
Subject: adns 1.7.0 fails to build on macOS: undeclared function getentropy
Message-Id: <004404A7-7784-4599-9C2D-C688A8D6EF30@HIDDEN>
Date: Sun, 13 Sep 2026 12:30:34 +0900
To: submit <at> debbugs.gnu.org
X-Mailer: Apple Mail (2.3864.700.51.1.1)
X-Proofpoint-Sp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G2wdq8EDZn3WMhjxTH+HkwCy1aQOyvoRP1iS3M36YAHiOWMyIUkSBzb9Pkd/uXkg==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 13 Sep 2026 01:09:48 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--Apple-Mail=_A8847AA2-8585-47D7-B95C-6C0CEEB07556
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> Package: adns
> Version: 1.7.0
>=20
> Building adns 1.7.0 on macOS (Apple clang, macOS 15 and 26) fails in =
src/nextid.c because getentropy() is used without including =
<sys/random.h>:
>=20
>     nextid.c:55:8: error: call to undeclared function 'getentropy'; =
ISO C99 and later do not support implicit function declarations =
[-Wimplicit-function-declaration]
>=20
> On macOS getentropy() is declared only in <sys/random.h>. glibc also =
provides that header (and declares getentropy() there as well as in =
<unistd.h>), so including it unconditionally fixes the build on both:
>=20
> --- a/src/nextid.c
> +++ b/src/nextid.c
> @@ -21,6 +21,7 @@
>   */
>=20
> #include "internal.h"
> +#include <sys/random.h>
>=20
> /* common, error handling */
>=20
> Homebrew is carrying this as a local patch until it is fixed upstream: =
https://github.com/Homebrew/homebrew-core/pull/306069

--Apple-Mail=_A8847AA2-8585-47D7-B95C-6C0CEEB07556
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dus-ascii"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><div =
class=3D"Apple-Mail-URLShareUserContentTopClass"><br></div><div =
class=3D"Apple-Mail-URLShareWrapperClass" style=3D"position: relative =
!important;"><blockquote type=3D"cite" style=3D"border-left-style: none; =
color: inherit; padding: inherit; margin: inherit;">

Package: adns<br>Version: 1.7.0<br><br>Building adns 1.7.0 on macOS =
(Apple clang, macOS 15 and 26) fails in src/nextid.c because =
getentropy() is used without including =
&lt;sys/random.h&gt;:<br><br><span =
class=3D"Apple-converted-space">&nbsp;&nbsp;&nbsp;</span> nextid.c:55:8: =
error: call to undeclared function 'getentropy'; ISO C99 and later do =
not support implicit function declarations =
[-Wimplicit-function-declaration]<br><br>On macOS getentropy() is =
declared only in &lt;sys/random.h&gt;. glibc also provides that header =
(and declares getentropy() there as well as in &lt;unistd.h&gt;), so =
including it unconditionally fixes the build on both:<br><br>--- =
a/src/nextid.c<br>+++ b/src/nextid.c<br>@@ -21,6 +21,7 @@<br><span =
class=3D"Apple-converted-space">&nbsp;</span> */<br> <br> #include =
"internal.h"<br>+#include &lt;sys/random.h&gt;<br> <br> /* common, error =
handling */<br><br>Homebrew is carrying this as a local patch until it =
is fixed upstream: =
https://github.com/Homebrew/homebrew-core/pull/306069<br>

</blockquote></div></body></html>=

--Apple-Mail=_A8847AA2-8585-47D7-B95C-6C0CEEB07556--




Acknowledgement sent to Daeho Ro <email@HIDDEN>:
New bug report received and forwarded. Copy sent to help-debbugs@HIDDEN. Full text available.
Report forwarded to help-debbugs@HIDDEN:
bug#81860; Package debbugs.gnu.org. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 14 Sep 2026 00:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.