Fails to build due to changes in gcc14:
pango.c: In function ‘_wrap_PangoFont__proxy_do_get_metrics’:
pango.c:3986:16: error: implicit declaration of function ‘pango_font_metrics_new’; did you mean ‘pango_font_metrics_ref’? [-Wimplicit-function-declaration]
3986 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~
| pango_font_metrics_ref
pango.c:3986:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
3986 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4000:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
4000 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4011:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
4011 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:4021:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
4021 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c: In function ‘_wrap_pango_font_map_get_shape_engine_type’:
atk.override: In function ‘_wrap_atk_component_get_position’:
pango.c:4710:11: error: implicit declaration of function ‘pango_font_map_get_shape_engine_type’; did you mean ‘_wrap_pango_font_map_get_shape_engine_type’? [-Wimplicit-function-declaration]
4710 | ret = pango_font_map_get_shape_engine_type(PANGO_FONT_MAP(self->obj));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| _wrap_pango_font_map_get_shape_engine_type
atk.override:142:5: warning: ‘atk_component_get_position’ is deprecated: Use 'atk_component_get_extents' instead [-Wdeprecated-declarations]
142 | atk_component_get_position(ATK_COMPONENT(self->obj), &x, &y, coord_type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/atk-1.0/atk/atk.h:27:
/usr/include/atk-1.0/atk/atkcomponent.h:250:6: note: declared here
250 | void atk_component_get_position (AtkComponent *component,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
atk.override: In function ‘_wrap_atk_component_get_size’:
atk.override:152:5: warning: ‘atk_component_get_size’ is deprecated: Use 'atk_component_get_extents' instead [-Wdeprecated-declarations]
152 | atk_component_get_size(ATK_COMPONENT(self->obj), &width, &height);
| ^~~~~~~~~~~~~~~~~~~~~~
pango.c:4710:9: error: assignment to ‘const gchar *’ {aka ‘const char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
4710 | ret = pango_font_map_get_shape_engine_type(PANGO_FONT_MAP(self->obj));
| ^
/usr/include/atk-1.0/atk/atkcomponent.h:255:6: note: declared here
255 | void atk_component_get_size (AtkComponent *component,
| ^~~~~~~~~~~~~~~~~~~~~~
atk.c: In function ‘_wrap_atk_component_remove_focus_handler’:
atk.c:5833:5: warning: ‘atk_component_remove_focus_handler’ is deprecated [-Wdeprecated-declarations]
5833 | atk_component_remove_focus_handler(ATK_COMPONENT(self->obj), handler_id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/atk-1.0/atk/atkcomponent.h:265:6: note: declared here
265 | void atk_component_remove_focus_handler (AtkComponent *component,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pango.c: In function ‘_wrap_PangoFontset__proxy_do_get_metrics’:
pango.c:5382:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
5382 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5392:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
5392 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5402:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
5402 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
pango.c:5411:16: error: returning ‘int’ from a function with return type ‘PangoFontMetrics *’ {aka ‘struct _PangoFontMetrics *’} makes pointer from integer without a cast [-Wint-conversion]
5411 | return pango_font_metrics_new();
| ^~~~~~~~~~~~~~~~~~~~~~~~
Pinned Comments
ragouel commented on 2022-06-11 23:26 (UTC) (edited on 2022-06-12 19:54 (UTC) by ragouel)
From official GNOME docs:
"Attention: PyGTK 2.24 will be the last release in the PyGTK series and will support the full GTK-2-24 API. PyGTK should not be used for new projects and existing PyGTK applications are recommended to be ported to PyGObject. See here for more information."
https://wiki.gnome.org/Projects/PyGTK/WhatsNew224
Please stop asking me to update this package. I only "keep" it, so that it is not messed with by others, as some older applications still rely on it to function.
Thank you.