Bug#925858: wmfire: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:48:38 GMT 2019


Package: src:wmfire
Version: 1.2.4-2
Severity: normal
Tags: sid bullseye
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-9

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-9/g++-9, but succeeds to build with gcc-8/g++-8. 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/gcc9-20190321/wmfire_1.2.4-2_unstable_gcc9.log
The last lines of the build log are at the end of this report.

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

GCC 9 also passes the linker option --as-needed by default; typical
build issues are passing libraries before object files to the linker,
or underlinking of convenience libraries built from the same source.

[...]
checking for libgtop2 libs... 
checking for strstr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
configure: WARNING: unrecognized options: --disable-maintainer-mode
   dh_auto_build -a
	make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
gcc -DPACKAGE_NAME=\"wmfire\" -DPACKAGE_TARNAME=\"wmfire\" -DPACKAGE_VERSION=\"1.2.4\" -DPACKAGE_STRING=\"wmfire\ 1.2.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"wmfire\" -DVERSION=\"1.2.4\" -DHAVE_LIBX11=1 -DHAVE_LIBXEXT=1 -DHAVE_LIBM=1 -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRSTR=1 -I.  -I/usr/X11R6/include -I/usr/local/include -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -c -o wmfire.o wmfire.c
wmfire.c:580:36: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  580 |   memcpy(&bm.rgb[i * 3], &bm.flame[bm.cmap[i] * 3], 3);
      |                                    ^~
wmfire.c:580:27: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  580 |   memcpy(&bm.rgb[i * 3], &bm.flame[bm.cmap[i] * 3], 3);
      |                           ^~
wmfire.c:580:11: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  580 |   memcpy(&bm.rgb[i * 3], &bm.flame[bm.cmap[i] * 3], 3);
      |           ^~
wmfire.c:574:86: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  574 |    bm.cmap[j] = (bm.cmap[j + XMAX - 1] + bm.cmap[j + XMAX] + bm.cmap[j + XMAX + 1] + bm.cmap[j]) >> 2;
      |                                                                                      ^~
wmfire.c:574:62: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  574 |    bm.cmap[j] = (bm.cmap[j + XMAX - 1] + bm.cmap[j + XMAX] + bm.cmap[j + XMAX + 1] + bm.cmap[j]) >> 2;
      |                                                              ^~
wmfire.c:574:42: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  574 |    bm.cmap[j] = (bm.cmap[j + XMAX - 1] + bm.cmap[j + XMAX] + bm.cmap[j + XMAX + 1] + bm.cmap[j]) >> 2;
      |                                          ^~
wmfire.c:574:18: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  574 |    bm.cmap[j] = (bm.cmap[j + XMAX - 1] + bm.cmap[j + XMAX] + bm.cmap[j + XMAX + 1] + bm.cmap[j]) >> 2;
      |                  ^~
wmfire.c:574:4: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  574 |    bm.cmap[j] = (bm.cmap[j + XMAX - 1] + bm.cmap[j + XMAX] + bm.cmap[j + XMAX + 1] + bm.cmap[j]) >> 2;
      |    ^~
wmfire.c:535:14: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  535 |      memset(&bm.cmap[29 * XMAX + 20], 255, 16);
      |              ^~
wmfire.c:534:14: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  534 |      memset(&bm.cmap[28 * XMAX + 20], 255, 16);
      |              ^~
wmfire.c:533:14: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  533 |      memset(&bm.cmap[27 * XMAX + 20], 255, 16);
      |              ^~
wmfire.c:521:26: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  521 |   gdk_window_get_pointer(bm.win, &x, &y, NULL);
      |                          ^~
wmfire.c:517:54: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  517 |   bm.cmap[(random() % XMAX) + ((YMAX - 1) * XMAX)] = bm.cmap[i + ((YMAX - 1) * XMAX)] >> 1;
      |                                                      ^~
wmfire.c:517:3: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  517 |   bm.cmap[(random() % XMAX) + ((YMAX - 1) * XMAX)] = bm.cmap[i + ((YMAX - 1) * XMAX)] >> 1;
      |   ^~
wmfire.c:515:3: warning: 'bm' is static but used in inline function 'draw_fire' which is not static
  515 |   bm.cmap[(random() % XMAX) + ((YMAX - 1) * XMAX)] = random() % NCOLOURS;
      |   ^~
gcc  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lXext -lX11 -L/usr/X11R6/lib -L/usr/local/lib -Wl,-z,relro -Wl,--as-needed  -lgdk-x11-2.0 -lpangocairo-1.0  -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lgtop-2.0 -lglib-2.0 -o wmfire wmfire.o -Wl,-z,relro -Wl,--as-needed  -lgdk-x11-2.0 -lpangocairo-1.0  -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lgtop-2.0 -lglib-2.0 -lm -lXext -lX11 
/usr/bin/ld: wmfire.o: in function `main':
./src/wmfire.c:263: undefined reference to `draw_fire'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:347: wmfire] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:412: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 returned exit code 2
make: *** [debian/rules:6: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the Pkg-wmaker-devel mailing list