Bug 218540 - nfs-utils fail to compile on armhf due to time_t transitioning to 64bit in Debian
Summary: nfs-utils fail to compile on armhf due to time_t transitioning to 64bit in De...
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: NFS (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: Trond Myklebust
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-28 22:02 UTC by Vladimir Petko
Modified: 2024-04-06 19:29 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
patch the issue by the explicit cast to long long int (715 bytes, patch)
2024-02-29 04:03 UTC, Vladimir Petko
Details | Diff

Description Vladimir Petko 2024-02-28 22:02:43 UTC
I apologise if I am submitting it to a wrong bug tracker. 

nfs-utils fail to compile on armhf due to time_t transition due to -Werror=format when building:

export-cache.c: In function ‘junction_flush_exports_cache’:
export-cache.c:110:51: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘time_t’ {aka ‘long long int’} [-Werror=format=]
  110 | snprintf(flushtime, sizeof(flushtime), "%ld\n", now);
      | ~~^ ~~~
      | | |
      | | time_t {aka long long int}
      | long int
      | %lld

see[1]


[1] https://launchpadlibrarian.net/716561911/buildlog_ubuntu-noble-armhf.nfs-utils_1%3A2.6.4-3ubuntu1_BUILDING.txt.gz
Comment 1 Vladimir Petko 2024-02-29 04:03:17 UTC
Created attachment 305927 [details]
patch the issue by the explicit cast to long long int
Comment 2 Salvatore Bonaccorso 2024-04-06 19:29:12 UTC
Posted to the linux-nfs list: https://lore.kernel.org/linux-nfs/ZhGfUpXclZeoZ_az@eldamar.lan/

Note You need to log in before you can comment on or make changes to this bug.