[Pkg-ayatana-devel] Bug#957032: ayatana-indicator-printers: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 11:57:00 BST 2020


Package: src:ayatana-indicator-printers
Version: 0.1.9-3
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/ayatana-indicator-printers_0.1.9-3_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from /usr/include/libayatana-indicator3-0.4/libayatana-indicator/indicator-object.h:27,
                 from indicator-printers.h:22,
                 from indicator-printers.c:21:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
 1308 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
indicator-printers.c: In function ‘indicator_printers_init’:
indicator-printers.c:275:13: warning: G_ADD_PRIVATE
  275 |                                         IndicatorPrintersPrivate);
      |             ^              
indicator-menu-item.c: In function ‘gtk_widget_get_font_size’:
indicator-menu-item.c:54:5: warning: ‘gtk_style_context_get_font’ is deprecated: Use 'gtk_style_context_get' instead [-Wdeprecated-declarations]
   54 |     font = gtk_style_context_get_font (gtk_widget_get_style_context (widget),
      |     ^~~~
In file included from /usr/include/gtk-3.0/gtk/gtkicontheme.h:27,
                 from /usr/include/gtk-3.0/gtk/gtk.h:127,
                 from indicator-menu-item.h:22,
                 from indicator-menu-item.c:19:
/usr/include/gtk-3.0/gtk/gtkstylecontext.h:1211:6: note: declared here
 1211 |      gtk_style_context_get_font             (GtkStyleContext *context,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
indicator-menu-item.c: In function ‘indicator_menu_item_class_init’:
indicator-menu-item.c:219:5: warning: ‘g_type_class_add_private’ is deprecated [-Wdeprecated-declarations]
  219 |     g_type_class_add_private (klass, sizeof (IndicatorMenuItemPrivate));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/gobject/gobject.h:24,
                 from /usr/include/glib-2.0/gobject/gbinding.h:29,
                 from /usr/include/glib-2.0/glib-object.h:23,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from indicator-menu-item.h:22,
                 from indicator-menu-item.c:19:
/usr/include/glib-2.0/gobject/gtype.h:1308:10: note: declared here
 1308 | void     g_type_class_add_private       (gpointer                    g_class,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
indicator-menu-item.c: In function ‘indicator_menu_item_init’:
indicator-menu-item.c:268:13: warning: G_ADD_PRIVATE
  268 |                                         IndicatorMenuItemPrivate);
      |             ^              
libtool: link: gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=deprecated-declarations -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs -Wl,--as-needed -o ayatana-indicator-printers-service ayatana_indicator_printers_service-indicator-printers-service.o ayatana_indicator_printers_service-indicator-printers-menu.o ayatana_indicator_printers_service-indicator-printer-state-notifier.o ayatana_indicator_printers_service-spawn-printer-settings.o ayatana_indicator_printers_service-cups-notifier.o  -layatana-indicator3 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -ldbusmenu-glib -lcups
/usr/bin/ld: ayatana_indicator_printers_service-indicator-printer-state-notifier.o:./src/indicator-printer-state-notifier.c:55: multiple definition of `properties'; ayatana_indicator_printers_service-indicator-printers-menu.o:./src/indicator-printers-menu.c:45: first defined here
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=deprecated-declarations  -module -avoid-version -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -o libayatana-printersmenu.la -rpath /usr/lib/ayatana-indicators3/7/ libayatana_printersmenu_la-indicator-printers.lo libayatana_printersmenu_la-indicator-menu-item.lo -layatana-indicator3 -ldbusmenu-gtk3 -ldbusmenu-glib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm 
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:574: ayatana-indicator-printers-service] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: gcc -shared  -fPIC -DPIC  .libs/libayatana_printersmenu_la-indicator-printers.o .libs/libayatana_printersmenu_la-indicator-menu-item.o   -layatana-indicator3 -ldbusmenu-gtk3 -ldbusmenu-glib -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lm  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,defs -Wl,--as-needed   -Wl,-soname -Wl,libayatana-printersmenu.so -o .libs/libayatana-printersmenu.so
libtool: link: ( cd ".libs" && rm -f "libayatana-printersmenu.la" && ln -s "../libayatana-printersmenu.la" "libayatana-printersmenu.la" )
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: *** [Makefile:451: all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:473: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:404: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-ayatana-devel mailing list