Opened 10 months ago

Last modified 10 months ago

#67666 reopened defect

libsdl2: builds fail for 10.7/10.8: error: no visible @interface for 'NSAlert' declares the selector 'beginSheetModalForWindow:completionHandler

Reported by: mascguy (Christopher Nielsen) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: libsdl2

Description

Details (absolute paths truncated for readability):

libsdl2/work/SDL2-2.28.0/src/video/cocoa/SDL_cocoamessagebox.m:60:43: error: expected ')'
                      completionHandler:^(NSModalResponse returnCode) {
                                          ^
libsdl2/work/SDL2-2.28.0/src/video/cocoa/SDL_cocoamessagebox.m:60:42: note: to match this '('
                      completionHandler:^(NSModalResponse returnCode) {
                                         ^
libsdl2/work/SDL2-2.28.0/src/video/cocoa/SDL_cocoamessagebox.m:60:41: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
                      completionHandler:^(NSModalResponse returnCode) {
                                        ^
libsdl2/work/SDL2-2.28.0/src/video/cocoa/SDL_cocoamessagebox.m:61:50: error: use of undeclared identifier 'returnCode'
                        [NSApp stopModalWithCode:returnCode];
                                                 ^
libsdl2/work/SDL2-2.28.0/src/video/cocoa/SDL_cocoamessagebox.m:59:10: error: no visible @interface for 'NSAlert' declares the selector 'beginSheetModalForWindow:completionHandler:'
        [alert beginSheetModalForWindow:nswindow
         ^
2 warnings and 3 errors generated.
make: *** [build/SDL_cocoamessagebox.lo] Error 1

https://ports.macports.org/port/libsdl2/details/

Change History (8)

comment:1 Changed 10 months ago by mascguy (Christopher Nielsen)

Summary: libsdl2: builds fail for 10.7/10.8:libsdl2: builds fail for 10.7/10.8: error: no visible @interface for 'NSAlert' declares the selector 'beginSheetModalForWindow:completionHandler

comment:2 Changed 10 months ago by kencu (Ken)

“ Please note that building SDL requires at least Xcode 6 and the 10.9 SDK. PowerPC support for macOS has been officially dropped as of SDL 2.0.2. 32-bit Intel and macOS 10.8 runtime support has been officially dropped as of SDL 2.24.0.”

comment:3 Changed 10 months ago by mascguy (Christopher Nielsen)

So it sounds like we should pin 10.7/10.8 to the previous version (2.26.5)...?

comment:4 Changed 10 months ago by jmroot (Joshua Root)

It was working fine as of last release though. You could certainly ask upstream if it was really intentional to drop OS compatibility in the last release before maintenance mode. Better yet if you provide a patch to fix it; they've accepted fixes for these older OS versions from me before, and I don't think there were all that many changes to the macOS specific code in this release.

comment:5 Changed 10 months ago by aeiouaeiouaeiouaeiouaeiouaeiou

comment:6 in reply to:  5 Changed 10 months ago by mascguy (Christopher Nielsen)

comment:7 Changed 10 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 5a4c116d3f21a3fe2a6be7fc4aa8195dd99d21ec/macports-ports (master):

libsdl2: patch to revert upstream fix for sdl issue 6948

  • Fixes builds for 10.7/10.8

Closes: #67666

comment:8 Changed 10 months ago by mascguy (Christopher Nielsen)

Resolution: fixed
Status: closedreopened

Reopening ticket, as it would be preferable to provide a patch to upstream with macOS version checks re-added.

Note: See TracTickets for help on using tickets.