Call for testing: openssh-10.3
Hisashi T Fujinaka
htodd at twofifty.com
Tue Mar 31 11:03:46 AEDT 2026
I'm testing on NetBSD 11.0_RC2 on amd64 and there's a missing define for
PLEDGE_EXTRA_INET.
(cd openbsd-compat && make)
cc -g -O2 -pipe -Wno-error=format-truncation -Wall -Wextra
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-parameter
-Wno-unused-result -Wimplicit-fallthrough -Wmisleading-indentation
-fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv
-fzero-call-used-regs=used -ftrivial-auto-var-init=zero
-fno-builtin-memset -fstack-protector-strong -I. -I.
-I"/home/htodd/openssh-portable/openbsd-compat/include"
-D_OPENBSD_SOURCE -DOPENSSL_API_COMPAT=0x10100000L -I/usr/pkg/include
-DSSHDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\"
-D_PATH_SSHD_SESSION=\"/usr/local/libexec/sshd-session\"
-D_PATH_SSHD_AUTH=\"/usr/local/libexec/sshd-auth\"
-D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_SK_HELPER=\"/usr/local/libexec/ssh-sk-helper\"
-D_PATH_SSH_PIDDIR=\"/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
clientloop.c -o clientloop.o
clientloop.c: In function 'client_repledge':
clientloop.c:964:28: error: 'PLEDGE_EXTRA_INET' undeclared (first use in this function)
964 | if (pledge(PLEDGE_EXTRA_INET "stdio unix proc tty", NULL) == -1)
| ^~~~~~~~~~~~~~~~~
clientloop.c:964:28: note: each undeclared identifier is reported only once for each function it appears in
clientloop.c:964:45: error: expected ')' before string constant
964 | if (pledge(PLEDGE_EXTRA_INET "stdio unix proc tty", NULL) == -1)
| ~ ^~~~~~~~~~~~~~~~~~~~~~
| )
clientloop.c:964:21: error: too few arguments to function 'pledge'
964 | if (pledge(PLEDGE_EXTRA_INET "stdio unix proc tty", NULL) == -1)
| ^~~~~~
In file included from openbsd-compat/openbsd-compat.h:218,
from includes.h:179,
from clientloop.c:62:
openbsd-compat/bsd-misc.h:159:5: note: declared here
159 | int pledge(const char *promises, const char *execpromises);
| ^~~~~~
clientloop.c:968:45: error: expected ')' before string constant
968 | if (pledge(PLEDGE_EXTRA_INET "stdio proc tty", NULL) == -1)
| ~ ^~~~~~~~~~~~~~~~~
| )
clientloop.c:968:21: error: too few arguments to function 'pledge'
968 | if (pledge(PLEDGE_EXTRA_INET "stdio proc tty", NULL) == -1)
| ^~~~~~
openbsd-compat/bsd-misc.h:159:5: note: declared here
159 | int pledge(const char *promises, const char *execpromises);
| ^~~~~~
*** Error code 1
Stop.
make: stopped making "tests" in /home/htodd/openssh-portable
--
Hisashi T Fujinaka - htodd at twofifty.com
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
More information about the openssh-unix-dev
mailing list