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

Bug 712336

Summary: sys-fs/lvm2-2.03.14-r1 : daemon-server.c: error: F_SETFL undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: dev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-fs:lvm2-2.02.186-r2:20200313-013030.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-13 08:21:07 UTC
  250 |  if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK))
      |      ^~~~~
daemon-server.c:250:16: error: F_SETFL undeclared (first use in this function)
  250 |  if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | O_NONBLOCK))
      |                ^~~~~~~
daemon-server.c:250:16: 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 *



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) *





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 12 Mar 2020 23:38:53 +0000

emerge -qpvO sys-fs/lvm2
[ebuild  N    ] sys-fs/lvm2-2.02.186-r2  USE="readline thin udev -device-mapper-only -lvm2create_initrd -sanlock (-selinux) -static -static-libs (-systemd)"
Comment 1 Toralf Förster gentoo-dev 2020-03-13 08:21:10 UTC
Created attachment 618296 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-13 08:21:13 UTC
Created attachment 618298 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-13 08:21:16 UTC
Created attachment 618300 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-13 08:21:18 UTC
Created attachment 618302 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-13 08:21:22 UTC
Created attachment 618304 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-13 08:21:25 UTC
Created attachment 618306 [details]
sys-fs:lvm2-2.02.186-r2:20200313-013030.log
Comment 7 Toralf Förster gentoo-dev 2020-03-13 08:21:27 UTC
Created attachment 618308 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2020-03-16 16:12:31 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 Agostino Sarubbo gentoo-dev 2022-02-04 07:23:21 UTC
tinderbox_musl has reproduced this issue with version 2.03.14-r1 - Updating summary.
Comment 10 Leonard Gomez 2022-06-07 20:20:48 UTC
This is still happening on all the musl overlays.
Comment 11 Leonard Gomez 2022-06-07 20:33:35 UTC
(In reply to leg7 from comment #10)
> This is still happening on all the musl overlays.

The bug is actually fixed. It seems my musl overlay was corrupt or something. Redownloading it fixed the issue and confirmed that the overlay fixes this bug.
Comment 12 Larry the Git Cow gentoo-dev 2022-06-16 22:10:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=515ec4557c56cf0e82b95873056c40d8c6269694

commit 515ec4557c56cf0e82b95873056c40d8c6269694
Author:     Alfred Persson Forsberg <cat@catcream.org>
AuthorDate: 2022-06-16 22:03:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-16 22:10:26 +0000

    sys-fs/lvm2: fix building on musl
    
    A few changes to make lvm2 build on musl. Each patch file is commented
    in more detail, see those. The mallinfo patch should be looked back to.
    
    Closes: https://bugs.gentoo.org/712336
    Closes: https://bugs.gentoo.org/549506
    Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
    Closes: https://github.com/gentoo/gentoo/pull/25883
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/lvm2/files/lvm2-2.03.14-r1-add-fcntl.patch  | 24 ++++++++++++
 .../files/lvm2-2.03.14-r1-fopen-to-freopen.patch   | 43 ++++++++++++++++++++++
 sys-fs/lvm2/files/lvm2-2.03.14-r1-mallinfo.patch   | 18 +++++++++
 sys-fs/lvm2/lvm2-2.03.14-r1.ebuild                 |  3 ++
 4 files changed, 88 insertions(+)