[MacPorts] #71049: openjdk21 @21.0.4+7: error: use of undeclared identifier 'NSBundleExecutableArchitectureARM64' on 10.14 and 10.15

MacPorts noreply at macports.org
Mon Oct 7 02:21:02 UTC 2024


#71049: openjdk21 @21.0.4+7: error: use of undeclared identifier
'NSBundleExecutableArchitectureARM64' on 10.14 and 10.15
---------------------------+-----------------------------
  Reporter:  sambthompson  |      Owner:  breun
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.10.2
Resolution:                |   Keywords:  catalina mojave
      Port:  openjdk21     |
---------------------------+-----------------------------

Comment (by sambthompson):

 This fix was
 [https://github.com/openjdk/jdk21u/commit/8f08066962e7f38d7303d4648c22a6aa210926f8
 backported to openjdk21 on March 11], so earlier comment about shipping in
 error was in error.

 According to [https://forums.developer.apple.com/forums/thread/719208 this
 thread], `@available` still needs the symbols defined in the SDK. Sigh.

 The orginal upstream report that resulted in this change is:
 [https://bugs.openjdk.org/browse/JDK-8266242 JDK-8266242]. The back-
 porting process apparently didn't pick up the issue with building using
 older Xcodes on 10.12 - 10.15, without later SDKs defining this enum. I
 also note that this code appears to be only use of `@availability` in the
 whole source.

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


More information about the macports-tickets mailing list