Bug#958007: xvkbd: ftbfs with GCC-10

Matthias Klose doko at debian.org
Fri Apr 17 12:14:30 BST 2020


Package: src:xvkbd
Version: 4.0-1
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/xvkbd_4.0-1_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

[...]
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in .
make[3]: Entering directory '/<<PKGBUILDDIR>>'
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_I18N -DUSE_XTEST -Wall -DSHAREDIR=\"/usr/share\/xvkbd\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o xvkbd-xvkbd.o `test -f 'xvkbd.c' || echo './'`xvkbd.c
gcc -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_I18N -DUSE_XTEST -Wall -DSHAREDIR=\"/usr/share\/xvkbd\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o xvkbd-findwidget.o `test -f 'findwidget.c' || echo './'`findwidget.c
[ ! -e xvkbd.1 ] ||  rm xvkbd.1
ln -s xvkbd.man xvkbd.1
xvkbd.c: In function ‘PropsItemToggled’:
xvkbd.c:2332:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2332 |   appres.key_click_duration = (int)XawToggleGetCurrent(click_buttons);
      |                               ^
xvkbd.c:2333:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2333 |   appres.autoclick_delay = (int)XawToggleGetCurrent(autoclick_buttons);
      |                            ^
xvkbd.c: In function ‘PropsSetState’:
xvkbd.c:2375:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2375 |   XawToggleSetCurrent(click_buttons, (XtPointer)appres.key_click_duration);
      |                                      ^
xvkbd.c:2376:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2376 |   XawToggleSetCurrent(autoclick_buttons, (XtPointer)appres.autoclick_delay);
      |                                          ^
xvkbd.c: In function ‘PopupPropsPanel’:
xvkbd.c:2433:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2433 |           XtNradioData, (XtPointer)val,
      |                         ^
xvkbd.c:2455:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2455 |           XtNradioData, (XtPointer)val,
      |                         ^
xvkbd.c:2459:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 2459 |       (XtPointer)val);
      |       ^
xvkbd.c: In function ‘main’:
xvkbd.c:4010:69: warning: macro "__DATE__" might prevent reproducible builds [-Wdate-time]
 4010 |     fprintf(stdout, "%s, compiled %s\n", PROGRAM_NAME_WITH_VERSION, __DATE__);
      |                                                                     ^~~~~~~~
xvkbd.c: In function ‘KeyPressed’:
xvkbd.c:2779:27: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2779 |       if (!appres.secure) system(value + 1);
      |                           ^~~~~~~~~~~~~~~~~
xvkbd.c:2959:33: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2959 |             if (!appres.secure) system("xvidtune -next");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
xvkbd.c:2961:33: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2961 |             if (!appres.secure) system("xvidtune -prev");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
xvkbd.c: In function ‘MenuSelected’:
xvkbd.c:2581:25: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2581 |     if (!appres.secure) system(appres.show_manual_command);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:495,
                 from xvkbd.c:22:
In function ‘strncpy’,
    inlined from ‘ReadProperty’ at xvkbd.c:3518:2,
    inlined from ‘main’ at xvkbd.c:4062:5:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 19 bytes from a string of length 199 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DUSE_I18N -DUSE_XTEST -Wall -DSHAREDIR=\"/usr/share\/xvkbd\" -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o xvkbd xvkbd-xvkbd.o xvkbd-findwidget.o -lXaw7 -lXt -lX11 -lXmu -lXt -lX11 -lXtst -lXtst -lXt -lX11 
/usr/bin/ld: xvkbd-findwidget.o:./resources.h:113: multiple definition of `appres'; xvkbd-xvkbd.o:./resources.h:113: first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:464: xvkbd] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:573: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:367: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-a11y-devel mailing list