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

Bug 829294

Summary: net-analyzer/rtpbreak-1.3a-r2 - queue.h: 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: maintainer-needed
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
net-analyzer:rtpbreak-1.3a-r2:20211215-200102.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-12-15 20:27:15 UTC
%  DEFS.................: 
%
x86_64-gentoo-linux-musl-gcc -c -DVERSION=\"1.3a\" -pipe -march=native -fno-diagnostics-color -O2  main.c
In file included from main.c:31:
queue.h:38:10: fatal error: sys/cdefs.h: No such file or directory
   38 | #include <sys/cdefs.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:15: all] Error 1

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.0 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Rust versions:
  [1]   rust-1.57.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

php cli:

  HEAD of ::gentoo
commit c9e73f8513e6f144bf4022ef6a9f21316951472a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Dec 15 19:06:42 2021 +0000

    2021-12-15 19:06:41 UTC

emerge -qpvO net-analyzer/rtpbreak
[ebuild  N    ] net-analyzer/rtpbreak-1.3a-r2
Comment 1 Toralf Förster gentoo-dev 2021-12-15 20:27:16 UTC
Created attachment 759241 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-15 20:27:18 UTC
Created attachment 759242 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-15 20:27:19 UTC
Created attachment 759243 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-15 20:27:20 UTC
Created attachment 759244 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-15 20:27:21 UTC
Created attachment 759245 [details]
net-analyzer:rtpbreak-1.3a-r2:20211215-200102.log
Comment 6 Toralf Förster gentoo-dev 2021-12-15 20:27:22 UTC
Created attachment 759246 [details]
temp.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-23 08:24:30 UTC
This one is harder because it relies on LIST_FOREACH_SAFE which isn't in the glibc queue.h, so we can't just use the system one / standalone-queue.
Comment 8 listout 2022-07-11 15:56:10 UTC
(In reply to Sam James from comment #7)
> This one is harder because it relies on LIST_FOREACH_SAFE which isn't in the
> glibc queue.h, so we can't just use the system one / standalone-queue.

Sam for this to work we might need our own headers. Mainly the sys-cdefs and sys-queue from BSD's [1]. Is feasible to add in our own headers.

[1]: https://github.com/openembedded/openembedded-core/tree/master/meta/recipes-core/musl/bsd-headers