[MacPorts] #64454: libsdl2 @2.0.20: error: use of undeclared identifier 'kDisplayModeNativeFlag' (was: Failed to build libsdl2 on Mountain Lion)

MacPorts noreply at macports.org
Sun Jan 16 07:33:19 UTC 2022


#64454: libsdl2 @2.0.20: error: use of undeclared identifier
'kDisplayModeNativeFlag'
-----------------------+--------------------------
  Reporter:  chillin-  |      Owner:  jmroot
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.7.1
Resolution:            |   Keywords:  mountainlion
      Port:  libsdl2   |
-----------------------+--------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => jmroot
 * keywords:  libsdl2, => mountainlion


Old description:

> 1 error generated.
> make: *** [build/SDL_cocoamodes.lo] Error 1
> make: *** Waiting for unfinished jobs....
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.20'
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.20"
> && /usr/bin/make -j4 -w all V=1
> Exit code: 2
> Error: Failed to build libsdl2: command execution failed

New description:

 {{{
 1 error generated.
 make: *** [build/SDL_cocoamodes.lo] Error 1
 make: *** Waiting for unfinished jobs....
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.20'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.20"
 && /usr/bin/make -j4 -w all V=1
 Exit code: 2
 Error: Failed to build libsdl2: command execution failed
 }}}

--

Comment:

 The relevant error message in the log is:
 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.20/src/video/cocoa/SDL_cocoamodes.m:480:58:
 error: use of undeclared identifier 'kDisplayModeNativeFlag'
 :info:build                         if (CGDisplayModeGetIOFlags(m) &
 kDisplayModeNativeFlag) {
 :info:build                                                          ^
 :info:build 1 error generated.
 }}}
 Indeed, `kDisplayModeNativeFlag` was
 [https://developer.apple.com/documentation/iokit/1505967-anonymous/kdisplaymodenativeflag
 introduced in OS X 10.10].

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


More information about the macports-tickets mailing list