[MacPorts] #57971: nss @3.41.1 does not build on PPC Tiger, Mac OS X 10.4.11, because "'for' loop initial declaration used outside C99 mode"

MacPorts noreply at macports.org
Sun Jan 27 22:31:42 UTC 2019


#57971: nss @3.41.1 does not build on PPC Tiger, Mac OS X 10.4.11, because "'for'
loop initial declaration used outside C99 mode"
------------------------+--------------------
  Reporter:  ballapete  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:  tiger
      Port:  nss        |
------------------------+--------------------

Comment (by kencu):

 Hi Pete -- would you like to try adding the fix? This might do it, in the
 Portfile:

 {{{
 configure.cflags-append -std=c99
 }}}

 Other option is rewrite the code and move the declaration of `i` before
 the loop I guess, (but if it's done this way in one place it's likely done
 this way elsewhere, and who's got time for that?):
 {{{
 unsigned int i;
 for (i = 0; i < cipherSuiteCount; i++) {
         rv = sslBuffer_AppendNumber(&b, cipherSuites[i], 2);
         if (rv != SECSuccess) {
             goto loser;
         }
     }
 }

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


More information about the macports-tickets mailing list