file ump_msg.h from all versions of media-libs/alsa-lib missing <cstddef.h> Reproducible: Always Actual Results: Packages using file ump_msg.h fail due to the used header missing includes. One example is media-libs/dssi-1.1.1-r2 which include it: usr/include/alsa/ump_msg.h:1119:65: error: unknown type name ‘size_t’ 1119 | int snd_ump_msg_sysex_expand(const uint32_t *ump, uint8_t *buf, size_t maxlen, | ^~~~~~ /usr/include/alsa/ump_msg.h:13:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’ 12 | #include <stdint.h> +++ |+#include <stddef.h> 13 | /usr/include/alsa/ump_msg.h:1120:30: error: unknown type name ‘size_t’ 1120 | size_t *filled); | ^~~~~~ patch file will be attached
Typo above: missing include is: #include <stddef.h>’ Applied patch allows consumer media-libs/dssi1.1.1-r2 to build successfully
Created attachment 918012 [details, diff] stddef.h-includes.patch
Not sure why this is being related to gcc-15, it happens with gcc-14.2.1 as well (when I originally logged it on github as well as just now)
(In reply to Kobboi from comment #3) > Not sure why this is being related to gcc-15, it happens with gcc-14.2.1 as > well (when I originally logged it on github as well as just now) Yes, it reproduces with any compiler - gcc-14/15/clang. :) It was just closed but that was obviously incorrect (see my comment). I don't think upstream user "perexg" understood the problem.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=653518e17eb50cd761d04f3974209af9ec2c1358 commit 653518e17eb50cd761d04f3974209af9ec2c1358 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-02-06 22:10:23 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-02-06 22:10:23 +0000 media-libs/alsa-lib: further test/header fixes Closes: https://bugs.gentoo.org/944447 Closes: https://bugs.gentoo.org/946562 Closes: https://bugs.gentoo.org/949127 Signed-off-by: Sam James <sam@gentoo.org> ...-1.2.13-r1.ebuild => alsa-lib-1.2.13-r2.ebuild} | 8 +++-- .../files/alsa-lib-1.2.13-headers-again.patch | 40 ++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-)