Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712336 - sys-fs/lvm2-2.03.14-r1 : daemon-server.c: error: F_SETFL undeclared (first use in this function)
Summary: sys-fs/lvm2-2.03.14-r1 : daemon-server.c: error: F_SETFL undeclared (first us...
Status: RESOLVED FIXED
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-13 08:21 UTC by Toralf Förster
Modified: 2022-06-16 22:10 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.49 KB, text/plain)
2020-03-13 08:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,16.47 KB, text/plain)
2020-03-13 08:21 UTC, Toralf Förster
Details
environment (environment,113.92 KB, text/plain)
2020-03-13 08:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.63 KB, application/x-bzip)
2020-03-13 08:21 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,16.28 KB, application/x-bzip)
2020-03-13 08:21 UTC, Toralf Förster
Details
sys-fs:lvm2-2.02.186-r2:20200313-013030.log (sys-fs:lvm2-2.02.186-r2:20200313-013030.log,54.05 KB, text/plain)
2020-03-13 08:21 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.67 KB, application/x-bzip)
2020-03-13 08:21 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-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(+)