[MacPorts] #59115: libssh2 @1.9.0 fails to build on PPC Mac OS X 10.5.8 because '#pragma GCC diagnostic not allowed inside functions'

MacPorts noreply at macports.org
Tue May 10 16:19:29 UTC 2022


#59115: libssh2 @1.9.0 fails to build on PPC Mac OS X 10.5.8 because '#pragma GCC
diagnostic not allowed inside functions'
------------------------+----------------------
  Reporter:  ballapete  |      Owner:  Gminfly
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:  leopard
      Port:  libssh2    |
------------------------+----------------------

Comment (by barracuda156):

 Same error on 10.6.8 for `x86_64`:
 {{{
 x11.c: In function ‘main’:
 x11.c:328: error: #pragma GCC diagnostic not allowed inside functions
 x11.c:329: error: #pragma GCC diagnostic not allowed inside functions
 x11.c:333: error: #pragma GCC diagnostic not allowed inside functions
 make[1]: *** [x11.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
   CCLD     ssh2
 make[1]: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0/example'
 make: *** [all-recursive] Error 1
 make: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0'
 Command failed:  cd
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libssh2/libssh2/work/libssh2-1.10.0"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build libssh2: command execution failed
 }}}

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


More information about the macports-tickets mailing list