[MacPorts] #73948: gnutls 3.8.13 fails to build on macOS 13 Intel due to crau/audit compilation errors
MacPorts
noreply at macports.org
Fri May 1 01:33:33 UTC 2026
#73948: gnutls 3.8.13 fails to build on macOS 13 Intel due to crau/audit
compilation errors
------------------------+--------------------
Reporter: tsakai2021 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Keywords: | Port: gnutls
------------------------+--------------------
Summary
gnutls 3.8.13 fails to build on macOS 13 Ventura (Intel) using Apple clang
because of compile errors in audit.c caused by broken function prototypes
in crau/crau.h.
The failure occurs even when the -audit variant is specified, making the
port currently uninstallable on this platform.
Official binary archives for darwin_22 x86_64 are also unavailable (404),
suggesting this issue affects MacPorts CI as well.
Environment
macOS: 13.7.8 Ventura
Architecture: x86_64 (Intel Mac)
MacPorts: 2.12.5
Xcode Command Line Tools:
Apple clang 14.0.3 (clang-1403.0.22.14.1)
SDK: MacOSX13.sdk
Port information
Port: gnutls
Version: 3.8.13_0
Variants tested:
default
-audit
Result: build failure in all cases
Steps to reproduce
Shellsudo port selfupdatesudo port clean --all gnutlssudo port install
gnutls
Also tested:
Shellsudo port install gnutls -audit
Actual result
Build fails during compilation of audit.c with errors originating from
crau/crau.h:
Plain Text./crau/crau.h:263:60: error: expected ')'void
crau_push_context(struct crau_context_stack_st *stack CRAU_MAYBE_UNUSED,
long context CRAU_MAYBE_UNUSED)
^./crau/crau.h:263:6: error: conflicting types for
'crau_push_context'...12 errors generated.
Full failure always occurs in:
lib/audit.c
Notably, even when -audit is specified, audit.c is still compiled:
Plain Textlibtool: compile: /usr/bin/clang ... -c audit.c
Expected result
gnutls should build successfully on macOS 13 Intel, or
the -audit variant should correctly disable compilation of audit.c, or
the port should be marked broken / installation blocked on affected
platforms until fixed.
Additional observations
No binary archive exists for this version and platform:
Plain Textgnutls-3.8.13_0.darwin_22.x86_64.tbz2 → 404
This strongly suggests MacPorts CI is also unable to build this port
successfully on darwin_22 (Intel).
Rolling back the ports tree to a revision where gnutls is at 3.8.12 allows
a clean build on the same system, confirming this is a regression
introduced in 3.8.13 (likely related to the new crau audit code).
Workaround
Manually reverting the ports tree to a commit prior to the update to
3.8.13 (i.e., keeping gnutls at 3.8.12) restores buildability.
However, this is not acceptable as a long-term user workaround, and a
proper fix in the Portfile or patch set is needed.
Suggested actions
One or more of the following:
Patch crau/crau.h to make it compatible with Apple clang on macOS.
Ensure the -audit variant truly disables audit-related sources.
Temporarily revert the port to 3.8.12 on macOS Intel.
Mark the port as broken on affected platforms until resolved.
Reproducibility
Reproducible 100% on macOS 13.7.8 (Intel)
Clean MacPorts environment
No local modifications
Thank you for maintaining MacPorts.
--
Ticket URL: <https://trac.macports.org/ticket/73948>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list