Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887259 - sys-fs/lvm2-2.03.17-r1 error: 'LOCK_EX' undeclared (first use in this function) (musl amd64)
Summary: sys-fs/lvm2-2.03.17-r1 error: 'LOCK_EX' undeclared (first use in this functio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-12-19 20:05 UTC by David Duchesne
Modified: 2022-12-22 03:12 UTC (History)
1 user (show)

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


Attachments
sys-fs-lvm2-2.03.17-r1 (musl amd64) (sys-fs-lvm2-2.03.17-r1-20221219-195320.log,97.92 KB, text/x-log)
2022-12-19 20:06 UTC, David Duchesne
Details
add missing include of sys/file.h (0001-Add-missing-include-for-LOCK_EX.patch,667 bytes, patch)
2022-12-20 14:18 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Duchesne 2022-12-19 20:05:43 UTC
Compile failure on musl amd64.
See log attached.

Reproducible: Always




Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.0/musl/hardened, gcc-12, musl-1.2.3, 5.15.80-gentoo-hardened x86_64)
=================================================================
System uname: Linux-5.15.80-gentoo-hardened-x86_64-AMD_A10-6800K_APU_with_Radeon-tm-_HD_Graphics-with-libc
KiB Mem:    32351232 total,  24362476 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Mon, 19 Dec 2022 19:30:01 +0000
Head commit of repository gentoo: 7eef9321e7b7e00d219f58340726f903f4fab15f
Timestamp of repository musl: Wed, 14 Dec 2022 10:32:35 +0000
Head commit of repository musl: 549b8e0d93fe6f69dd620e3719ac1bfd2927864b

Timestamp of repository mv: Wed, 14 Dec 2022 22:16:54 +0000
Head commit of repository mv: 6690ae83323e737f49e4b2c4bdfbfe645e98310b

Head commit of repository xfceclassic: d0fb6a84e27039e76420d6416d1d802a55b80911

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9::gentoo
dev-lang/rust:             1.65.0::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.3::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.6::gentoo
sys-devel/gcc:             12.2.1_p20221203::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            15.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/musl:             1.2.3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

musl
    location: /var/db/repos/musl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/musl.git
    masters: gentoo

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo

xfceclassic
    location: /var/db/repos/xfceclassic
    sync-type: git
    sync-uri: https://github.com/Xfce-Classic/gentoo-overlay
    masters: gentoo

Installed sets: @dbuspkg, @fonts, @games, @librsvg, @phone, @themes, @vm, @wm
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /usr/bin/startx /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer /usr/share/thumbnailers/imagemagick-pdf.thumbnailer"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--usepkg --binpkg-respect-use=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=core2 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=core2 -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/sysctl.d/               /etc/systemd/               /lib/systemd/               /usr/lib/sysctl.d/               /usr/lib/systemd/               /run/systemd/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fr"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi aio alsa amd64 bzip2 cairo cdda cdr cli crypt cryptsetup cups dbus device-mapper dri dts dvd elogind encode exif fam fftw flac fortran gif gnat_2021 gpm graphite gtk hardened iconv icu ipv6 jpeg libglvnd libnotify libtirpc lto lvm lz4 lzma lzo mad mp3 mp4 ncurses nfs nls nptl ogg opengl openmp openssl opus pam pango pcre pdf pgo pie png policykit readline sdl seccomp sftp split-usr ssh ssl ssp startup-notification svg system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-jsoncpp system-lcms system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-png system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib sytem-leveldb test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis webp wxwidgets x264 xattr xcb xml xtpax xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 David Duchesne 2022-12-19 20:06:37 UTC
Created attachment 843879 [details]
sys-fs-lvm2-2.03.17-r1 (musl amd64)
Comment 2 Jory A. Pratt gentoo-dev 2022-12-20 14:18:50 UTC
Created attachment 844155 [details, diff]
add missing include of sys/file.h
Comment 3 Larry the Git Cow gentoo-dev 2022-12-22 03:12:20 UTC
The bug has been closed via the following commit(s):

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

commit cbd2c8fc7512b60176979181780468d3de852e1a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-22 03:11:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-22 03:11:56 +0000

    sys-fs/lvm2: fix musl build
    
    Closes: https://bugs.gentoo.org/887259
    Thanks-to: Jory A. Pratt <anarchy@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/lvm2/files/lvm2-2.03.17-musl-LOCK_EX.patch | 20 ++++++++++++++++++++
 sys-fs/lvm2/lvm2-2.03.17-r1.ebuild                |  1 +
 2 files changed, 21 insertions(+)