Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829294 - net-analyzer/rtpbreak-1.3a-r2 - queue.h: fatal error: sys/cdefs.h: No such file or directory
Summary: net-analyzer/rtpbreak-1.3a-r2 - queue.h: fatal error: sys/cdefs.h: No such fi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-15 20:27 UTC by Toralf Förster
Modified: 2022-07-11 15:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.43 KB, text/plain)
2021-12-15 20:27 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,73.31 KB, text/plain)
2021-12-15 20:27 UTC, Toralf Förster
Details
environment (environment,54.35 KB, text/plain)
2021-12-15 20:27 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.01 KB, application/x-bzip)
2021-12-15 20:27 UTC, Toralf Förster
Details
net-analyzer:rtpbreak-1.3a-r2:20211215-200102.log (net-analyzer:rtpbreak-1.3a-r2:20211215-200102.log,2.64 KB, text/plain)
2021-12-15 20:27 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,14.14 KB, application/x-bzip)
2021-12-15 20:27 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 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 Brahmajit Das 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