Skip to content

openssh: update to 10.3.P1#283

Merged
dscho merged 1 commit intomainfrom
openssh-10.3.P1
Apr 2, 2026
Merged

openssh: update to 10.3.P1#283
dscho merged 1 commit intomainfrom
openssh-10.3.P1

Conversation

@gitforwindowshelper
Copy link
Copy Markdown

@dscho dscho force-pushed the openssh-10.3.P1 branch from 974b8dc to 1cd60c6 Compare April 2, 2026 16:45
On the 32-bit MSYS2 runtime (3.3.x), the Cygwin C library exports
arc4random_stir() as a symbol in its import library (libmsys-2.0.a),
but the corresponding header (stdlib.h) does not declare it. Only
arc4random(), arc4random_buf(), and arc4random_uniform() are declared.

OpenSSH's configure script uses AC_CHECK_FUNCS to probe for
arc4random_stir. That macro provides its own prototype ("char
arc4random_stir();") for the link test, so the test succeeds on 32-bit.
Configure then defines HAVE_ARC4RANDOM_STIR, which suppresses the
no-op fallback macro in openbsd-compat/openbsd-compat.h and defines.h.
When entropy.c is later compiled, the call to arc4random_stir() at line
120 has no visible declaration, and GCC 15's
-Wimplicit-function-declaration (now an error by default) aborts the
build.

The 64-bit runtime (3.6.x) does not have this problem: its import
library was cleaned up to match the headers, dropping arc4random_stir
and arc4random_addrandom. So the configure link test fails on 64-bit,
HAVE_ARC4RANDOM_STIR stays undefined, and the no-op macro
("#define arc4random_stir()") activates correctly.

Work around this on i686 by passing ac_cv_func_arc4random_stir=no to
configure, which forces the same no-op macro path that the 64-bit build
takes naturally. The OpenSSH source itself documents arc4random_stir()
as a "noop on recent arc4random() implementations", so skipping the
actual call is the intended behavior.

Assisted-by: Claude Opus 4.6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the openssh-10.3.P1 branch from 1cd60c6 to 05dd09a Compare April 2, 2026 17:23
@dscho
Copy link
Copy Markdown
Member

dscho commented Apr 2, 2026

/deploy

The x86_64 and the i686 workflow runs were started.

@dscho dscho marked this pull request as ready for review April 2, 2026 18:10
@dscho dscho merged commit ce11894 into main Apr 2, 2026
5 checks passed
@dscho dscho deleted the openssh-10.3.P1 branch April 2, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New openssh version] V_10_3_P1

1 participant