Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79449 - [fuse2] FTBFS

Attached to Project: Arch Linux
Opened by Levi Zim (kxxt) - Wednesday, 23 August 2023, 06:51 GMT
Last edited by Jelle van der Waa (jelly) - Wednesday, 30 August 2023, 11:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

A glibc change added closefrom to unistd.h[1], which causes a collision with closefrom function in ulockmgr_server.c.
I attached a fix that rename the closefrom function in ulockmgr_server.c to closefrom_ to avoid the collision.
Another possible solution could be removing closefrom function from ulockmgr_server.c and using the one from unistd.h.

1: https://github.com/bminor/glibc/commit/607449506f197cc9514408908f41f22537a47a8c

ulockmgr_server.c:127:12: error: conflicting types for ‘closefrom’; have ‘int(int)’
127 | static int closefrom(int minfd)
| ^~~~~~~~~
In file included from ulockmgr_server.c:14:
/usr/include/unistd.h:363:13: note: previous declaration of ‘closefrom’ with type ‘void(int)’
363 | extern void closefrom (int __lowfd) __THROW;
| ^~~~~~~~~
ulockmgr_server.c: In function ‘main’:
ulockmgr_server.c:371:16: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
371 | (void) chdir("/");
| ^~~~~~~~~~
make[2]: *** [Makefile:500: ulockmgr_server-ulockmgr_server.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/fuse2/src/fuse-2.9.9/util'
make[1]: *** [Makefile:335: all] Error 2
make[1]: Leaving directory '/build/fuse2/src/fuse-2.9.9/util'
make: *** [Makefile:450: all-recursive] Error 1


Additional info:
* package version(s) 2.9.9-4
* patch attached.
This task depends upon

Closed by  Jelle van der Waa (jelly)
Wednesday, 30 August 2023, 11:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in git.
Comment by loqs (loqs) - Wednesday, 23 August 2023, 11:43 GMT Comment by Toolybird (Toolybird) - Wednesday, 23 August 2023, 22:18 GMT
Yeah, the Gentoo patch was applied upstream on the "fuse_2_9_bugfix" branch [1]

[1] https://github.com/libfuse/libfuse/commit/5a43d0f724c56f8836f3f92411e0de1b5f82db32
Comment by loqs (loqs) - Wednesday, 23 August 2023, 22:52 GMT
> Yeah, the Gentoo patch was applied upstream on the "fuse_2_9_bugfix" branch
I checked the fuse-2_9_bugfix branch [1] which does not have the patch and missed there being such a similarly named branch [2].

[1] https://github.com/libfuse/libfuse/commits/fuse-2_9_bugfix
[2] https://github.com/libfuse/libfuse/commits/fuse_2_9_bugfix

Loading...