Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717080 - dev-perl/perl-headers-0.0.2 : specs/.../select.c: error: _fd_mask undeclared (first use in this function)
Summary: dev-perl/perl-headers-0.0.2 : specs/.../select.c: error: _fd_mask undeclared ...
Status: CONFIRMED
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: musl
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-11 13:23 UTC by Toralf Förster
Modified: 2022-01-12 22:49 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.40 KB, text/plain)
2020-04-11 13:23 UTC, Toralf Förster
Details
dev-perl:perl-headers-0.0.1:20200411-132124.log (dev-perl:perl-headers-0.0.1:20200411-132124.log,2.62 KB, text/plain)
2020-04-11 13:23 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,440.83 KB, text/plain)
2020-04-11 13:23 UTC, Toralf Förster
Details
environment (environment,102.35 KB, text/plain)
2020-04-11 13:23 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,30.73 KB, application/x-bzip)
2020-04-11 13:23 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.86 KB, application/x-bzip)
2020-04-11 13:23 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-04-11 13:23:26 UTC
cc -O2 -pipe -march=native  -DSIZEOF_WARNING=1 specs/sys/select.c -o bin/sys/select
specs/sys/select.c: In function main:
specs/sys/select.c:6:54: error: __fd_mask undeclared (first use in this function); did you mean fd_mask?
    6 |   printf($sizeof{ &__fd_mask } = 0x%lx;\n,  sizeof(__fd_mask));
      |                                                      ^~~~~~~~~
      |                                                      fd_mask

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

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

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

  Please see the tracker bug for details.

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.42.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr 11 12:44:28 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO dev-perl/perl-headers
[ebuild  N    ] dev-perl/perl-headers-0.0.1  USE="debug sizeof-warning"
Comment 1 Toralf Förster gentoo-dev 2020-04-11 13:23:28 UTC
Created attachment 632242 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-11 13:23:31 UTC
Created attachment 632244 [details]
dev-perl:perl-headers-0.0.1:20200411-132124.log
Comment 3 Toralf Förster gentoo-dev 2020-04-11 13:23:34 UTC
Created attachment 632246 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-11 13:23:37 UTC
Created attachment 632248 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-11 13:23:40 UTC
Created attachment 632250 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-11 13:23:42 UTC
Created attachment 632252 [details]
temp.tbz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-11 13:48:54 UTC
May need
#include <sys/select.h>
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2021-10-23 17:11:15 UTC
(In reply to Sam James from comment #7)
> May need
> #include <sys/select.h>

No, that one is actually included. Sounds more like sys/select.h does not
provide the definition on musl.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2021-10-23 17:17:50 UTC
(In reply to Andreas K. Hüttel from comment #8)
> (In reply to Sam James from comment #7)
> > May need
> > #include <sys/select.h>
> 
> No, that one is actually included. Sounds more like sys/select.h does not
> provide the definition on musl.

Yep. musl only provides fd_mask, not __fd_mask
Comment 10 Agostino Sarubbo gentoo-dev 2022-01-12 22:49:23 UTC
tinderbox_musl has reproduced this issue with version 0.0.2 - Updating summary.