Re: [MacPorts] #71519: scamper fails to build after update: error: ‘opt’ undeclared (first use in this function)

MacPorts noreply at macports.org
Fri Dec 13 06:52:30 UTC 2024


#71519: scamper fails to build after update: error: ‘opt’ undeclared (first use in
this function)
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.5
Resolution:                |   Keywords:
      Port:  scamper       |
---------------------------+--------------------

Comment (by barracuda156):

 Replying to [comment:2 matthewluckie]:
 > It was a bug in the source code (I left variable assignments behind when
 tidying code up, but that part of the code only affects old platforms).
 I've fixed the bug in my source code with the patch in the second approach
 (patch-scamper) but I think Portfile-scamper.diff is the better port fix
 because the opt.patch file in patch-scamper will shortly be unnecessary.
 Either way, thanks for letting me know and giving me the opportunity to
 fix it.

 Thank you. That seems to work, but there is another error due to missing
 `AI_NUMERICSERV`.
 {{{
 scamper_control.c: In function ‘remote_connect’:
 scamper_control.c:3801: error: ‘AI_NUMERICSERV’ undeclared (first use in
 this function)
 scamper_control.c:3801: error: (Each undeclared identifier is reported
 only once
 scamper_control.c:3801: error: for each function it appears in.)
 make[2]: *** [scamper-scamper_control.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 }}}

 Something like this should work: https://github.com/macports/macports-
 ports/commit/976522a861eb4541f8c9735f8467c3197ef16e87

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


More information about the macports-tickets mailing list