Bug#1021699: gimp: FTBFS: error: conflicting types for 'heif_init'
Andreas Beckmann
anbe at debian.org
Thu Oct 13 10:52:55 BST 2022
Source: gimp
Version: 2.99.10-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
Hi,
gimp/experimental recently started to FTBFS. The version in sid is not
affected.
...
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/babl-0.1 -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -g -O2 -ffile-prefix-map=/build/gimp-2.99.10=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -c -o file_heif-file-heif.o `test -f 'file-heif.c' || echo './'`file-heif.c
...
In file included from /usr/include/glib-2.0/gobject/gobject.h:26,
from /usr/include/glib-2.0/gobject/gbinding.h:31,
from /usr/include/glib-2.0/glib-object.h:24,
from /usr/include/gexiv2/gexiv2-metadata.h:14,
from /usr/include/gexiv2/gexiv2.h:13,
from file-heif.c:23:
file-heif.c:126:22: error: conflicting types for 'heif_init'; have 'void(Heif *)' {aka 'void(struct _Heif *)'}
126 | G_DEFINE_TYPE (Heif, heif, GIMP_TYPE_PLUG_IN)
| ^~~~
In file included from file-heif.c:21:
/usr/include/libheif/heif.h:312:19: note: previous declaration of 'heif_init' with type 'struct heif_error(struct heif_init_params *)'
312 | struct heif_error heif_init(struct heif_init_params*);
| ^~~~~~~~~
file-heif.c: In function 'save_image':
file-heif.c:2036:15: warning: 'gexiv2_metadata_has_tag' is deprecated: Use 'gexiv2_metadata_try_has_tag' instead [-Wdeprecated-declarations]
2036 | if (! gexiv2_metadata_has_tag (new_gexiv2metadata, exif_data[i]) &&
| ^~
/usr/include/gexiv2/gexiv2-metadata.h:410:25: note: declared here
410 | gboolean gexiv2_metadata_has_tag (GExiv2Metadata *self, const gchar* tag);
| ^~~~~~~~~~~~~~~~~~~~~~~
file-heif.c:2165:15: warning: 'gexiv2_metadata_has_tag' is deprecated: Use 'gexiv2_metadata_try_has_tag' instead [-Wdeprecated-declarations]
2165 | if (! gexiv2_metadata_has_tag (new_g2metadata, xmp_data[i]) &&
| ^~
/usr/include/gexiv2/gexiv2-metadata.h:410:25: note: declared here
410 | gboolean gexiv2_metadata_has_tag (GExiv2Metadata *self, const gchar* tag);
| ^~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:7299: file_heif-file-heif.o] Error 1
...
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gimp_2.99.10-1.log.gz
Type: application/gzip
Size: 143307 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20221013/2ac128de/attachment-0001.gz>
More information about the pkg-gnome-maintainers
mailing list