Bug 292868 - audio/rubberband: fix build with libc++ 21
Summary: audio/rubberband: fix build with libc++ 21
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Jose Alonso Cardenas Marquez
URL:
Keywords:
Depends on:
Blocks: 292067
  Show dependency treegraph
 
Reported: 2026-02-01 19:53 UTC by Dimitry Andric
Modified: 2026-02-02 18:24 UTC (History)
0 users

See Also:
acm: maintainer-feedback+


Attachments
audio/rubberband: fix build with libc++ 21 (1.40 KB, patch)
2026-02-01 19:54 UTC, Dimitry Andric
acm: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2026-02-01 19:53:04 UTC
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.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2026-02-01 19:54:05 UTC
Created attachment 267676 [details]
audio/rubberband: fix build with libc++ 21
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2026-02-02 07:08:05 UTC
Approved! thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-02-02 18:17:00 UTC
A commit in branch main references this bug:

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 (new) | 10 ++++++++++
 1 file changed, 10 insertions(+)
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-02-02 18:18:01 UTC
A commit in branch 2026Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ad610cf7b1fe65d676b6f4a4001ec13aea05a2fd

commit ad610cf7b1fe65d676b6f4a4001ec13aea05a2fd
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:17:23 +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

    (cherry picked from commit 78992d889cf64999b2ff0b82d6940eb7c9edb12d)

 audio/rubberband/files/patch-src_common_mathmisc.h (new) | 10 ++++++++++
 1 file changed, 10 insertions(+)