In file included from /usr/include/db.h:10, from tags_cache.c:35: /usr/include/x86_64-gentoo-linux-musl/db6.0/db.h:130:9: error: unknown type name u_int32_t 130 | typedef u_int32_t db_pgno_t; /* Page number type. */ | ^~~~~~~~~ /usr/include/x86_64-gentoo-linux-musl/db6.0/db.h:131:9: error: unknown type name u_int16_t ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl_hardened-20200328-201618 ------------------------------------------------------------------- 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.42.0 * Available Java Virtual Machines: (none found) timestamp of HEAD at this tinderbox image: /var/db/repos/gentoo Sun Apr 5 10:43:40 UTC 2020 /var/db/repos/musl Sat Apr 4 03:02:24 UTC 2020 emerge -qpvO media-sound/moc [ebuild N ] media-sound/moc-2.6_alpha3 USE="cache magic unicode -aac -alsa -curl -debug -ffmpeg -flac -jack -libsamplerate -mad -modplug -musepack -oss -sid -sndfile -speex -timidity -tremor -vorbis -wavpack"
Created attachment 630480 [details] emerge-info.txt
Created attachment 630482 [details] emerge-history.txt
Created attachment 630484 [details] environment
Created attachment 630486 [details] etc.portage.tbz2
Created attachment 630488 [details] logs.tbz2
Created attachment 630490 [details] media-sound:moc-2.6_alpha3:20200405-133938.log
Created attachment 630492 [details] temp.tbz2
Upstream should consider using portable POSIX-compatible integer types as defined in https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html .
Created attachment 673987 [details, diff] Fix for missing types The problem is that the BerkeleyDB include (db.h, from dev-util/db) uses non-portable types. Some of them had already been fixed, but the build didn't check for u_int32_t (and other types not defined with musl). The attached patch adds checks and typedefs for the missing types and thus fixes the compilation issue. A workaround is to compile the package with USE="-cache".
Created attachment 673990 [details] Ebuild that applies the patch moc-2.6_alpha3-stdint_uint_types.patch
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204d1ca3dc246b65cc1a107c945e8920a03a34b6 commit 204d1ca3dc246b65cc1a107c945e8920a03a34b6 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-03-23 11:04:35 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-03-23 11:04:51 +0000 media-sound/moc: fixed compilation issue in 2.6* thanks to Stefan Michelsson <stefan@michelsson.me> for the fix Closes: https://bugs.gentoo.org/716330 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> .../files/moc-2.6_alpha3-stdint_uint_types.patch | 39 ++++++++++++++++++++++ media-sound/moc/moc-2.6_alpha3-r2.ebuild | 15 +++++++-- media-sound/moc/moc-2.6_alpha3-r3.ebuild | 13 +++++++- 3 files changed, 64 insertions(+), 3 deletions(-)