Bug 2336033
Summary: | airspyone_host fails to build with GCC15 / C23 ("typedef int bool;") | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
Component: | airspyone_host | Assignee: | Jaroslav Škarvada <jskarvad> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | josmyers, jskarvad |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | airspyone_host-1.0.10-9.fc42 airspyone_host-1.0.10-10.fc42 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2025-01-07 12:19:56 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2333037 |
Description
Dave Malcolm
2025-01-06 22:56:02 UTC
Thanks for the info. I am going to propose the following fix upstream: #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L) #define _STD_C23 #endif #ifndef _STD_C23 typedef int bool; #endif If there is a better way how to handle it, please let me know. FEDORA-2025-a97ed07ba8 (airspyone_host-1.0.10-9.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-a97ed07ba8 FEDORA-2025-a97ed07ba8 (airspyone_host-1.0.10-9.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. Jaroslav: thanks! Joseph: with your "C23 expert" hat on, does this fix seem like the correct one? Yes, that seems right, assuming (a) the bool definition is genuinely used as a boolean type (only values 0 and 1 stored) and (b) it's not part of an externally supported library ABI (if bool appears in a library ABI, you might need to be more careful about considering whether such a change is an incompatible ABI change). Thanks, Is the new bool stored differently from the integer? I.e. will the consumers of the ABI crash if not recompiled? FEDORA-2025-72f8c85e7b (airspyone_host-1.0.10-10.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-72f8c85e7b FEDORA-2025-72f8c85e7b (airspyone_host-1.0.10-10.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. Nevermind, although I think it won't probably crash and additionally the library and its consumers are usually (re)compiled with the same compiler/standard it isn't problem any more, because upstream prefers solution with enforced older C standard, so I updated the patch. |