[MacPorts] #62320: openssh build failure

MacPorts noreply at macports.org
Fri Feb 19 15:41:33 UTC 2021


#62320: openssh build failure
---------------------+---------------------
 Reporter:  vkuznet  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.6.4
 Keywords:  openssh  |       Port:  openssh
---------------------+---------------------
 Hi,
 on macOS Catalina 10.15.7 I tried to upgrade openssh port and it fails as
 following:

 {{{
 sudo port upgrade openssh
 Password:
 --->  Computing dependencies for openssh
 --->  Fetching archive for openssh
 --->  Attempting to fetch
 openssh-8.4p1_1+gsskex+kerberos5+xauth.darwin_19.x86_64.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/openssh
 --->  Attempting to fetch
 openssh-8.4p1_1+gsskex+kerberos5+xauth.darwin_19.x86_64.tbz2 from
 https://mse.uk.packages.macports.org/openssh
 --->  Attempting to fetch
 openssh-8.4p1_1+gsskex+kerberos5+xauth.darwin_19.x86_64.tbz2 from
 https://lil.fr.packages.macports.org/openssh
 --->  Building openssh
 Error: Failed to build openssh: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 The log shows the following:

 {{{
 ...
 :info:build sshconnect2.c:270:23: error: implicit declaration of function
 'auth_get_canonical_hostname' is invalid in C99 [-Werror,-Wimplicit-
 function-declaration]
 :info:build                         gss_host =
 xstrdup(auth_get_canonical_hostname(ssh, 1));
 :info:build                                            ^
 :info:build sshconnect2.c:270:23: warning: incompatible integer to pointer
 conversion passing 'int' to parameter of type 'const char *' [-Wint-
 conversion]
 :info:build                         gss_host =
 xstrdup(auth_get_canonical_hostname(ssh, 1));
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build ./xmalloc.h:23:27: note: passing argument to parameter here
 :info:build char    *xstrdup(const char *);
 :info:build                              ^
 :info:build sshconnect2.c:841:22: error: implicit declaration of function
 'auth_get_canonical_hostname' is invalid in C99 [-Werror,-Wimplicit-
 function-declaration]
 :info:build                 gss_host =
 xstrdup(auth_get_canonical_hostname(ssh, 1));
 :info:build                                    ^
 :info:build sshconnect2.c:841:22: warning: incompatible integer to pointer
 conversion passing 'int' to parameter of type 'const char *' [-Wint-
 conversion]
 :info:build                 gss_host =
 xstrdup(auth_get_canonical_hostname(ssh, 1));
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build ./xmalloc.h:23:27: note: passing argument to parameter here
 :info:build char    *xstrdup(const char *);
 :info:build                              ^
 :info:build sshd.c:2101:7: warning: 'daemon' is deprecated: first
 deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-
 declarations]
 :info:build                 if (daemon(0, 0) == -1)
 :info:build                     ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h:292:6:
 note: 'daemon' has been explicitly marked deprecated here
 :info:build int      daemon(int, int) __DARWIN_1050(daemon)
 __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0,
 __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED
 __TVOS_PROHIBITED;
 :info:build          ^
 :info:build 2 warnings and 2 errors generated.
 :info:build make: *** [sshconnect2.o] Error 1
 :info:build make: *** Waiting for unfinished jobs....
 :info:build 1 warning generated.
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/work/openssh-8.4p1'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/work/openssh-8.4p1"
 && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build openssh: command execution failed
 :debug:build Error code: CHILDSTATUS 53351 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/main.log
 for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62320>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list