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

Bug 712586

Summary: media-sound/cdtool-2.1.8-r1 : commands.c: error: O_RDONLY undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: sound
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Missing fcntl.h?
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-sound:cdtool-2.1.8-r1:20200314-224602.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-14 22:55:53 UTC
      |               ^~~~
      |               popen
commands.c:59:27: error: O_RDONLY undeclared (first use in this function)
   59 |     if ((fd = open(cddev, O_RDONLY | O_NONBLOCK)) < 0) {
      |                           ^~~~~~~~
commands.c:59:27: note: each undeclared identifier is reported only once for each function it appears in

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

  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-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 14 Mar 2020 21:39:02 +0000
emerge -qpvO media-sound/cdtool
[ebuild  N    ] media-sound/cdtool-2.1.8-r1
Comment 1 Toralf Förster gentoo-dev 2020-03-14 22:55:55 UTC
Created attachment 619264 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 22:55:58 UTC
Created attachment 619266 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 22:56:01 UTC
Created attachment 619268 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 22:56:03 UTC
Created attachment 619270 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 22:56:06 UTC
Created attachment 619272 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-14 22:56:09 UTC
Created attachment 619274 [details]
media-sound:cdtool-2.1.8-r1:20200314-224602.log
Comment 7 Toralf Förster gentoo-dev 2020-03-14 22:56:12 UTC
Created attachment 619276 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-03-16 16:12:39 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 9 Michael 'veremitz' Everitt 2020-04-26 23:09:07 UTC
Likely an occurrence of missing #include <fcntl.h>.