net-misc/openssh generates warning implicit declaration of function 'fnmatch' while compiling. Due to openssh-8.3_p1-sha2-include.patch, `-I$(srcdir)/openbsd-compat` argument is added to the compiler, which makes scp.c includes $(srcdir)/openbsd-compat/fnmatch.h instead of /usr/include/fnmatch.h. Reproducible: Always Steps to Reproduce: 1. emerge openssh 2. 3. Actual Results: Compiled successfully, with warning: implicit declaration of function 'fnmatch' is invalid in C99 [-Wimplicit-function-declaration] Expected Results: Compiled successfully without warning. Please consider remove patch openssh-8.3_p1-sha2-include.patch
(In reply to Gamcheong Yuen from comment #0) > net-misc/openssh generates warning implicit declaration of function > 'fnmatch' while compiling. > > Due to openssh-8.3_p1-sha2-include.patch, `-I$(srcdir)/openbsd-compat` > argument is added to the compiler, which makes scp.c includes > $(srcdir)/openbsd-compat/fnmatch.h instead of /usr/include/fnmatch.h. > > Reproducible: Always > > Steps to Reproduce: > 1. emerge openssh > 2. > 3. > Actual Results: > Compiled successfully, with warning: implicit declaration of function > 'fnmatch' is invalid in C99 [-Wimplicit-function-declaration] > > Expected Results: > Compiled successfully without warning. > > Please consider remove patch openssh-8.3_p1-sha2-include.patch Or consider use another way to include sha2.h for SHA2 support.
This patch is gone.