fail build
config.status: executing libtool commands
CC libpangox_1_0_la-pangox.lo
In file included from pangox.c:30:
pangox-private.h:34:13: error: field 'font' has incomplete type
34 | PangoFont font;
| ^~~~
pangox.c:66:3: error: unknown type name 'PangoFontClass'
66 | PangoFontClass parent_class;
| ^~~~~~~~~~~~~~
pangox.c:69:8: error: unknown type name 'PangoFontClass'
69 | static PangoFontClass *parent_class; /* Parent class structure for PangoXFont */
| ^~~~~~~~~~~~~~
pangox.c: In function 'pango_x_font_class_init':
pangox.c:273:3: error: unknown type name 'PangoFontClass'; did you mean 'PangoXFontClass'?
273 | PangoFontClass *font_class = PANGO_FONT_CLASS (class);
| ^~~~~~~~~~~~~~
| PangoXFontClass
pangox.c:273:32: warning: implicit declaration of function 'PANGO_FONT_CLASS'; did you mean 'PANGO_X_FONT_CLASS'? [-Wimplicit-function-declaration]
273 | PangoFontClass *font_class = PANGO_FONT_CLASS (class);
| ^~~~~~~~~~~~~~~~
| PANGO_X_FONT_CLASS
pangox.c:273:32: warning: initialization of 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
pangox.c:280:13: error: request for member 'describe' in something not a structure or union
280 | font_class->describe = pango_x_font_describe;
| ^~
pangox.c:281:13: error: request for member 'get_coverage' in something not a structure or union
281 | font_class->get_coverage = pango_x_font_get_coverage;
| ^~
pangox.c:282:13: error: request for member 'find_shaper' in something not a structure or union
282 | font_class->find_shaper = pango_x_font_find_shaper;
| ^~
pangox.c:283:13: error: request for member 'get_glyph_extents' in something not a structure or union
283 | font_class->get_glyph_extents = pango_x_font_get_glyph_extents;
| ^~
pangox.c:284:13: error: request for member 'get_metrics' in something not a structure or union
284 | font_class->get_metrics = pango_x_font_get_metrics;
| ^~
pangox.c:285:13: error: request for member 'get_font_map' in something not a structure or union
285 | font_class->get_font_map = pango_x_font_get_font_map;
| ^~
In file included from /usr/include/pango-1.0/pango/pango-font.h:26,
from /usr/include/pango-1.0/pango/pango-attributes.h:25,
from /usr/include/pango-1.0/pango/pango.h:25,
from pango-impl-utils.h:28,
from pangox.c:29:
pangox.c: In function 'pango_x_render':
pangox.c:465:44: error: dereferencing pointer to incomplete type 'PangoFontMetrics' {aka 'struct _PangoFontMetrics'}
465 | y1 = glyph_y - PANGO_PIXELS (metrics->ascent);
| ^~
/usr/include/pango-1.0/pango/pango-types.h:93:33: note: in definition of macro 'PANGO_PIXELS'
93 | #define PANGO_PIXELS(d) (((int)(d) + 512) >> 10)
| ^
pangox.c: In function 'itemize_string_foreach':
pangox.c:758:4: warning: 'pango_font_find_shaper' is deprecated [-Wdeprecated-declarations]
758 | shaper = pango_font_find_shaper (font, language, wc);
| ^~~~~~
In file included from /usr/include/pango-1.0/pango/pango-attributes.h:25,
from /usr/include/pango-1.0/pango/pango.h:25,
from pango-impl-utils.h:28,
from pangox.c:29:
/usr/include/pango-1.0/pango/pango-font.h:474:23: note: declared here
474 | PangoEngineShape * pango_font_find_shaper (PangoFont *font,
| ^~~~~~~~~~~~~~~~~~~~~~
pangox.c: In function 'pango_x_font_get_metrics':
pangox.c:983:17: warning: implicit declaration of function 'pango_font_metrics_new'; did you mean 'pango_font_metrics_ref'? [-Wimplicit-function-declaration]
983 | metrics = pango_font_metrics_new ();
| ^~~~~~~~~~~~~~~~~~~~~~
| pango_font_metrics_ref
pangox.c:983:15: warning: assignment to 'PangoFontMetrics *' {aka 'struct _PangoFontMetrics *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
983 | metrics = pango_font_metrics_new ();
| ^
pangox.c: In function 'pango_x_get_shaper_map':
pangox.c:1359:3: warning: 'pango_find_map' is deprecated [-Wdeprecated-declarations]
1359 | return pango_find_map (language, engine_type_id, render_type_id);
| ^~~~~~
In file included from pangox-private.h:26,
from pangox.c:30:
/usr/include/pango-1.0/pango/pango-modules.h:59:16: note: declared here
59 | PangoMap * pango_find_map (PangoLanguage *language,
| ^~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
from /usr/include/glib-2.0/glib.h:32,
from pango-impl-utils.h:26,
from pangox.c:29:
pangox.c: In function 'pango_x_font_find_shaper':
/usr/include/glib-2.0/glib/gthread.h:257:29: warning: assignment to 'PangoEngineShape *' {aka 'struct _PangoEngineShape *'} from incompatible pointer type 'PangoEngine *' {aka 'struct _PangoEng
257 | (void) (0 ? *(location) = (result) : 0); \
| ^
pangox.c:1378:5: note: in expansion of macro 'g_once_init_leave'
1378 | g_once_init_leave (&shaper,
| ^~~~~~~~~~~~~~~~~
make: *** [Makefile:529: libpangox_1_0_la-pangox.lo] Error 1
with latest commit in this git and this patch (from archlinux) https://git.archlinux.org/svntogit/packages.git/tree/trunk/0001-Re-add-pango_x_get_shaper_map-it-is-still-used-in-th.patch?h=packages/pangox-compat
greetings
Edited by Andre Klapper