Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719686 - app-benchmarks/siege-4.0.5 : hash.c: error: unknown type name u_int32_t
Summary: app-benchmarks/siege-4.0.5 : hash.c: 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-26 18:11 UTC by Toralf Förster
Modified: 2021-05-01 16:54 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.64 KB, text/plain)
2020-04-26 18:11 UTC, Toralf Förster
Details
app-benchmarks:siege-4.0.5:20200426-180742.log (app-benchmarks:siege-4.0.5:20200426-180742.log,21.99 KB, text/plain)
2020-04-26 18:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,62.96 KB, text/plain)
2020-04-26 18:11 UTC, Toralf Förster
Details
environment (environment,63.32 KB, text/plain)
2020-04-26 18:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.69 KB, application/x-bzip)
2020-04-26 18:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,11.49 KB, application/x-bzip)
2020-04-26 18:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.23 KB, application/x-bzip)
2020-04-26 18:11 UTC, Toralf Förster
Details
emerge --info (info,16.33 KB, text/plain)
2021-05-01 16:46 UTC, Marco Scardovi (scardracs)
Details
build.log (build.log,52.89 KB, text/x-log)
2021-05-01 16:51 UTC, Marco Scardovi (scardracs)
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-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