[Pkg-ayatana-devel] Bug#893513: libayatana-indicator FTBFS: error: assignment from incompatible pointer type

Helmut Grohne helmut at subdivi.de
Mon Mar 19 14:46:18 UTC 2018


Source: libayatana-indicator
Version: 0.6.1-1
Severity: serious
User: helmutg at debian.org
Usertags: rebootstrap

After failing to cross build libayatana-indicator, I tried to build it
natively, but it fails the same way:

| /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../libayatana-indicator -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/libayatana-ido3-0.4 -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/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include  -DG_LOG_DOMAIN=\"libayatana-indicator\" -Wall -Werror -Wno-error=deprecated-declarations -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o libayatana_indicator3_la-indicator-ng.lo `test -f 'indicator-ng.c' || echo '../../../libayatana-indicator/'`indicator-ng.c
| libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../libayatana-indicator -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/libayatana-ido3-0.4 -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/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DG_LOG_DOMAIN=\"libayatana-indicator\" -Wall -Werror -Wno-error=deprecated-declarations -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ../../../libayatana-indicator/indicator-ng.c  -fPIC -DPIC -o .libs/libayatana_indicator3_la-indicator-ng.o
| ../../../libayatana-indicator/indicator-ng.c: In function 'indicator_ng_init':
| ../../../libayatana-indicator/indicator-ng.c:690:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
|    self->entry.label = g_object_ref_sink (gtk_label_new (NULL));
|                      ^
| ../../../libayatana-indicator/indicator-ng.c:691:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
|    self->entry.image = g_object_ref_sink (gtk_image_new ());
|                      ^
| ../../../libayatana-indicator/indicator-ng.c:693:20: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
|    self->entry.menu = g_object_ref_sink (gtk_menu_new ());
|                     ^
| cc1: all warnings being treated as errors
| make[5]: *** [Makefile:770: libayatana_indicator3_la-indicator-ng.lo] Error 1
| make[5]: Leaving directory '/<<PKGBUILDDIR>>/builddir/gtk3/libayatana-indicator'
| make[4]: *** [Makefile:520: all] Error 2
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/builddir/gtk3/libayatana-indicator'
| make[3]: *** [Makefile:439: all-recursive] Error 1
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/builddir/gtk3'
| make[2]: *** [Makefile:370: all] Error 2
| make[2]: Leaving directory '/<<PKGBUILDDIR>>/builddir/gtk3'
| dh_auto_build: cd builddir/gtk3 && make -j1 returned exit code 2
| make[1]: *** [debian/rules:33: dobuild-gtk3] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:20: build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

Helmut



More information about the Pkg-ayatana-devel mailing list