Public bug reported:

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

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
     Assignee: Heinrich Schuchardt (xypron)
         Status: Confirmed


** Tags: ftbfs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2122270

Title:
  FTFBS: ignoring return value of ‘lockf’ declared with attribute
  ‘warn_unused_result’

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/2122270/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to