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

Bug 928588

Summary: sys-fs/mdadm-4.3 - util.c: error: NAME_MAX 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: base-system
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.xz
qlist-info.txt
sys-fs:mdadm-4.3:20240404-091427.log
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-04-04 16:05:35 UTC
too long lines were shrinked:

x86_64-pc-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DNO_LIBUDEV -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdad
x86_64-pc-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DNO_LIBUDEV -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdad
x86_64-pc-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DNO_LIBUDEV -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdad
x86_64-pc-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DNO_LIBUDEV -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdad
x86_64-pc-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -DNO_LIBUDEV -DSendmail=\""/usr/sbin/sendmail -t"\" -DCONFFILE=\"/etc/mdadm.conf\" -DCONFFILE2=\"/etc/mdadm/mdadm.conf\" -DMAP_DIR=\"/run/mdadm\" -DMAP_FILE=\"map\" -DMDMON_DIR=\"/run/mdadm\" -DFAILED_SLOTS_DIR=\"/run/mdad
util.c: In function 'get_md_name':
util.c:1031:29: error: 'NAME_MAX' undeclared (first use in this function); did you mean 'MD_NAME_MAX'?
 1031 |         static char devname[NAME_MAX];
      |                             ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl-20240403-202925

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

gcc-config -l:
 [1] x86_64-pc-linux-musl-13 *
clang/llvm (if any):
/usr/lib/llvm/18
18.1.2
Python 3.11.8
Available Rust versions:
  [1]   rust-bin-1.77.1 *
php cli (if any):

  HEAD of ::gentoo
commit 76c1668f45b1f1bb16cf8fa26dde2237a9798d3a
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Apr 4 09:04:01 2024 +0000

    2024-04-04 09:04:01 UTC

emerge -qpvO sys-fs/mdadm
[ebuild  N    ] sys-fs/mdadm-4.3  USE="-corosync -static (-systemd) -udev"
Comment 1 Toralf Förster gentoo-dev 2024-04-04 16:05:35 UTC
Created attachment 889424 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-04 16:05:36 UTC
Created attachment 889425 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-04-04 16:05:38 UTC
Created attachment 889426 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-04-04 16:05:38 UTC
Created attachment 889427 [details]
etc.portage.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-04-04 16:05:39 UTC
Created attachment 889428 [details]
qlist-info.txt
Comment 6 Toralf Förster gentoo-dev 2024-04-04 16:05:40 UTC
Created attachment 889429 [details]
sys-fs:mdadm-4.3:20240404-091427.log
Comment 7 Toralf Förster gentoo-dev 2024-04-04 16:05:41 UTC
Created attachment 889430 [details]
temp.tar.xz