[MacPorts] #71548: gtk-osx-application-gtk2 build error: cannot find protocol declaration for 'NSString'

MacPorts noreply at macports.org
Fri Dec 20 09:48:33 UTC 2024


#71548: gtk-osx-application-gtk2 build error: cannot find protocol declaration for
'NSString'
---------------------------------------+----------------------
  Reporter:  barracuda156              |      Owner:  mascguy
      Type:  defect                    |     Status:  assigned
  Priority:  Normal                    |  Milestone:
 Component:  ports                     |    Version:  2.10.5
Resolution:                            |   Keywords:
      Port:  gtk-osx-application-gtk2  |
---------------------------------------+----------------------

Comment (by rmottola):

 I have a very similar issue on 10.6 building and here I have the clang 11
 compiler, so pretty recent which should understand these stupid templates,
 so i do wonder.
 Also, if it doesn't work on 10.6, on 10.5 it is even harder :)


 {{{
 /opt/local/include/glib-2.0/glib/gmacros.h:1272:44: note: expanded from
 macro 'G_DEPRECATED_FOR'
 #define G_DEPRECATED_FOR(f) __attribute__((__deprecated__("Use '" #f "'
 instead")))
                                            ^
 GtkApplicationDelegate.c:76:66: error: type arguments cannot be applied to
 non-parameterized class 'NSArray'
 -(void) application: (NSApplication*)theApplication openFiless:
 (NSArray<NSString *> *) files
                                                                  ^
 ~~~~~~~~~~~~
 2 warnings and 1 error generated.
 2 warnings generated.

 }}}

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


More information about the macports-tickets mailing list