Created attachment 2233 [details] wraps call to endgrent with HAVE_ENDGRENT and checks for function in configure.ac Android does not provide the endgrent() function, leading to the following compilation error: session.c:1502:20: warning: implicit declaration of function 'endgrent' The attached patch adds endgrent to the list of functions that configure.ac checks for and wraps the call to endgrent() in session.c with a #ifdef / #endif.
Created attachment 2234 [details] add an empty endgrent in compat library #ifdefs in the main codebase are an ongoing maintenance burden, since they cause diffs from openbsd's ssh to no longer apply, so we try to avoid this when possible. instead, I'd put a no-op implementation of endgrent in the compat library. I think this patch should work (can you confirm)?
I have applied your patch and can confirm that it eliminates the error.
Thanks. We'll put it on the list for the 6.3 release.
Patch applied, will be in 6.3p1. Thanks.
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1