Opened 3 years ago

Closed 3 years ago

#64454 closed defect (fixed)

libsdl2 @2.0.20: error: use of undeclared identifier 'kDisplayModeNativeFlag'

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

Attachments (1)

main.log (378.1 KB) - added by chillin- 3 years ago.
main.log

Download all attachments as: .zip

Change History (5)

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.

comment:2 Changed 3 years ago by jmroot (Joshua Root)

And yet it built OK on 10.7.

comment:3 Changed 3 years ago by jmroot (Joshua Root)

comment:4 Changed 3 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In f425ff4602c23b2c36e6c35d0b5a1dbc25348fc7/macports-ports (master):

libsdl2: apply upstream build fix for 10.8

Closes: #64454

Note: See TracTickets for help on using tickets.