Bug#1082692: pegsolitaire: FTBFS: /usr/bin/ld: src/render.o: undefined reference to symbol 'fmin@@GLIBC_2.2.5'

Santiago Vila sanvila at debian.org
Tue Sep 24 18:42:00 BST 2024


Package: src:pegsolitaire
Version: 0.3-3
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    dh_auto_configure
    dh_auto_build
	make -j2 "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
./generate-data-header data/pegsolitaire.glade data/hole.svg data/peg.svg > data.h
msgfmt -c -o po/de.mo po/de.po
echo de > po/LINGUAS
msgfmt -c --desktop --template data/com.github.jnumm.pegsolitaire.desktop.in -o com.github.jnumm.pegsolitaire.desktop -d po
msgfmt -c --xml --template data/com.github.jnumm.pegsolitaire.appdata.xml.in -o com.github.jnumm.pegsolitaire.appdata.xml -d po
cc -I. -DPACKAGE='"pegsolitaire"' -DVERSION='"0.3"' -DLOCALEDIR='"/usr/share/locale"' -DENABLE_NLS -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes -Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings -fvisibility=hidden -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 -I/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0 -I/usr/include/libxml2 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o src/callbacks.o -c src/callbacks.c
cc -I. -DPACKAGE='"pegsolitaire"' -DVERSION='"0.3"' -DLOCALEDIR='"/usr/share/locale"' -DENABLE_NLS -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes -Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings -fvisibility=hidden -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 -I/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0 -I/usr/include/libxml2 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o src/game.o -c src/game.c
cc -I. -DPACKAGE='"pegsolitaire"' -DVERSION='"0.3"' -DLOCALEDIR='"/usr/share/locale"' -DENABLE_NLS -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes -Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings -fvisibility=hidden -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 -I/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0 -I/usr/include/libxml2 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o src/main.o -c src/main.c
cc -I. -DPACKAGE='"pegsolitaire"' -DVERSION='"0.3"' -DLOCALEDIR='"/usr/share/locale"' -DENABLE_NLS -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes -Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings -fvisibility=hidden -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 -I/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0 -I/usr/include/libxml2 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -o src/render.o -c src/render.c
In file included from src/render.c:22:
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0/librsvg/rsvg.h:1331:1: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
  1331 | #if LIBRSVG_CHECK_FEATURE(PIXBUF)
       | ^~~~~~~~~~~~~~~~~~~
src/render.c: In function ‘rsvg_to_pattern’:
src/render.c:98:5: warning: ‘rsvg_handle_get_dimensions’ is deprecated: Use 'rsvg_handle_get_intrinsic_size_in_pixels' instead [-Wdeprecated-declarations]
    98 |     rsvg_handle_get_dimensions(svg, &svg_dimensions);
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0/librsvg/rsvg.h:661:6: note: declared here
   661 | void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data);
       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/render.c:103:5: warning: ‘rsvg_handle_render_cairo’ is deprecated: Use 'rsvg_handle_render_document' instead [-Wdeprecated-declarations]
   103 |     rsvg_handle_render_cairo(svg, cr);
       |     ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0/librsvg/rsvg.h:1329:
/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0/librsvg/rsvg-cairo.h:90:10: note: declared here
    90 | gboolean rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
       |          ^~~~~~~~~~~~~~~~~~~~~~~~
cc -Wall -Wextra -Wpedantic -Wmissing-prototypes -Wstrict-prototypes -Wunused-macros -Wshadow -Wdouble-promotion -Wno-overlength-strings -fvisibility=hidden -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 -I/usr/lib/x86_64-linux-gnu/pkgconfig/../../../include/librsvg-2.0 -I/usr/include/libxml2 -pthread  -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wl,-z,relro -Wl,-z,now -o pegsolitaire src/callbacks.o src/game.o src/main.o src/render.o -Wl,--as-needed -lgtk-3 -lgdk-3 -lz -latk-1.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu/pkgconfig/../../../lib/x86_64-linux-gnu -lrsvg-2 -lcairo-gobject -lpng16 -ldav1d -lgdk_pixbuf-2.0 -lgio-2.0 -lxml2 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lharfbuzz -lfontconfig -lfreetype -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0
/usr/bin/ld: src/render.o: undefined reference to symbol 'fmin@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:42: pegsolitaire] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202409/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Pkg-games-devel mailing list