Opened 3 years ago

Last modified 3 years ago

#64454 closed defect

libsdl2 @2.0.20: error: use of undeclared identifier 'kDisplayModeNativeFlag' — at Version 1

Reported by: chillin- Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: mountainlion Cc:
Port: libsdl2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (2)

Changed 3 years ago by chillin-

Attachment: main.log added

main.log

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: mountainlion added; libsdl2 removed
Owner: set to jmroot
Status: newassigned
Summary: Failed to build libsdl2 on Mountain Lionlibsdl2 @2.0.20: error: use of undeclared identifier 'kDisplayModeNativeFlag'

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 introduced in OS X 10.10.

Note: See TracTickets for help on using tickets.