Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712872 - net-misc/bsdwhois-1.43.2.1 : whois.c: fatal error: sys/cdefs.h: No such file or directory
Summary: net-misc/bsdwhois-1.43.2.1 : whois.c: fatal error: sys/cdefs.h: No such file ...
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: cdefs.h
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-16 13:31 UTC by Toralf Förster
Modified: 2020-09-13 04:41 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.91 KB, text/plain)
2020-03-16 13:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,179.55 KB, text/plain)
2020-03-16 13:31 UTC, Toralf Förster
Details
environment (environment,9.50 KB, text/plain)
2020-03-16 13:31 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.42 KB, application/x-bzip)
2020-03-16 13:31 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.20 KB, application/x-bzip)
2020-03-16 13:31 UTC, Toralf Förster
Details
net-misc:bsdwhois-1.43.2.1:20200316-093841.log (net-misc:bsdwhois-1.43.2.1:20200316-093841.log,4.76 KB, text/plain)
2020-03-16 13:31 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,4.82 KB, application/x-bzip)
2020-03-16 13:31 UTC, Toralf Förster
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-03-16 13:31:00 UTC
make[1]: Entering directory /var/tmp/portage/net-misc/bsdwhois-1.43.2.1/work/bsdwhois-1.43.2.1
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c whois.c
whois.c:46:10: fatal error: sys/cdefs.h: No such file or directory
   46 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200311-204810

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] 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-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 16 Mar 2020 08:16:29 +0000
emerge -qpvO net-misc/bsdwhois
[ebuild  N    ] net-misc/bsdwhois-1.43.2.1
Comment 1 Toralf Förster gentoo-dev 2020-03-16 13:31:02 UTC
Created attachment 620538 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-16 13:31:05 UTC
Created attachment 620540 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-16 13:31:08 UTC
Created attachment 620542 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-16 13:31:11 UTC
Created attachment 620544 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-16 13:31:14 UTC
Created attachment 620546 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-16 13:31:17 UTC
Created attachment 620548 [details]
net-misc:bsdwhois-1.43.2.1:20200316-093841.log
Comment 7 Toralf Förster gentoo-dev 2020-03-16 13:31:20 UTC
Created attachment 620550 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-16 14:12:00 UTC
musl upstream has a FAQ entry specifically for this error:
https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E

We will need to check/report upstream and patch affected code temporarily.
Comment 9 Toralf Förster gentoo-dev 2020-03-16 16:12:16 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.
Comment 10 Larry the Git Cow gentoo-dev 2020-09-13 04:41:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae9855f9d9a1fae1fa77a0fbe1af10881480f90a

commit ae9855f9d9a1fae1fa77a0fbe1af10881480f90a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-09-13 04:41:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-13 04:41:31 +0000

    net-misc/bsdwhois: bump to EAPI 7
    
    Closes: https://bugs.gentoo.org/742128
    Closes: https://bugs.gentoo.org/712872
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/bsdwhois/bsdwhois-1.43.2.1.ebuild                 | 10 +++++++---
 net-misc/bsdwhois/files/bsdwhois-1.43.2.1-musl-cdefs.patch | 12 ++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)