debcrafters-packages team mailing list archive
-
debcrafters-packages team
-
Mailing list archive
-
Message #06744
[Bug 2122270] Re: FTFBS: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’
** Changed in: nfs-utils (Ubuntu)
Assignee: (unassigned) => Heinrich Schuchardt (xypron)
** Changed in: nfs-utils (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/2122270
Title:
FTFBS: ignoring return value of ‘lockf’ declared with attribute
‘warn_unused_result’
Status in nfs-utils package in Ubuntu:
Confirmed
Bug description:
As shown in build log
https://launchpadlibrarian.net/815962367/buildlog_ubuntu-questing-riscv64.nfs-utils_1%3A2.8.3-1ubuntu2_BUILDING.txt.gz
the package fails to build from source:
exportfs.c: In function ‘release_lockfile’:
exportfs.c:83:17: error: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
83 | lockf(_lockfd, F_ULOCK, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
exportfs.c: In function ‘grab_lockfile’:
exportfs.c:77:17: error: ignoring return value of ‘lockf’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result]
77 | lockf(_lockfd, F_LOCK, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
An upstream patch is available:
Fix build with glibc-2.42
https://git.linux-nfs.org/?p=steved/nfs-utils.git;a=commit;h=9f974046c37b7c28705d5558328759fff708b1cb
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/2122270/+subscriptions
References