Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949819 - sys-fs/exfatprogs-1.2.7 doesn't build on musl/llvm: error: unknown type name 'loff_t'; did you mean 'off_t'
Summary: sys-fs/exfatprogs-1.2.7 doesn't build on musl/llvm: error: unknown type name ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-15 20:46 UTC by Spekadyon
Modified: 2025-03-07 22:52 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.log,7.10 KB, text/x-log)
2025-02-15 20:47 UTC, Spekadyon
Details
build.log (build.log,10.03 KB, text/x-log)
2025-02-15 20:48 UTC, Spekadyon
Details
Fix compilation on musl/llvm (fix_musl_loff_t.patch,532 bytes, patch)
2025-02-15 20:54 UTC, Spekadyon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spekadyon 2025-02-15 20:46:59 UTC
sys-fs/exfatprogs-1.2.7 fails to build on a musl/llvm profile. The compilation ends with the following message:

> fsck.c:1086:32: error: unknown type name 'loff_t'; did you mean 'off_t'?
> 1086 |                 struct exfat_dentry *dentry, loff_t dentry_off)
>      |                                              ^~~~~~
>      |                                              off_t


Reproducible: Always

Steps to Reproduce:
1. emerge -1 =sys-fs/exfatprogs-1.2.7
Comment 1 Spekadyon 2025-02-15 20:47:55 UTC
Created attachment 919010 [details]
emerge --info
Comment 2 Spekadyon 2025-02-15 20:48:34 UTC
Created attachment 919011 [details]
build.log
Comment 3 Spekadyon 2025-02-15 20:53:54 UTC
In musl, the loff_t type is defined in fcntl.h, if _GNU_SOURCE is defined. The attached patch solves the issue. I haven't tested the patch on other profiles though.
Comment 4 Spekadyon 2025-02-15 20:54:53 UTC
Created attachment 919012 [details, diff]
Fix compilation on musl/llvm
Comment 5 Mike Gilbert gentoo-dev 2025-02-16 02:57:41 UTC
Please create an issue upstream.

https://github.com/exfatprogs/exfatprogs/issues
Comment 6 Spekadyon 2025-02-16 13:13:40 UTC
Done: https://github.com/exfatprogs/exfatprogs/issues/294

After looking at exfatprogs code, the patch I posted yesterday doesn't seem to be the proper fix to the issue. I'm waiting on the maintainers output.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-07 21:26:22 UTC
Thank you! Please let upstream know on the bug if the patch works for you.
Comment 8 Larry the Git Cow gentoo-dev 2025-03-07 22:52:17 UTC
The bug has been closed via the following commit(s):

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

commit 655a4215843f8a82e4442189abbd5b9e3692f08d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-07 21:26:45 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-07 22:51:45 +0000

    sys-fs/exfatprogs: add 1.2.8
    
    Closes: https://bugs.gentoo.org/949819
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/exfatprogs/Manifest                |  1 +
 sys-fs/exfatprogs/exfatprogs-1.2.8.ebuild | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)