Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716330 - media-sound/moc-2.6_alpha3 : /.../db.h: error: unknown type name u_int32_t
Summary: media-sound/moc-2.6_alpha3 : /.../db.h: error: unknown type name u_int32_t
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: stdint.h
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-05 13:58 UTC by Toralf Förster
Modified: 2021-03-23 11:04 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.91 KB, text/plain)
2020-04-05 13:58 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,311.35 KB, text/plain)
2020-04-05 13:58 UTC, Toralf Förster
Details
environment (environment,19.38 KB, text/plain)
2020-04-05 13:58 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,25.43 KB, application/x-bzip)
2020-04-05 13:58 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,24.89 KB, application/x-bzip)
2020-04-05 13:58 UTC, Toralf Förster
Details
media-sound:moc-2.6_alpha3:20200405-133938.log (media-sound:moc-2.6_alpha3:20200405-133938.log,149.67 KB, text/plain)
2020-04-05 13:58 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.71 KB, application/x-bzip)
2020-04-05 13:58 UTC, Toralf Förster
Details
Fix for missing types (moc-2.6_alpha3-stdint_uint_types.patch,1.15 KB, patch)
2020-11-21 04:51 UTC, Stefan Michelsson
Details | Diff
Ebuild that applies the patch moc-2.6_alpha3-stdint_uint_types.patch (moc-2.6_alpha3-r2.ebuild,2.32 KB, text/plain)
2020-11-21 04:53 UTC, Stefan Michelsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-05 13:58:09 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2020-04-05 13:58:12 UTC
Created attachment 630480 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-05 13:58:15 UTC
Created attachment 630482 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-05 13:58:18 UTC
Created attachment 630484 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-05 13:58:20 UTC
Created attachment 630486 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-05 13:58:23 UTC
Created attachment 630488 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-05 13:58:26 UTC
Created attachment 630490 [details]
media-sound:moc-2.6_alpha3:20200405-133938.log
Comment 7 Toralf Förster gentoo-dev 2020-04-05 13:58:29 UTC
Created attachment 630492 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-26 23:19:42 UTC
Upstream should consider using portable POSIX-compatible integer types as
defined in
https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdint.h.html .
Comment 9 Stefan Michelsson 2020-11-21 04:51:21 UTC
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".
Comment 10 Stefan Michelsson 2020-11-21 04:53:49 UTC
Created attachment 673990 [details]
Ebuild that applies the patch moc-2.6_alpha3-stdint_uint_types.patch
Comment 11 Larry the Git Cow gentoo-dev 2021-03-23 11:04:56 UTC
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(-)