Date: Mon, 02 Feb 2026 18:16:33 +0000 From: Dimitry Andric <dim@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 78992d889cf6 - main - audio/rubberband: fix build with libc++ 21 Message-ID: <6980ea01.24d6a.127073b3@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=78992d889cf64999b2ff0b82d6940eb7c9edb12d commit 78992d889cf64999b2ff0b82d6940eb7c9edb12d Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2026-02-01 19:53:36 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2026-02-02 18:16:05 +0000 audio/rubberband: fix build with libc++ 21 With libc++ 21 audio/rubberband fails to build, with errors similar to: In file included from ../src/common/mathmisc.cpp:24: ../src/common/mathmisc.h:58:1: error: unknown type name 'size_t'; did you mean 'std::size_t'? 58 | size_t roundUp(size_t value); // to nearest power of two | ^~~~~~ | std::size_t /usr/include/c++/v1/__cstddef/size_t.h:20:7: note: 'std::size_t' declared here 20 | using size_t = decltype(sizeof(int)); | ^ This is because mathmisc.h depended on <stddef.h> being transitively included, which is no longer the case. Add #include <stddef.h> to fix the problem. PR: 292868 Approved by: acm (maintainer) MFH: 2026Q1 --- audio/rubberband/files/patch-src_common_mathmisc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/audio/rubberband/files/patch-src_common_mathmisc.h b/audio/rubberband/files/patch-src_common_mathmisc.h new file mode 100644 index 000000000000..2ad8791c43e5 --- /dev/null +++ b/audio/rubberband/files/patch-src_common_mathmisc.h @@ -0,0 +1,10 @@ +--- src/common/mathmisc.h.orig 2024-10-25 16:26:08 UTC ++++ src/common/mathmisc.h +@@ -24,6 +24,7 @@ + #ifndef RUBBERBAND_MATHMISC_H + #define RUBBERBAND_MATHMISC_H + ++#include <stddef.h> + #include "sysutils.h" + + #ifndef M_PIhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6980ea01.24d6a.127073b3>
