[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075051: gtk-vector-screenshot: ftbfs with GCC-14



Package: src:gtk-vector-screenshot
Version: 0.3.3-2
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/gtk-vector-screenshot_0.3.3-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 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-14/porting_to.html

[...]
checking whether to build static libraries... no
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK3... yes
checking for X... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
touch debian/stamp-autotools
/usr/bin/make -C . 
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make  all-am
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gcc -DHAVE_CONFIG_H -I. -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.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 -pthread    -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu99 -Wall -c -o take-vector-screenshot.o take-vector-screenshot.c
take-vector-screenshot.c: In function ‘pdfscreenshot_window_selected’:
take-vector-screenshot.c:42:5: warning: ‘gdk_pointer_ungrab’ is deprecated: Use 'gdk_device_ungrab' instead [-Wdeprecated-declarations]
   42 |     gdk_pointer_ungrab(event->time);
      |     ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from take-vector-screenshot.c:20:
/usr/include/gtk-3.0/gdk/gdkmain.h:100:15: note: declared here
  100 | void          gdk_pointer_ungrab     (guint32       time_);
      |               ^~~~~~~~~~~~~~~~~~
take-vector-screenshot.c:45:5: warning: ‘gtk_button_released’ is deprecated [-Wdeprecated-declarations]
   45 |     gtk_button_released(GTK_BUTTON(button));
      |     ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtk.h:54:
/usr/include/gtk-3.0/gtk/gtkbutton.h:111:16: note: declared here
  111 | void           gtk_button_released          (GtkButton      *button);
      |                ^~~~~~~~~~~~~~~~~~~
take-vector-screenshot.c: In function ‘pdfscreenshot_select_window’:
take-vector-screenshot.c:110:5: warning: ‘gdk_device_grab’ is deprecated: Use 'gdk_seat_grab' instead [-Wdeprecated-declarations]
  110 |     gdk_device_grab(
      |     ^~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkdnd.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkevents.h:34,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:31,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32:
/usr/include/gtk-3.0/gdk/gdkdevice.h:230:15: note: declared here
  230 | GdkGrabStatus gdk_device_grab        (GdkDevice        *device,
      |               ^~~~~~~~~~~~~~~
take-vector-screenshot.c:119:5: warning: ‘gdk_cursor_unref’ is deprecated: Use 'g_object_unref' instead [-Wdeprecated-declarations]
  119 |     gdk_cursor_unref(cursor);
      |     ^~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdk.h:34:
/usr/include/gtk-3.0/gdk/gdkcursor.h:247:13: note: declared here
  247 | void        gdk_cursor_unref             (GdkCursor       *cursor);
      |             ^~~~~~~~~~~~~~~~
take-vector-screenshot.c: In function ‘pdfscreenshot_window_create’:
take-vector-screenshot.c:149:17: error: assignment to ‘GtkWindow *’ {aka ‘struct _GtkWindow *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types]
  149 |     main_window = window;
      |                 ^
make[2]: *** [Makefile:560: take-vector-screenshot.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:395: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [/usr/share/cdbs/1/class/makefile.mk:77: debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: