[Bug 3744] New: openssh-SNAP-20241015 sshd-auth.c:467:2: error: use of undeclared identifier 'saved_argc'; did you mean 'saved_argv'?

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Oct 15 19:15:34 AEDT 2024


https://bugzilla.mindrot.org/show_bug.cgi?id=3744

            Bug ID: 3744
           Summary: openssh-SNAP-20241015 sshd-auth.c:467:2: error: use of
                    undeclared identifier 'saved_argc'; did you mean
                    'saved_argv'?
           Product: Portable OpenSSH
           Version: 9.9p1
          Hardware: ARM64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: artkiver at gmail.com

Created attachment 3839
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3839&action=edit
configure parameters and make invocation on macOS 15.0.1 with MacPorts
clang/llvm Apple clang version 16.0.0 (clang-1600.0.26.3)

make fails with:

cc -g -O2 -pipe -Wunknown-warning-option -Qunused-arguments -Wall
-Wextra -Wpointer-arith -Wuninitialized -Wsign-compare
-Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign
-Wno-unused-parameter -Wno-unused-result -Wmisleading-indentation
-Wbitwise-instead-of-logical -fno-strict-aliasing -D_FORTIFY_SOURCE=2
-ftrapv -fzero-call-used-regs=used -ftrivial-auto-var-init=zero
-mretpoline -fno-builtin-memset -fstack-protector-strong -fPIE   -I.
-I. -I/opt/local/include -I/opt/local/lib  -I/opt/local/include
-I/opt/local/include/editline -DSSHDIR=\"/opt/local/etc/ssh\"
-D_PATH_SSH_PROGRAM=\"/opt/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/opt/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/opt/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/opt/local/libexec/ssh-keysign\"
-D_PATH_SSHD_SESSION=\"/opt/local/libexec/sshd-session\"
-D_PATH_SSH_PKCS11_HELPER=\"/opt/local/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_SK_HELPER=\"/opt/local/libexec/ssh-sk-helper\"
-D_PATH_SSH_PIDDIR=\"/opt/local/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
sshd-auth.c -o sshd-auth.o
sshd-auth.c:467:2: error: use of undeclared identifier 'saved_argc';
did you mean 'saved_argv'?
  467 |         saved_argc = ac;
      |         ^~~~~~~~~~
      |         saved_argv
sshd-auth.c:128:15: note: 'saved_argv' declared here
  128 | static char **saved_argv;
      |               ^
sshd-auth.c:467:13: error: incompatible integer to pointer conversion
assigning to 'char **' from 'int' [-Wint-conversion]
  467 |         saved_argc = ac;
      |                    ^ ~~
2 errors generated.
make: *** [sshd-auth.o] Error 1

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list