[MacPorts] #72239: emacs-app fails to compile 10.9 Mavericks - error: expected a type

MacPorts noreply at macports.org
Tue Mar 25 21:45:23 UTC 2025


#72239: emacs-app fails to compile 10.9 Mavericks - error: expected a type
----------------------+-----------------------
 Reporter:  rmottola  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  emacs-app
----------------------+-----------------------
 nsterm.m:7057:4: error: expected a type
 - (nullable NSAttributedString *)
    ^
 nsterm.m:7059:20: error: expected a type
                           actualRange: (nullable NSRangePointer)
 actualRange
                                         ^
 nsterm.m:7065:20: error: expected a type
                           actualRange: (nullable NSRangePointer)
 actualRange
                                         ^
 nsterm.m:7059:45: warning: conflicting parameter types in implementation
 of 'attributedSubstringForProposedRange:actualRange:': 'NSRangePointer'
 (aka 'struct _NSRange *') vs 'id' [-Wmismatched-parameter-types]
                           actualRange: (nullable NSRangePointer)
 actualRange
                                                                  ^
 /System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h:47:105:
 note: previous definition is here
 - (NSAttributedString
 *)attributedSubstringForProposedRange:(NSRange)aRange
 actualRange:(NSRangePointer)actualRange;
 ~~~~~~~~~~~~~~ ^
 nsterm.m:7065:45: warning: conflicting parameter types in implementation
 of 'firstRectForCharacterRange:actualRange:': 'NSRangePointer' (aka
 'struct _NSRange *') vs 'id' [-Wmismatched-parameter-types]
                           actualRange: (nullable NSRangePointer)
 actualRange
                                                                  ^
 /System/Library/Frameworks/AppKit.framework/Headers/NSTextInputClient.h:55:82:
 note: previous definition is here
 - (NSRect)firstRectForCharacterRange:(NSRange)aRange
 actualRange:(NSRangePointer)actualRange;
 ~~~~~~~~~~~~~~ ^
 nsterm.m:9357:15: warning: instance method '-setTabbingMode:' not found
 (return type defaults to 'id') [-Wobjc-method-access]
         [self setTabbingMode:NSWindowTabbingModeDisallowed];
               ^~~~~~~~~~~~~~
 ./nsterm.h:419:12: note: receiver is instance of class declared here
 @interface EmacsWindow : NSWindow
            ^
 nsterm.m:9443:13: warning: instance method '-setAccessibilitySubrole:' not
 found (return type defaults to 'id') [-Wobjc-method-access]
       [self setAccessibilitySubrole:NSAccessibilityFloatingWindowSubrole];
             ^~~~~~~~~~~~~~~~~~~~~~~
 ./nsterm.h:419:12: note: receiver is instance of class declared here
 @interface EmacsWindow : NSWindow
            ^
 nsterm.m:9445:13: warning: instance method '-setAccessibilitySubrole:' not
 found (return type defaults to 'id') [-Wobjc-method-access]
       [self setAccessibilitySubrole:NSAccessibilityStandardWindowSubrole];
             ^~~~~~~~~~~~~~~~~~~~~~~
 ./nsterm.h:419:12: note: receiver is instance of class declared here
 @interface EmacsWindow : NSWindow
            ^
 nsterm.m:9444:5: warning: add explicit braces to avoid dangling else
 [-Wdangling-else]
     else
     ^
 6 warnings and 3 errors generated.

-- 
Ticket URL: <https://trac.macports.org/ticket/72239>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list