Created attachment 641068 [details] build.log Hi! fortune-mod fails to build with musl as follows: x86_64-gentoo-linux-musl-gcc -march=native -O3 -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=both -pipe -frecord-gcc-switches -ffast-math -DFORTDIR="\"/usr/share/fortune\"" -DOFFDIR="\"/usr/share/fortune/off\"" -DLOCFORTDIR="\"/usr/local/share/fortune\"" -DLOCOFFDIR="\"/usr/local/share/fortune/off\"" -fsigned-char -c -o strfile.o strfile.c In file included from strfile.c:82: strfile.h:46:2: error: unknown type name ‘u_int32_t’ 46 | u_int32_t str_version; /* version number */ | ^~~~~~~~~ strfile.h:47:2: error: unknown type name ‘u_int32_t’ 47 | u_int32_t str_numstr; /* # of strings in the file */ | ^~~~~~~~~ strfile.h:48:2: error: unknown type name ‘u_int32_t’ 48 | u_int32_t str_longlen; /* length of longest string */ | ^~~~~~~~~ strfile.h:49:2: error: unknown type name ‘u_int32_t’ 49 | u_int32_t str_shortlen; /* length of shortest string */ | ^~~~~~~~~ strfile.h:53:2: error: unknown type name ‘u_int32_t’ 53 | u_int32_t str_flags; /* bit field for flags */ | ^~~~~~~~~ strfile.h:54:2: error: unknown type name ‘u_int8_t’ 54 | u_int8_t stuff[4]; /* long aligned space */ | ^~~~~~~~
Created attachment 641070 [details] environment
Created attachment 641076 [details] emerge --info
Looks like a missing include. There are a number of examples of this type of issue in the blocker. I'm leaning towards sys/types.h possibly here - https://git.musl-libc.org/cgit/musl/tree/include/sys/types.h#n62 .
(In reply to Michael 'veremitz' Everitt from comment #3) > Looks like a missing include. There are a number of examples of this type of > issue in the blocker. I'm leaning towards sys/types.h possibly here - > https://git.musl-libc.org/cgit/musl/tree/include/sys/types.h#n62 . If I spot a closer match in my musl@ history I'll post here. Alternatively sam_c has been noting many of these issues too!
(In reply to Michael 'veremitz' Everitt from comment #4) > (In reply to Michael 'veremitz' Everitt from comment #3) > > Looks like a missing include. There are a number of examples of this type of > > issue in the blocker. I'm leaning towards sys/types.h possibly here - > > https://git.musl-libc.org/cgit/musl/tree/include/sys/types.h#n62 . > > If I spot a closer match in my musl@ history I'll post here. Alternatively > sam_c has been noting many of these issues too! Spoke to soon - here's one of my 'standard' comments on this type of bug: "Upstream should consider using portable POSIX-compatible integer types as defined in https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html ."
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=703c50b0d0843d29442379e98928b8cfb333fe73 commit 703c50b0d0843d29442379e98928b8cfb333fe73 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-12-03 03:08:54 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-12-03 03:09:58 +0000 games-misc/fortune-mod: add 3.6.1 Bug: https://bugs.gentoo.org/715276 Bug: https://bugs.gentoo.org/724696 Closes: https://bugs.gentoo.org/604140 Closes: https://bugs.gentoo.org/720796 Signed-off-by: Sam James <sam@gentoo.org> games-misc/fortune-mod/Manifest | 1 + games-misc/fortune-mod/fortune-mod-3.6.1.ebuild | 39 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+)
New version works on musl.