[MacPorts] #54446: nghttp2 @1.24.0 does not build on PPC Leopard, Mac OS X 10.5.8, with configure.cxx_stdlib = macports-libstdc++ and macports-gcc-6 because "'AI_NUMERICSERV' was not declared in this scope"

MacPorts noreply at macports.org
Thu Feb 29 20:00:45 UTC 2024


#54446: nghttp2 @1.24.0 does not build on PPC Leopard, Mac OS X 10.5.8, with
configure.cxx_stdlib = macports-libstdc++ and macports-gcc-6 because
"'AI_NUMERICSERV' was not declared in this scope"
------------------------+-------------------------
  Reporter:  ballapete  |      Owner:  Schamschula
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.1
Resolution:  fixed      |   Keywords:  leopard
      Port:  nghttp2    |
------------------------+-------------------------

Comment (by kencu):

 {{{__MAC_OS_X_VERSION_MIN_REQUIRED}}} is something Jeremy often wanted to
 use, and he was around a lot at that time.

 It is defined on Leopard and newer, and also is defined on any Tiger port
 that is using legacysupport, as I added it to that.

 In general, we should just use {{{MAC_OS_X_VERSION_MIN_REQUIRED}}} instead
 -- but I didn't want to keep changing Jeremy's patches to that, so I left
 it most often.

 Regarding {{{AI_NUMERICSERV}}} -- I'm not really certain that defining it
 (to a made-up value of zero or any other number) is a good idea on systems
 that don't actually support that functionality.

 For example, once you define {{{AI_NUMERICSERV 0}}} then a later block of
 code looking to see if it should use {{{AI_NUMERICSERV}}} by seeing if it
 is defined to something will see that it is defined, and so use it -- and
 this is plain wrong.

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


More information about the macports-tickets mailing list