[MacPorts] #59921: shellinabox @2.20: error: static declaration of 'ptsname_r' follows non-static declaration (was: Error: Failed to build shellinabox: command execution failed on High Sierra)

MacPorts noreply at macports.org
Tue Jan 7 15:02:51 UTC 2020


#59921: shellinabox @2.20: error: static declaration of 'ptsname_r' follows non-
static declaration
--------------------------+------------------------
  Reporter:  valorisa     |      Owner:  ryandesign
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.6.2
Resolution:               |   Keywords:
      Port:  shellinabox  |
--------------------------+------------------------
Changes (by ryandesign):

 * keywords:  shellinabox =>


Old description:

> sudo port -vvv install shellinabox ''or'' sudo port -vvv selfupdate &&
> sudo port -vvv upgrade outdated
>
> give same error
>

> {{{
> shellinabox/launcher.c:819:11: note: enclose 'ptsname_r' in a
> __builtin_available check to silence this warning
>       if (ptsname_r (*pty, path, length)) {
>           ^~~~~~~~~
> 1 warning and 1 error generated.
> make[1]: *** [shellinabox/launcher.o] Error 1
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
> /shellinabox-shellinabox-e45d8f2'
> make: *** [all] Error 2
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
> /shellinabox-shellinabox-e45d8f2'
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work/shellinabox-2.20"
> && /usr/bin/make -j4 -w all
> Exit code: 2
> Error: Failed to build shellinabox: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a
> bug.
> Error: Processing of port shellinabox failed
> }}}
>

>
> main.log
>

> {{{
> :info:build     ^
> :info:build shellinabox/launcher.c:819:11: warning: 'ptsname_r' is only
> available on macOS 10.13.4 or newer [-Wunguarded-availability-new]
> :info:build       if (ptsname_r (*pty, path, length)) {
> :info:build           ^~~~~~~~~
> :info:build /usr/include/stdlib.h:229:5: note: 'ptsname_r' has been
> explicitly marked partial here
> :info:build int ptsname_r(int fildes, char *buffer, size_t buflen)
> __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3));
> :info:build     ^
> :info:build shellinabox/launcher.c:819:11: note: enclose 'ptsname_r' in a
> __builtin_available check to silence this warning
> :info:build       if (ptsname_r (*pty, path, length)) {
> :info:build           ^~~~~~~~~
> :info:build 1 warning and 1 error generated.
> :info:build make[1]: *** [shellinabox/launcher.o] Error 1
> :info:build make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
> /shellinabox-shellinabox-e45d8f2'
> :info:build make: *** [all] Error 2
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
> /shellinabox-shellinabox-e45d8f2'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work/shellinabox-2.20"
> && /usr/bin/make -j4 -w all
> :info:build Exit code: 2
> :error:build Failed to build shellinabox: command execution failed
> :debug:build Error code: CHILDSTATUS 2761 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_shellinabox/shellinabox/main.log
> for details.
> }}}

New description:

 `sudo port -vvv install shellinabox` ''or'' `sudo port -vvv selfupdate &&
 sudo port -vvv upgrade outdated`

 give same error


 {{{
 shellinabox/launcher.c:819:11: note: enclose 'ptsname_r' in a
 __builtin_available check to silence this warning
       if (ptsname_r (*pty, path, length)) {
           ^~~~~~~~~
 1 warning and 1 error generated.
 make[1]: *** [shellinabox/launcher.o] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
 /shellinabox-shellinabox-e45d8f2'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
 /shellinabox-shellinabox-e45d8f2'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work/shellinabox-2.20"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build shellinabox: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port shellinabox failed
 }}}



 main.log


 {{{
 :info:build     ^
 :info:build shellinabox/launcher.c:819:11: warning: 'ptsname_r' is only
 available on macOS 10.13.4 or newer [-Wunguarded-availability-new]
 :info:build       if (ptsname_r (*pty, path, length)) {
 :info:build           ^~~~~~~~~
 :info:build /usr/include/stdlib.h:229:5: note: 'ptsname_r' has been
 explicitly marked partial here
 :info:build int ptsname_r(int fildes, char *buffer, size_t buflen)
 __API_AVAILABLE(macos(10.13.4), ios(11.3), tvos(11.3), watchos(4.3));
 :info:build     ^
 :info:build shellinabox/launcher.c:819:11: note: enclose 'ptsname_r' in a
 __builtin_available check to silence this warning
 :info:build       if (ptsname_r (*pty, path, length)) {
 :info:build           ^~~~~~~~~
 :info:build 1 warning and 1 error generated.
 :info:build make[1]: *** [shellinabox/launcher.o] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
 /shellinabox-shellinabox-e45d8f2'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work
 /shellinabox-shellinabox-e45d8f2'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_shellinabox/shellinabox/work/shellinabox-2.20"
 && /usr/bin/make -j4 -w all
 :info:build Exit code: 2
 :error:build Failed to build shellinabox: command execution failed
 :debug:build Error code: CHILDSTATUS 2761 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_shellinabox/shellinabox/main.log
 for details.
 }}}

--

Comment:

 The actual error in the log is:

 {{{
 :info:build shellinabox/launcher.c:772:12: error: static declaration of
 'ptsname_r' follows non-static declaration
 }}}

 This doesn't sound like an issue that is specific to MacPorts, so it
 should probably be reported to the developers of shellinabox at
 https://github.com/shellinabox/shellinabox/issues.

-- 
Ticket URL: <https://trac.macports.org/ticket/59921#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list