Bug#1138484: openssh-ssh1: FTBFS with openssl 4.0

Sebastian Andrzej Siewior <[email protected]> Sat, 30 May 2026 18:23:26 +0200
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <20260530162326.YYGAwpvm__15920.4958983295$1780158283$gmane$org@breakpoint.cc>
Package: openssh-ssh1
Version: 1:7.5p1-18
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: [email protected]
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:
|=20
| gcc -g -O2 -Werror=3Dimplicit-function-declaration -ffile-prefix-map=3D/b=
uild/reproducible-path/openssh-ssh1-7.5p1=3D. -fstack-protector-strong -fst=
ack-clash-protection -Wformat -Werror=3Dformat-security -fcf-protection -Wa=
ll -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeo=
f-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -fno-strict-aliasi=
ng -D_FORTIFY_SOURCE=3D2 -ftrapv -fno-builtin-memset -fstack-protector-stro=
ng -Wdate-time -D_FORTIFY_SOURCE=3D2 -g -O2 -Werror=3Dimplicit-function-dec=
laration -ffile-prefix-map=3D/build/reproducible-path/openssh-ssh1-7.5p1=3D=
=2E -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=3Dfo=
rmat-security -fcf-protection -DSSH_EXTRAVERSION=3D\"Debian-18\"  -I. -I../=
=2E. -Wdate-time -D_FORTIFY_SOURCE=3D2 -D_XOPEN_SOURCE=3D600 -D_BSD_SOURCE =
-D_DEFAULT_SOURCE -DSSHDIR=3D\"/etc/ssh\" -D_PATH_SSH_PROGRAM=3D\"/usr/bin/=
ssh1\" -D_PATH_SSH_ASKPASS_DEFAULT=3D\"/usr/bin/ssh-askpass\" -D_PATH_SFTP_=
SERVER=3D\"/usr/lib/openssh/sftp-server\" -D_PATH_SSH_KEY_SIGN=3D\"/usr/lib=
/openssh/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=3D\"/usr/lib/openssh/ssh-p=
kcs11-helper\" -D_PATH_SSH_PIDDIR=3D\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=
=3D\"/var/empty\" -DHAVE_CONFIG_H -c ../../cipher-bf1.c -o cipher-bf1.o
| ../../cipher-bf1.c: In function =C3=A2=E2=82=AC=CB=9Cevp_ssh1_bf=C3=A2=E2=
=82=AC=E2=84=A2:
| ../../cipher-bf1.c:94:19: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_get_do_cipher=C3=A2=E2=82=AC=E2=84=A2; did y=
ou mean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_get1_cipher=C3=A2=E2=82=AC=E2=
=84=A2? [-Wimplicit-function-declaration]
|    94 |         orig_bf =3D EVP_CIPHER_meth_get_do_cipher(EVP_bf_cbc());
|       |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                   EVP_CIPHER_CTX_get1_cipher
| ../../cipher-bf1.c:94:17: error: assignment to =C3=A2=E2=82=AC=CB=9Cint (=
*)(EVP_CIPHER_CTX *, u_char *, const u_char *, size_t)=C3=A2=E2=82=AC=E2=84=
=A2 {aka =C3=A2=E2=82=AC=CB=9Cint (*)(struct evp_cipher_ctx_st *, unsigned =
char *, const unsigned char *, long unsigned int)=C3=A2=E2=82=AC=E2=84=A2} =
=66rom =C3=A2=E2=82=AC=CB=9Cint=C3=A2=E2=82=AC=E2=84=A2 makes pointer from =
integer without a cast [-Wint-conversion]
|    94 |         orig_bf =3D EVP_CIPHER_meth_get_do_cipher(EVP_bf_cbc());
|       |                 ^
| ../../cipher-bf1.c:96:19: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_new=C3=A2=E2=82=AC=E2=84=A2; did you mean =
=C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_new=C3=A2=E2=82=AC=E2=84=A2? [-Wimplici=
t-function-declaration]
|    96 |         ssh1_bf =3D EVP_CIPHER_meth_new(NID_undef, 8, 32);
|       |                   ^~~~~~~~~~~~~~~~~~~
|       |                   EVP_CIPHER_CTX_new
| ../../cipher-bf1.c:96:17: error: assignment to =C3=A2=E2=82=AC=CB=9CEVP_C=
IPHER *=C3=A2=E2=82=AC=E2=84=A2 {aka =C3=A2=E2=82=AC=CB=9Cstruct evp_cipher=
_st *=C3=A2=E2=82=AC=E2=84=A2} from =C3=A2=E2=82=AC=CB=9Cint=C3=A2=E2=82=AC=
=E2=84=A2 makes pointer from integer without a cast [-Wint-conversion]
|    96 |         ssh1_bf =3D EVP_CIPHER_meth_new(NID_undef, 8, 32);
|       |                 ^
| ../../cipher-bf1.c:97:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_iv_length=C3=A2=E2=82=AC=E2=84=A2; did y=
ou mean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_get_iv_length=C3=A2=E2=82=AC=E2=
=84=A2? [-Wimplicit-function-declaration]
|    97 |         EVP_CIPHER_meth_set_iv_length(ssh1_bf, 8);
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_get_iv_length
| ../../cipher-bf1.c:98:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_flags=C3=A2=E2=82=AC=E2=84=A2; did you m=
ean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_set_flags=C3=A2=E2=82=AC=E2=84=A2? =
[-Wimplicit-function-declaration]
|    98 |         EVP_CIPHER_meth_set_flags(ssh1_bf, EVP_CIPH_CBC_MODE);
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_set_flags
| ../../cipher-bf1.c:102:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_init=C3=A2=E2=82=AC=E2=84=A2; did you me=
an =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_set_num=C3=A2=E2=82=AC=E2=84=A2? [-W=
implicit-function-declaration]
|   102 |         EVP_CIPHER_meth_set_init(ssh1_bf,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_set_num
| ../../cipher-bf1.c:103:13: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_get_init=C3=A2=E2=82=AC=E2=84=A2; did you me=
an =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_get_nid=C3=A2=E2=82=AC=E2=84=A2? [-W=
implicit-function-declaration]
|   103 |             EVP_CIPHER_meth_get_init(EVP_bf_cbc()));
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~
|       |             EVP_CIPHER_CTX_get_nid
| ../../cipher-bf1.c:107:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_cleanup=C3=A2=E2=82=AC=E2=84=A2; did you=
 mean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_cleanup=C3=A2=E2=82=AC=E2=84=A2? =
[-Wimplicit-function-declaration]
|   107 |         EVP_CIPHER_meth_set_cleanup(ssh1_bf,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_cleanup
| ../../cipher-bf1.c:108:13: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_get_cleanup=C3=A2=E2=82=AC=E2=84=A2; did you=
 mean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_cleanup=C3=A2=E2=82=AC=E2=84=A2? =
[-Wimplicit-function-declaration]
|   108 |             EVP_CIPHER_meth_get_cleanup(EVP_bf_cbc()));
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |             EVP_CIPHER_CTX_cleanup
| ../../cipher-bf1.c:109:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_ctrl=C3=A2=E2=82=AC=E2=84=A2; did you me=
an =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_ctrl=C3=A2=E2=82=AC=E2=84=A2? [-Wimp=
licit-function-declaration]
|   109 |         EVP_CIPHER_meth_set_ctrl(ssh1_bf,
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_ctrl
| ../../cipher-bf1.c:110:13: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_get_ctrl=C3=A2=E2=82=AC=E2=84=A2; did you me=
an =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_ctrl=C3=A2=E2=82=AC=E2=84=A2? [-Wimp=
licit-function-declaration]
|   110 |             EVP_CIPHER_meth_get_ctrl(EVP_bf_cbc()));
|       |             ^~~~~~~~~~~~~~~~~~~~~~~~
|       |             EVP_CIPHER_CTX_ctrl
| ../../cipher-bf1.c:112:9: error: implicit declaration of function =C3=A2=
=E2=82=AC=CB=9CEVP_CIPHER_meth_set_do_cipher=C3=A2=E2=82=AC=E2=84=A2; did y=
ou mean =C3=A2=E2=82=AC=CB=9CEVP_CIPHER_CTX_get1_cipher=C3=A2=E2=82=AC=E2=
=84=A2? [-Wimplicit-function-declaration]
|   112 |         EVP_CIPHER_meth_set_do_cipher(ssh1_bf, bf_ssh1_cipher);
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |         EVP_CIPHER_CTX_get1_cipher
| make[2]: *** [Makefile:152: cipher-bf1.o] Error 1
| make[2]: Leaving directory '/build/reproducible-path/openssh-ssh1-7.5p1/d=
ebian/build-deb-ssh1'


Full buildlog
 	https://breakpoint.cc/openssl-rebuild/logs-4/attempted/openssh-ssh1_7.5p1=
-18_amd64-2026-04-19T13:49:11Z

Sebastian