| ^~~~~~~ ras-events.c: In function read_ras_event_all_cpus: ras-events.c:359:16: error: PATH_MAX undeclared (first use in this function) 359 | char pipe_raw[PATH_MAX]; | ^~~~~~~~ ras-events.c:359:16: note: each undeclared identifier is reported only once for each function it appears in ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200316-165821 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 18 Mar 2020 13:38:27 +0000 emerge -qpvO app-admin/rasdaemon [ebuild N ] app-admin/rasdaemon-0.6.5 USE="-sqlite"
Created attachment 622222 [details] emerge-info.txt
Created attachment 622224 [details] app-admin:rasdaemon-0.6.5:20200318-233945.log
Created attachment 622226 [details] emerge-history.txt
Created attachment 622228 [details] environment
Created attachment 622230 [details] etc.portage.tbz2
Created attachment 622232 [details] logs.tbz2
Created attachment 622234 [details] temp.tbz2
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
https://github.com/mchehab/rasdaemon/pull/50
tinderbox_musl has reproduced this issue with version 0.6.7 - Updating summary.
in addition one needs argp-standalone, and link against -largp (musl)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20dc1a7757bbe3576f39ba7cf8a57049c75ba1ba commit 20dc1a7757bbe3576f39ba7cf8a57049c75ba1ba Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2022-01-25 20:00:12 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2022-01-25 20:00:57 +0000 app-admin/rasdaemon-0.6.7-r1: fix build for musl Closes: https://bugs.gentoo.org/713386 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org> .../rasdaemon/files/rasdaemon-0.6.7-musl.patch | 34 ++++++++++ app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild | 79 ++++++++++++++++++++++ 2 files changed, 113 insertions(+)