| Summary: |
Solid udisks2 backend fails to compile on musl libc: dev_t requires sys/types.h |
| Product: |
[Frameworks and Libraries] frameworks-solid
|
Reporter: |
A. Wilcox (awilfox) <awilfox> |
| Component: |
general | Assignee: |
Lukáš Tinkl <lukas> |
| Status: |
RESOLVED
FIXED
|
|
|
| Severity: |
major
|
CC: |
kdelibs-bugs-null
|
| Priority: |
NOR
|
|
|
| Version First Reported In: |
5.24.0 | |
|
| Target Milestone: |
--- | |
|
| Platform: |
Compiled Sources | |
|
| OS: |
Linux | |
|
|
Latest Commit:
|
2382c3f8d3669c473130f4baefb68d244dcb5cbc
|
Version Fixed/Implemented In:
|
5.37.0
|
|
Sentry Crash Report:
|
|
| |
| Attachments: |
Add #include <sys/types.h> to udisksblock.h
|
The udisks2 backend of the Solid framework does not #include <sys/types.h>, which causes a compile-time error on the musl libc where dev_t is not defined in other headers. A patch is included that has solved this issue for us at Adélie Linux. Reproducible: Always Steps to Reproduce: 1. Use musl libc. 2. Attempt to build Solid. Actual Results: In file included from /usr/src/kde-frameworks/solid-5.21.0/work/solid-5.21.0/src/solid/devices/backends/udisks2/udisksdevice.cpp:24:0: /usr/src/kde-frameworks/solid-5.21.0/work/solid-5.21.0/src/solid/devices/backends/udisks2/udisksblock.h:48:5: error: ‘dev_t’ does not name a type dev_t m_devNum; ^ Expected Results: A successful build.