Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907082 - sys-fs/mdadm-4.2-r1 - restripe.c: error: off64_t undeclared (first use in this function)
Summary: sys-fs/mdadm-4.2-r1 - restripe.c: error: off64_t undeclared (first use in thi...
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:
Keywords:
Depends on:
Blocks: musl-1.2.4
  Show dependency tree
 
Reported: 2023-05-24 17:51 UTC by Toralf Förster
Modified: 2024-04-28 11:16 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.64 KB, text/plain)
2023-05-24 17:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,228.42 KB, text/plain)
2023-05-24 17:51 UTC, Toralf Förster
Details
environment (environment,88.40 KB, text/plain)
2023-05-24 17:51 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,707 bytes, application/x-bzip)
2023-05-24 17:51 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,18.18 KB, application/x-bzip)
2023-05-24 17:51 UTC, Toralf Förster
Details
sys-fs:mdadm-4.2-r1:20230523-224206.log (sys-fs:mdadm-4.2-r1:20230523-224206.log,14.66 KB, text/plain)
2023-05-24 17:51 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.78 KB, application/x-bzip)
2023-05-24 17:51 UTC, Toralf Förster
Details
lfs64.patch (from Alpine Linux) (lfs64.patch,21.75 KB, patch)
2023-10-16 17:39 UTC, ernsteiswuerfel
Details | Diff
off64_t fix for musl (mdadm-4.2-musl.patch,403 bytes, patch)
2023-11-05 19:55 UTC, Sven E.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-05-24 17:51:27 UTC
too long lines were shrinked:

x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -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/mdadm/failed-
x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -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/mdadm/failed-
x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -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/mdadm/failed-
x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -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/mdadm/failed-
x86_64-gentoo-linux-musl-gcc -Wall -O2 -pipe -march=native -fno-diagnostics-color -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/mdadm/failed-
restripe.c: In function 'restore_stripes':
restripe.c:758:43: error: 'off64_t' undeclared (first use in this function); did you mean 'off_t'?
  758 |                                          (off64_t)read_offset) {
      |                                           ^~~~~~~

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-13 *
clang/llvm (if any):
clang version 16.0.4
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.4
Python 3.11.3
Available Ruby profiles:
  [1]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.69.0 *
php cli (if any):
go version go1.20.4 linux/amd64

  HEAD of ::gentoo
commit 40dbd3b3dbb7503f02986009a2b619f3ecb084af
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue May 23 21:32:01 2023 +0000

    2023-05-23 21:32:00 UTC

emerge -qpvO sys-fs/mdadm
[ebuild  N    ] sys-fs/mdadm-4.2-r1  USE="udev -static (-systemd)"
Comment 1 Toralf Förster gentoo-dev 2023-05-24 17:51:28 UTC
Created attachment 862384 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-05-24 17:51:29 UTC
Created attachment 862385 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-05-24 17:51:31 UTC
Created attachment 862386 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-05-24 17:51:31 UTC
Created attachment 862387 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-05-24 17:51:32 UTC
Created attachment 862388 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-05-24 17:51:33 UTC
Created attachment 862389 [details]
sys-fs:mdadm-4.2-r1:20230523-224206.log
Comment 7 Toralf Förster gentoo-dev 2023-05-24 17:51:34 UTC
Created attachment 862390 [details]
temp.tar.bz2
Comment 8 ernsteiswuerfel archtester 2023-10-16 17:39:57 UTC
Created attachment 872995 [details, diff]
lfs64.patch (from Alpine Linux)

The patch taken from Alpine Linux fixes the issue.
https://git.alpinelinux.org/aports/tree/main/mdadm/lfs64.patch
Comment 9 Sven E. 2023-11-05 19:55:53 UTC
Created attachment 874140 [details, diff]
off64_t fix for musl

Alternate fix using different FTM
Comment 10 Sven E. 2023-11-05 19:57:40 UTC
I'm not sure which impact resorting to off_t exactly has, esp. on non 64-Bit systems.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 19:57:58 UTC
(In reply to Sven E. from comment #9)
> Created attachment 874140 [details, diff] [details, diff]
> off64_t fix for musl
> 
> Alternate fix using different FTM

As per the tracker, that is not a valid fix and will break with the next musl release.
Comment 12 Larry the Git Cow gentoo-dev 2024-03-03 16:50:45 UTC
The bug has been referenced in the following commit(s):

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

commit 5dd1d90f9d2e064ed0c85043264f09734a6a842a
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-03-03 16:50:12 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-03-03 16:50:12 +0000

    sys-fs/mdadm: Apply musl-1.2.4 largefile workaround
    
    Bug: https://bugs.gentoo.org/907082
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-fs/mdadm/mdadm-4.2-r2.ebuild | 5 ++++-
 sys-fs/mdadm/mdadm-4.2-r3.ebuild | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)