In file included from ../../include/sm/gen.h:21, from smrsh.c:14: ../../include/sm/cdefs.h:29:12: fatal error: sys/cdefs.h: No such file or directory 29 | # include <sys/cdefs.h> | ^~~~~~~~~~~~~ compilation terminated. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200328-141627 ------------------------------------------------------------------- Please see the tracker bug for details. gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.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) * timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Sun Mar 29 07:39:08 UTC 2020 /var/db/repos/musl Fri Mar 27 00:25:27 UTC 2020 emerge -qpvO app-shells/smrsh [ebuild N ] app-shells/smrsh-8.15.2
Created attachment 626886 [details] emerge-info.txt
Created attachment 626888 [details] app-shells:smrsh-8.15.2:20200329-085213.log
Created attachment 626890 [details] emerge-history.txt
Created attachment 626892 [details] environment
Created attachment 626894 [details] etc.portage.tbz2
Created attachment 626896 [details] temp.tbz2
musl upstream has a FAQ entry specifically for this error: https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E We will need to check/report upstream and patch affected code temporarily.
tinderbox_musl has reproduced this issue with version 8.15.2-r1 - Updating summary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed7c31f8944f4f16f45fcff382a1728c7ffa4062 commit ed7c31f8944f4f16f45fcff382a1728c7ffa4062 Author: Cristian Othón Martínez Vera <cfuga@cfuga.mx> AuthorDate: 2025-04-11 17:48:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-04-24 18:14:45 +0000 app-shells/smrsh: fix compilation for musl, c23/gcc-15 The value ```-DXDEBUG=0``` was fixed in the ```site.config.m4``` file, and now it's in the ebuild file. In order to support musl, we need to add a new value to the ```confENVDEF``` define. Closes: https://bugs.gentoo.org/715280 Closes: https://bugs.gentoo.org/944460 Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/41538 Closes: https://github.com/gentoo/gentoo/pull/41538 Signed-off-by: Sam James <sam@gentoo.org> app-shells/smrsh/files/site.config.m4 | 2 +- .../smrsh/files/smrsh-8.18.1-c23-sm_strtoll.patch | 29 ++++++++++++++++++++++ .../smrsh/files/smrsh-musl-disable-cdefs.patch | 11 ++++++++ app-shells/smrsh/smrsh-8.15.2-r1.ebuild | 10 ++++++++ app-shells/smrsh/smrsh-8.18.1.ebuild | 10 ++++++++ 5 files changed, 61 insertions(+), 1 deletion(-)