Created attachment 3659 [details] the output Fail to build OpenSSH since this commit 195313dfe10a23c82e9d56d5fdd2f59beee1bdcf (harden Linux seccomp sandbox) OS: RHEL 7 / CentOS 7 Please check the attachment.
Are MADV_FREE or MADV_WIPEONFORK declared in any header or are they just not present on this platform?
Created attachment 3660 [details] Check if each arg to madvise is defined before attempting to use them If they're not defined then please try this patch.
(In reply to Darren Tucker from comment #1) > Are MADV_FREE or MADV_WIPEONFORK declared in any header or are they > just not present on this platform? I found MADV_FREE and MADV_WIPEONFORK in /usr/include/asm-generic/mman.h , which included by /usr/include/asm/mman.h . And these 2 files are provided by kernel-headers-5.15.92-1.el7.x86_64 .
Created attachment 3661 [details] still failed
I have tried the patch, still failed.
Comment on attachment 3660 [details] Check if each arg to madvise is defined before attempting to use them We might need to do something similar for the futex flags if people are building on older linux too
Created attachment 3662 [details] compatibility for mmap flags Please try this patch in addition to Darren's
Created attachment 3668 [details] This patch worked.
Thanks for the report and confirming the fix. Patch applied and will be in the 9.3p1 release.
OpenSSH 9.3 has been released. Close resolved bugs