Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 719686

Summary: app-benchmarks/siege-4.0.5 : hash.c: error: unknown type name u_int32_t
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: andreacerisara, mscardovi, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: stdint.h
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
app-benchmarks:siege-4.0.5:20200426-180742.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
emerge --info
build.log

Description Toralf Förster gentoo-dev 2020-04-26 18:11:02 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include   -I/include/zlib -I/include -I/usr/include/openssl -I/usr/include -I/include/zlib -I/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -DOPENSSL_NO_KRB5  -O2 -pipe -march=native -c -o handler.o handler.c
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I../include   -I/include/zlib -I/include -I/usr/include/openssl -I/usr/include -I/include/zlib -I/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -W -Wall -Wunused-value -DOPENSSL_NO_KRB5  -O2 -pipe -march=native -c -o hash.o hash.c
hash.c:57:9: error: unknown type name u_int32_t
   57 | private u_int32_t    fnv_32_buf(void *buf, size_t len, u_int32_t hval);
      |         ^~~~~~~~~
hash.c:57:56: error: unknown type name u_int32_t

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200425-233309

  -------------------------------------------------------------------

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 (uninstalled)
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Apr 26 15:53:38 UTC 2020
/var/db/repos/musl	Sat Apr 25 04:44:36 UTC 2020

emerge -qpvO app-benchmarks/siege
[ebuild  N    ] app-benchmarks/siege-4.0.5  USE="ssl -libressl"
Comment 1 Toralf Förster gentoo-dev 2020-04-26 18:11:05 UTC
Created attachment 634732 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-26 18:11:08 UTC
Created attachment 634734 [details]
app-benchmarks:siege-4.0.5:20200426-180742.log
Comment 3 Toralf Förster gentoo-dev 2020-04-26 18:11:11 UTC
Created attachment 634736 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-26 18:11:13 UTC
Created attachment 634738 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-26 18:11:16 UTC
Created attachment 634740 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-26 18:11:19 UTC
Created attachment 634742 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-26 18:11:21 UTC
Created attachment 634744 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-26 23:16:07 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 Marco Scardovi (scardracs) 2021-03-27 13:37:35 UTC
Just tested on a chrooted musl build and I'm able to build it without change u_int32_t. Musl also checks for u_int32_t and accept it as valid.

...
checking for u_int32_t... yes
...
Comment 10 Marco Scardovi (scardracs) 2021-05-01 16:46:32 UTC
Created attachment 704997 [details]
emerge --info
Comment 11 Marco Scardovi (scardracs) 2021-05-01 16:51:32 UTC
Created attachment 705000 [details]
build.log