Package: src:clipit
Version: 1.4.5+git20210313-3
Severity: important
Tags: sid forky
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-15

[This bug is NOT targeted to the upcoming trixie release]

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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.

The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/clipit_1.4.5+git20210313-3_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html

[...]
   82 | GtkWidget* gtk_image_menu_item_new_with_mnemonic (const gchar      
*label);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:930:17: warning: ‘gtk_image_new_from_stock’ is deprecated: Use 
'gtk_image_new_from_icon_name' instead [-Wdeprecated-declarations]
  930 |                 menu_image = gtk_image_new_from_stock(GTK_STOCK_FIND, 
GTK_ICON_SIZE_MENU);
      |                 ^~~~~~~~~~
/usr/include/gtk-3.0/gtk/gtkimage.h:122:12: note: declared here
  122 | GtkWidget* gtk_image_new_from_stock     (const gchar     *stock_id,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~
main.c:930:17: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
  930 |                 menu_image = gtk_image_new_from_stock(GTK_STOCK_FIND, 
GTK_ICON_SIZE_MENU);
      |                 ^~~~~~~~~~
main.c:931:17: warning: ‘gtk_image_menu_item_set_image’ is deprecated 
[-Wdeprecated-declarations]
  931 |                 
gtk_image_menu_item_set_image((GtkImageMenuItem*)menu_item, menu_image);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:92:12: note: declared 
here
   92 | void       gtk_image_menu_item_set_image         (GtkImageMenuItem 
*image_menu_item,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:935:17: warning: ‘gtk_image_menu_item_new_from_stock’ is deprecated: Use 
'gtk_menu_item_new' instead [-Wdeprecated-declarations]
  935 |                 menu_item = 
gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
      |                 ^~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:84:12: note: declared 
here
   84 | GtkWidget* gtk_image_menu_item_new_from_stock    (const gchar      
*stock_id,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:935:17: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
  935 |                 menu_item = 
gtk_image_menu_item_new_from_stock(GTK_STOCK_PREFERENCES, NULL);
      |                 ^~~~~~~~~
main.c:939:17: warning: ‘gtk_image_menu_item_new_from_stock’ is deprecated: Use 
'gtk_menu_item_new' instead [-Wdeprecated-declarations]
  939 |                 menu_item = 
gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
      |                 ^~~~~~~~~
/usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:84:12: note: declared 
here
   84 | GtkWidget* gtk_image_menu_item_new_from_stock    (const gchar      
*stock_id,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:939:17: warning: ‘GtkStock’ is deprecated [-Wdeprecated-declarations]
  939 |                 menu_item = 
gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
      |                 ^~~~~~~~~
main.c: In function ‘create_app_indicator’:
main.c:957:17: warning: ‘app_indicator_set_attention_icon’ is deprecated: Use 
app_indicator_set_attention_icon_full instead [-Wdeprecated-declarations]
  957 |                 app_indicator_set_attention_icon (indicator, ICON);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libayatana-appindicator3-0.1/libayatana-appindicator/app-indicator.h:262:33:
 note: declared here
  262 | void                            app_indicator_set_attention_icon 
(AppIndicator       *self,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c: In function ‘search_hotkey’:
main.c:1030:36: error: passing argument 2 of ‘g_timeout_add’ from incompatible 
pointer type [-Wincompatible-pointer-types]
 1030 |         g_timeout_add(POPUP_DELAY, show_search, NULL);
      |                                    ^~~~~~~~~~~
      |                                    |
      |                                    gboolean (*)(void) {aka int 
(*)(void)}
In file included from /usr/include/glib-2.0/glib/giochannel.h:35,
                 from /usr/include/glib-2.0/glib.h:56,
                 from main.c:29:
/usr/include/glib-2.0/glib/gmain.h:932:54: note: expected ‘GSourceFunc’ {aka 
‘int (*)(void *)’} but argument is of type ‘gboolean (*)(void)’ {aka ‘int 
(*)(void)’}
  932 |                                      GSourceFunc     function,
      |                                      ~~~~~~~~~~~~~~~~^~~~~~~~
In file included from main.c:43:
manage.h:27:10: note: ‘show_search’ declared here
   27 | gboolean show_search();
      |          ^~~~~~~~~~~
/usr/include/glib-2.0/glib/gmain.h:199:20: note: ‘GSourceFunc’ declared here
  199 | typedef gboolean (*GSourceFunc)       (gpointer user_data);
      |                    ^~~~~~~~~~~
make[3]: *** [Makefile:429: main.o] Error 1
make[3]: Leaving directory 
'/build/reproducible-path/clipit-1.4.5+git20210313/src'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/clipit-1.4.5+git20210313'
make[1]: *** [Makefile:360: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/clipit-1.4.5+git20210313'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:11: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to