libtool: compile: x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -Wall -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c mx5000.c -fPIC -DPIC -o .libs/mx5000.o mx5000.c: In function mx5000_open: mx5000.c:69:16: error: PATH_MAX undeclared (first use in this function) 69 | char devname[PATH_MAX]; | ^~~~~~~~ mx5000.c:69: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 * timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Fri Mar 20 20:38:39 UTC 2020 /var/db/repos/musl Wed Mar 18 03:21:45 UTC 2020 emerge -qpvO app-misc/mx5000tools [ebuild N ] app-misc/mx5000tools-0.1.2-r1
Created attachment 623534 [details] emerge-info.txt
Created attachment 623536 [details] app-misc:mx5000tools-0.1.2-r1:20200320-223626.log
Created attachment 623538 [details] emerge-history.txt
Created attachment 623540 [details] environment
Created attachment 623542 [details] etc.portage.tbz2
Created attachment 623544 [details] logs.tbz2
Created attachment 623546 [details] temp.tbz2
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec75a9bee49d7d70439b2457c463e43aefbef66 commit cec75a9bee49d7d70439b2457c463e43aefbef66 Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2020-08-27 18:00:10 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2020-08-27 18:00:10 +0000 app-misc/mx5000tools: fix compilation with musl Closes: https://bugs.gentoo.org/713738 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch | 10 ++++++++++ app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-)