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

MacPorts noreply at macports.org
Sat Dec 14 17:43:55 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
 Keywords:                |       Port:  gtk-osx-application-gtk2
--------------------------+--------------------------------------
 One issue is that it requires C11 now:
 {{{
 libtool: compile:  /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I..
 -I.. -DLOCALEDIR=\"/opt/local/share/gtkmacintegration-gtk2/locale\"
 -I/opt/local/include -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
 -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz
 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -xobjective-c -pipe -Os -arch ppc -MT
 libgtkmacintegration_gtk2_la-GNSMenuBar.lo -MD -MP -MF .deps
 /libgtkmacintegration_gtk2_la-GNSMenuBar.Tpo -c GNSMenuBar.c  -fno-common
 -DPIC -o .libs/libgtkmacintegration_gtk2_la-GNSMenuBar.o
 In file included from test-integration.c:78:
 gtkosxapplication.h:34: error: redefinition of typedef ‘GtkosxApplication’
 gtkosxapplication.h:32: error: previous declaration of ‘GtkosxApplication’
 was here
 make[2]: *** [test_integration_gtk2-test-integration.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 In file included from GtkApplicationDelegate.c:26:
 gtkosxapplication.h:34: error: redefinition of typedef 'GtkosxApplication'
 gtkosxapplication.h:32: error: previous declaration of 'GtkosxApplication'
 was here
 GtkApplicationDelegate.c:76: error: expected '>' before '*' token
 GtkApplicationDelegate.c:76: error: cannot find protocol declaration for
 'NSString'
 In file included from GNSMenuBar.h:23,
                  from GNSMenuBar.c:21:
 gtkosxapplication.h:34: error: redefinition of typedef 'GtkosxApplication'
 gtkosxapplication.h:32: error: previous declaration of 'GtkosxApplication'
 was here
 In file included from GtkApplicationNotify.c:25:
 gtkosxapplication.h:34: error: redefinition of typedef 'GtkosxApplication'
 gtkosxapplication.h:32: error: previous declaration of 'GtkosxApplication'
 was here
 In file included from GNSMenuBar.h:23,
                  from GNSMenuItem.c:24:
 gtkosxapplication.h:34: error: redefinition of typedef 'GtkosxApplication'
 gtkosxapplication.h:32: error: previous declaration of 'GtkosxApplication'
 was here
 make[2]: *** [libgtkmacintegration_gtk2_la-GNSMenuBar.lo] Error 1
 }}}

 Then, it still fails on:
 {{{
 libtool: compile:  /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I.. -I..
 -DLOCALEDIR=\"/opt/local/share/gtkmacintegration-gtk2/locale\"
 -I/opt/local/include -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
 -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz
 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -xobjective-c -pipe -Os -arch ppc -MT
 libgtkmacintegration_gtk2_la-getlabel.lo -MD -MP -MF .deps
 /libgtkmacintegration_gtk2_la-getlabel.Tpo -c getlabel.c  -fno-common
 -DPIC -o .libs/libgtkmacintegration_gtk2_la-getlabel.o
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from getlabel.h:24,
                  from getlabel.c:23:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 mv -f .deps/libgtkmacintegration_gtk2_la-getlabel.Tpo .deps
 /libgtkmacintegration_gtk2_la-getlabel.Plo
 /bin/sh ../libtool  --tag=CC   --mode=compile /opt/local/bin/gcc-mp-14
 -DHAVE_CONFIG_H -I. -I..  -I..  -DLOCALEDIR=\"/opt/local/share
 /gtkmacintegration-gtk2/locale\" -I/opt/local/include
 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include
 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz
 -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi
 -I/opt/local/include/harfbuzz -I/opt/local/include/cairo
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -xobjective-c -pipe -Os -arch ppc -MT libgtkmacintegration_gtk2_la-
 cocoa_menu.lo -MD -MP -MF .deps/libgtkmacintegration_gtk2_la-
 cocoa_menu.Tpo -c -o libgtkmacintegration_gtk2_la-cocoa_menu.lo `test -f
 'cocoa_menu.c' || echo './'`cocoa_menu.c
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from GNSMenuBar.h:22,
                  from GNSMenuBar.c:21:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from GtkApplicationDelegate.c:24:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from GNSMenuDelegate.h:2,
                  from GNSMenuDelegate.c:22:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 libtool: compile:  /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I.. -I..
 -DLOCALEDIR=\"/opt/local/share/gtkmacintegration-gtk2/locale\"
 -I/opt/local/include -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
 -I/opt/local/include/fribidi -I/opt/local/include/harfbuzz
 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0
 -I/opt/local/include/cairo -I/opt/local/include/pixman-1
 -I/opt/local/include/freetype2 -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -xobjective-c -pipe -Os -arch ppc -MT
 libgtkmacintegration_gtk2_la-cocoa_menu.lo -MD -MP -MF .deps
 /libgtkmacintegration_gtk2_la-cocoa_menu.Tpo -c cocoa_menu.c  -fno-common
 -DPIC -o .libs/libgtkmacintegration_gtk2_la-cocoa_menu.o
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from GtkApplicationNotify.c:24:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from GNSMenuItem.h:24,
                  from GNSMenuItem.c:23:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 GtkApplicationDelegate.c:76:83: error: expected '>' before '*' token
    76 | -(void) application: (NSApplication*)theApplication openFiless:
 (NSArray<NSString *> *) files
       |
 ^
 GtkApplicationDelegate.c:76:1: error: cannot find protocol declaration for
 'NSString'
    76 | -(void) application: (NSApplication*)theApplication openFiless:
 (NSArray<NSString *> *) files
       | ^
 make[2]: *** [libgtkmacintegration_gtk2_la-GtkApplicationDelegate.lo]
 Error 1
 make[2]: *** Waiting for unfinished jobs....
 mv -f .deps/libgtkmacintegration_gtk2_la-GNSMenuDelegate.Tpo .deps
 /libgtkmacintegration_gtk2_la-GNSMenuDelegate.Plo
 mv -f .deps/libgtkmacintegration_gtk2_la-GtkApplicationNotify.Tpo .deps
 /libgtkmacintegration_gtk2_la-GtkApplicationNotify.Plo
 mv -f .deps/libgtkmacintegration_gtk2_la-GNSMenuBar.Tpo .deps
 /libgtkmacintegration_gtk2_la-GNSMenuBar.Plo
 mv -f .deps/libgtkmacintegration_gtk2_la-GNSMenuItem.Tpo .deps
 /libgtkmacintegration_gtk2_la-GNSMenuItem.Plo
 In file included from /opt/local/include/gtk-2.0/gtk/gtkobject.h:37,
                  from /opt/local/include/gtk-2.0/gtk/gtkwidget.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkcontainer.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkbin.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkwindow.h:36,
                  from /opt/local/include/gtk-2.0/gtk/gtkdialog.h:35,
                  from /opt/local/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:33,
                  from cocoa_menu.h:27,
                  from cocoa_menu.c:23:
 /opt/local/include/gtk-2.0/gtk/gtktypeutils.h:236:1: warning:
 'GTypeDebugFlags' is deprecated [-Wdeprecated-declarations]
   236 | void            gtk_type_init   (GTypeDebugFlags    debug_flags);
       | ^~~~
 In file included from /opt/local/include/glib-2.0/gobject/gobject.h:26,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:31,
                  from /opt/local/include/glib-2.0/glib-object.h:24,
                  from /opt/local/include/glib-2.0/gio/gioenums.h:30,
                  from /opt/local/include/glib-2.0/gio/giotypes.h:30,
                  from /opt/local/include/glib-2.0/gio/gio.h:28,
                  from
 /opt/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-2.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:32:
 /opt/local/include/glib-2.0/gobject/gtype.h:723:1: note: declared here
   723 | {
       | ^
 In file included from /opt/local/include/gtk-2.0/gtk/gtktoolitem.h:31,
                  from /opt/local/include/gtk-2.0/gtk/gtktoolbutton.h:30,
                  from
 /opt/local/include/gtk-2.0/gtk/gtkmenutoolbutton.h:30,
                  from /opt/local/include/gtk-2.0/gtk/gtk.h:126:
 /opt/local/include/gtk-2.0/gtk/gtktooltips.h:73:3: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    73 |   GTimeVal last_popdown;
       |   ^~~~~~~~
 In file included from /opt/local/include/glib-2.0/glib/galloca.h:34,
                  from /opt/local/include/glib-2.0/glib.h:32,
                  from /opt/local/include/glib-2.0/gobject/gbinding.h:30:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 mv -f .deps/libgtkmacintegration_gtk2_la-cocoa_menu.Tpo .deps
 /libgtkmacintegration_gtk2_la-cocoa_menu.Plo
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_devel_gtk-osx-application/gtk-osx-
 application-common-gtk2/work/gtk-mac-integration-3.0.2/src'
 make[1]: *** [all-recursive] Error 1
 }}}

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


More information about the macports-tickets mailing list