[MacPorts] #71652: gtksourceview3 fails to build with gcc14: error: assignment to 'GtkSourceBuffer *' {aka 'struct _GtkSourceBuffer *'} from incompatible pointer type 'GtkTextBuffer *' {aka 'struct _GtkTextBuffer *'} [-Wincompatible-pointer-types]

MacPorts noreply at macports.org
Fri Dec 27 15:06:02 UTC 2024


#71652: gtksourceview3 fails to build with gcc14: error: assignment to
'GtkSourceBuffer *' {aka 'struct _GtkSourceBuffer *'} from incompatible
pointer type 'GtkTextBuffer *' {aka 'struct _GtkTextBuffer *'}
[-Wincompatible-pointer-types]
--------------------------+----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  gtksourceview3
--------------------------+----------------------------
 {{{
 libtool: compile:  /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I..
 -DDATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"GtkSourceView\"
 -DGTK_SOURCE_COMPILATION -I.. -I.. -I. -fno-strict-aliasing
 -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0
 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0
 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk-3.0
 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo
 -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/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 -I/opt/local/include/libxml2
 -I/opt/local/include -Os -pipe -isysroot/ -arch ppc -MT
 libgtksourceview_core_la-gtksourcecompletionmodel.lo -MD -MP -MF .deps
 /libgtksourceview_core_la-gtksourcecompletionmodel.Tpo -c
 gtksourcecompletionmodel.c  -fno-common -DPIC -o .libs
 /libgtksourceview_core_la-gtksourcecompletionmodel.o
 In file included from gtksourceview-enumtypes.h:42,
                  from gtksourceview.c:41:
 ../gtksourceview/gtksourcefile.h:180:66: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   180 |
 GTimeVal      *modification_time);
       |
 ^~~~~~~~
 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/gtk-3.0/gdk/gdkconfig.h:8,
                  from /opt/local/include/gtk-3.0/gdk/gdk.h:30,
                  from /opt/local/include/gtk-3.0/gtk/gtk.h:30,
                  from gtksourceview.h:35,
                  from gtksourceview.c:29:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 ../gtksourceview/gtksourcefile.h:184:66: warning: 'GTimeVal' is
 deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
   184 |
 GTimeVal       modification_time);
       |
 ^~~~~~~~
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 gtksourceview.c: In function 'set_source_buffer':
 gtksourceview.c:1589:43: error: assignment to 'GtkSourceBuffer *' {aka
 'struct _GtkSourceBuffer *'} from incompatible pointer type 'GtkTextBuffer
 *' {aka 'struct _GtkTextBuffer *'} [-Wincompatible-pointer-types]
  1589 |                 view->priv->source_buffer = g_object_ref (buffer);
       |                                           ^
 gtksourceview.c: In function 'move_cursor_words':
 gtksourceview.c:2154:9: warning: 'pango_find_base_dir' is deprecated
 [-Wdeprecated-declarations]
  2154 |         if (pango_find_base_dir (line_text, -1) ==
 PANGO_DIRECTION_RTL)
       |         ^~
 In file included from /opt/local/include/pango-1.0/pango/pango-
 types.h:239,
                  from /opt/local/include/pango-1.0/pango/pango-font.h:26,
                  from /opt/local/include/pango-1.0/pango/pango-
 attributes.h:25,
                  from /opt/local/include/pango-1.0/pango/pango.h:25,
                  from /opt/local/include/gtk-3.0/gdk/gdktypes.h:35,
                  from
 /opt/local/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
                  from /opt/local/include/gtk-3.0/gdk/gdk.h:32:
 /opt/local/include/pango-1.0/pango/pango-bidi-type.h:107:16: note:
 declared here
   107 | PangoDirection pango_find_base_dir          (const gchar *text,
       |                ^~~~~~~~~~~~~~~~~~~
 In file included from gtksourcebufferinputstream.h:30,
                  from gtksourcebufferinputstream.c:30:
 gtksourcefile.h:180:66: warning: 'GTimeVal' is deprecated: Use 'GDateTime'
 instead [-Wdeprecated-declarations]
   180 |
 GTimeVal      *modification_time);
       |
 ^~~~~~~~
 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 gtksourcebufferinputstream.c:27:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 gtksourcefile.h:184:66: warning: 'GTimeVal' is deprecated: Use 'GDateTime'
 instead [-Wdeprecated-declarations]
   184 |
 GTimeVal       modification_time);
       |
 ^~~~~~~~
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 make[4]: *** [libgtksourceview_core_la-gtksourceview.lo] Error 1
 make[4]: *** Waiting for unfinished jobs....
 In file included from gtksourcebufferoutputstream.h:30,
                  from gtksourcebufferoutputstream.c:29:
 gtksourcefile.h:180:66: warning: 'GTimeVal' is deprecated: Use 'GDateTime'
 instead [-Wdeprecated-declarations]
   180 |
 GTimeVal      *modification_time);
       |
 ^~~~~~~~
 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/gtk-3.0/gdk/gdkconfig.h:8,
                  from /opt/local/include/gtk-3.0/gdk/gdk.h:30,
                  from /opt/local/include/gtk-3.0/gtk/gtk.h:30,
                  from gtksourcebufferoutputstream.h:26:
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 gtksourcefile.h:184:66: warning: 'GTimeVal' is deprecated: Use 'GDateTime'
 instead [-Wdeprecated-declarations]
   184 |
 GTimeVal       modification_time);
       |
 ^~~~~~~~
 /opt/local/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
   580 | struct _GTimeVal
       |        ^~~~~~~~~
 mv -f .deps/libgtksourceview_core_la-gtksourcebufferinputstream.Tpo .deps
 /libgtksourceview_core_la-gtksourcebufferinputstream.Plo
 mv -f .deps/libgtksourceview_core_la-gtksourcebufferinternal.Tpo .deps
 /libgtksourceview_core_la-gtksourcebufferinternal.Plo
 gtksourcecompletioncontainer.c: In function 'get_max_width':
 gtksourcecompletioncontainer.c:58:17: warning: 'gdk_screen_get_width' is
 deprecated [-Wdeprecated-declarations]
    58 |                 max_width = gdk_screen_get_width (screen) -
 xorigin;
       |                 ^~~~~~~~~
 In file included from
 /opt/local/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                  from /opt/local/include/gtk-3.0/gdk/gdk.h:32,
                  from /opt/local/include/gtk-3.0/gtk/gtk.h:30,
                  from gtksourcecompletioncontainer.h:25,
                  from gtksourcecompletioncontainer.c:33:
 /opt/local/include/gtk-3.0/gdk/gdkscreen.h:58:14: note: declared here
    58 | gint         gdk_screen_get_width             (GdkScreen
 *screen);
       |              ^~~~~~~~~~~~~~~~~~~~
 mv -f .deps/libgtksourceview_core_la-gtksourcecompletioncontainer.Tpo
 .deps/libgtksourceview_core_la-gtksourcecompletioncontainer.Plo
 mv -f .deps/libgtksourceview_core_la-gtksourcebufferoutputstream.Tpo .deps
 /libgtksourceview_core_la-gtksourcebufferoutputstream.Plo
 mv -f .deps/libgtksourceview_core_la-gtksourcecompletionmodel.Tpo .deps
 /libgtksourceview_core_la-gtksourcecompletionmodel.Plo
 make[4]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11/gtksourceview'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11/gtksourceview'
 make[2]: *** [all] Error 2
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11/gtksourceview'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_gtksourceview3/gtksourceview3/work/gtksourceview-3.24.11"
 && /usr/bin/make -j6 -w all CFLAGS="-Os -pipe -isysroot/ -arch ppc"
 LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/ -arch ppc"
 Exit code: 2
 }}}

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


More information about the macports-tickets mailing list