[Bug 3497] New: setresuid configure check may need _GNU_SOURCE
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sun Nov 6 15:39:39 AEDT 2022
https://bugzilla.mindrot.org/show_bug.cgi?id=3497
Bug ID: 3497
Summary: setresuid configure check may need _GNU_SOURCE
Product: Portable OpenSSH
Version: 9.1p1
Hardware: 68k
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P5
Component: Build system
Assignee: unassigned-bugs at mindrot.org
Reporter: sam at gentoo.org
OpenSSH's configure check for setresuid omits _GNU_SOURCE which, on
Linux systems with glibc+gcc at least, is needed to expose setresuid.
```
error: call to undeclared function 'setresuid'; ISO C99 and later do
not support implicit function declarations
[-Wimplicit-function-declaration]
```
Reproduced on master of openssh-portable at
6b17e128879ec6cc32ca2c28b5d894b4aa72e32d but originally hit with
9.1_p1.
It's technically harmless, I think, as OpenSSH provides its own
implementation if the system's copy is nonexistent or unsuitable, but
it's at least noise when trying to find broader Clang 16 issues (see
https://lwn.net/Articles/913505/ etc).
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list