Bug 1984776

Summary: fuse: FTBFS due to closefrom identifier (glibc 2.34 related)
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: fuseAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwd, lemenkov, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: fuse-2.9.9-13.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 19:54:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1984778    

Description Florian Weimer 2021-07-22 08:30:06 UTC
glibc 2.34 introduces the closefrom function from Solaris (and BSD), but this conflicts with the use of the closefrom identifier in fuse:

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)'

The function probably needs to be removed. Later upstream versions do not have the file anymore.

Comment 1 Peter Lemenkov 2021-07-27 19:54:42 UTC
Fixed in fuse-2.9.9-13.fc35