Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949127 - media-libs/alsa-lib fails as a dep with =gcc-15.0.1_pre20250126 due to file ump_msg.h: error: unknown type name ‘size_t’
Summary: media-libs/alsa-lib fails as a dep with =gcc-15.0.1_pre20250126 due to file u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2025-01-31 23:31 UTC by tdr
Modified: 2025-02-06 22:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
stddef.h-includes.patch (stddef.h-includes.patch,581 bytes, patch)
2025-01-31 23:55 UTC, tdr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2025-01-31 23:31:53 UTC
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
Comment 1 tdr 2025-01-31 23:51:24 UTC
Typo above:

missing include is:

#include <stddef.h>’


Applied patch allows consumer media-libs/dssi1.1.1-r2 to build successfully
Comment 2 tdr 2025-01-31 23:55:06 UTC
Created attachment 918012 [details, diff]
stddef.h-includes.patch
Comment 3 Kobboi 2025-02-01 11:44:23 UTC
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)
Comment 4 Holger Hoffstätte 2025-02-01 12:10:50 UTC
(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.
Comment 5 Larry the Git Cow gentoo-dev 2025-02-06 22:10:59 UTC
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(-)