Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724696 - games-misc/fortune-mod-1.99.1-r3 with sys-libs/musl-1.2.0: strfile.h:46:2: error: unknown type name ‘u_int32_t’
Summary: games-misc/fortune-mod-1.99.1-r3 with sys-libs/musl-1.2.0: strfile.h:46:2: er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard: stdint.h
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-05-23 13:12 UTC by Andrew Savchenko
Modified: 2021-12-03 05:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.97 KB, text/plain)
2020-05-23 13:12 UTC, Andrew Savchenko
Details
environment (environment,74.97 KB, text/plain)
2020-05-23 13:13 UTC, Andrew Savchenko
Details
emerge --info (emerge.info,8.56 KB, text/plain)
2020-05-23 13:15 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2020-05-23 13:12:48 UTC
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 */
      |  ^~~~~~~~
Comment 1 Andrew Savchenko gentoo-dev 2020-05-23 13:13:54 UTC
Created attachment 641070 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2020-05-23 13:15:15 UTC
Created attachment 641076 [details]
emerge --info
Comment 3 Michael 'veremitz' Everitt 2020-05-23 16:24:56 UTC
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 .
Comment 4 Michael 'veremitz' Everitt 2020-05-23 16:27:56 UTC
(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!
Comment 5 Michael 'veremitz' Everitt 2020-05-23 16:30:23 UTC
(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 ."
Comment 6 Larry the Git Cow gentoo-dev 2021-12-03 03:10:09 UTC
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(+)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-03 05:02:08 UTC
New version works on musl.