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

Bug 713384

Summary: dev-perl/Net-RawIP-0.250.0-r3 : RawIP.xs: fatal error: sys/cdefs.h: No such file or directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: perl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: cdefs.h, musl
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-perl:Net-RawIP-0.250.0-r2:20200318-233817.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-19 11:10:27 UTC
mv RawIP.xsc RawIP.c
x86_64-gentoo-linux-musl-gcc -c   -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe   -DVERSION=\0.25\ -DXS_VERSION=\0.25\ -fPIC -I/usr/lib/perl5/5.30.1/x86_64-linux/CORE  -D_LINUX_ -D_ETH_ -D_IFLIST_ -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 RawIP.c
RawIP.xs:31:10: fatal error: sys/cdefs.h: No such file or directory
   31 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

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

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

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

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.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO dev-perl/Net-RawIP
[ebuild  N    ] dev-perl/Net-RawIP-0.250.0-r2  USE="-examples"
Comment 1 Toralf Förster gentoo-dev 2020-03-19 11:10:30 UTC
Created attachment 622210 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 11:10:32 UTC
Created attachment 622212 [details]
dev-perl:Net-RawIP-0.250.0-r2:20200318-233817.log
Comment 3 Toralf Förster gentoo-dev 2020-03-19 11:10:35 UTC
Created attachment 622214 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-19 11:10:38 UTC
Created attachment 622216 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-19 11:10:41 UTC
Created attachment 622218 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-19 11:10:44 UTC
Created attachment 622220 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-19 11:18:58 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 8 Agostino Sarubbo gentoo-dev 2022-01-12 07:52:14 UTC
tinderbox_musl has reproduced this issue with version 0.250.0-r3 - Updating summary.