Bug#955663: pangox-compat: FTBFS: pangox.c:282:13: error: ‘PangoFontClass’ {aka ‘struct _PangoFontClass’} has no member named ‘find_shaper’

Lucas Nussbaum lucas at debian.org
Fri Apr 3 20:37:53 BST 2020


Source: pangox-compat
Version: 0.0.2-5
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200402 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"pangox-compat\" -DPACKAGE_TARNAME=\"pangox-compat\" -DPACKAGE_VERSION=\"0.0.2\" -DPACKAGE_STRING=\"pangox-compat\ 0.0.2\" -DPACKAGE_BUGREPORT=\"/dev/null\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pangox-compat\" -DVERSION=\"0.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I.  -DG_LOG_DOMAIN=\"PangoX-Compat\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DPANGO_MODULE_PREFIX=_pango_basic_x -DSYSCONFDIR=\"/etc\" -pthread -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libpangox_1_0_la-pangox.lo `test -f 'pangox.c' || echo './'`pangox.c
> libtool: compile:  gcc -DPACKAGE_NAME=\"pangox-compat\" -DPACKAGE_TARNAME=\"pangox-compat\" -DPACKAGE_VERSION=\"0.0.2\" "-DPACKAGE_STRING=\"pangox-compat 0.0.2\"" -DPACKAGE_BUGREPORT=\"/dev/null\" -DPACKAGE_URL=\"\" -DPACKAGE=\"pangox-compat\" -DVERSION=\"0.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -DG_LOG_DOMAIN=\"PangoX-Compat\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DPANGO_MODULE_PREFIX=_pango_basic_x -DSYSCONFDIR=\"/etc\" -pthread -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c pangox.c  -fPIC -DPIC -o .libs/libpangox_1_0_la-pangox.o
> pangox.c: In function ‘pango_x_font_class_init’:
> pangox.c:282:13: error: ‘PangoFontClass’ {aka ‘struct _PangoFontClass’} has no member named ‘find_shaper’
>   282 |   font_class->find_shaper = pango_x_font_find_shaper;
>       |             ^~
> 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:625:23: note: declared here
>   625 | 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,
>       |                ^~~~~~~~~~~~~~
> pangox.c: In function ‘pango_x_font_find_shaper’:
> pangox.c:1380:3: warning: ‘pango_script_for_unichar’ is deprecated: Use 'g_unichar_get_script' instead [-Wdeprecated-declarations]
>  1380 |   script = pango_script_for_unichar (ch);
>       |   ^~~~~~
> In file included from /usr/include/pango-1.0/pango/pango-gravity.h:112,
>                  from /usr/include/pango-1.0/pango/pango-types.h:196,
>                  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:
> /usr/include/pango-1.0/pango/pango-script.h:310:13: note: declared here
>   310 | PangoScript pango_script_for_unichar         (gunichar             ch) G_GNUC_CONST;
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~
> pangox.c:1381:3: warning: ‘pango_map_get_engine’ is deprecated [-Wdeprecated-declarations]
>  1381 |   return (PangoEngineShape *)pango_map_get_engine (shape_map, script);
>       |   ^~~~~~
> In file included from pangox-private.h:26,
>                  from pangox.c:30:
> /usr/include/pango-1.0/pango/pango-modules.h:63:16: note: declared here
>    63 | PangoEngine *  pango_map_get_engine  (PangoMap            *map,
>       |                ^~~~~~~~~~~~~~~~~~~~
> make[1]: *** [Makefile:534: libpangox_1_0_la-pangox.lo] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/04/02/pangox-compat_0.0.2-5_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-gnome-maintainers mailing list