Bug#957716: ptouch-driver: ftbfs with GCC-10
Package: src:ptouch-driver
Version: 1.4.2-3
Severity: normal
Tags: sid bullseye
User: debian-gcc@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/ptouch-driver_1.4.2-3_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
[...]
configure: WARNING: unrecognized options: --disable-maintainer-mode
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build -O--parallel
make -j4
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make all-am
make[2]: Entering directory '/<<PKGBUILDDIR>>'
gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o rastertoptch-rastertoptch.o `test -f 'rastertoptch.c' || echo './'`rastertoptch.c
rastertoptch.c: In function ‘parse_options’:
rastertoptch.c:482:3: warning: ‘ppdOpenFile’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
482 | ppd = ppdOpenFile(getenv("PPD"));
| ^~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:389:20: note: declared here
389 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~~~~
rastertoptch.c:489:5: warning: ‘ppdLastError’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
489 | status = ppdLastError(&linenum);
| ^~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:403:21: note: declared here
403 | extern ppd_status_t ppdLastError(int *line) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~~~~~
rastertoptch.c:491:5: warning: ‘ppdErrorString’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
491 | fprintf(stderr, "DEBUG: %s on line %d.\n", ppdErrorString(status), linenum);
| ^~~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:398:20: note: declared here
398 | extern const char *ppdErrorString(ppd_status_t status) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~~~~~~~
rastertoptch.c:495:3: warning: ‘ppdMarkDefaults’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
495 | ppdMarkDefaults(ppd);
| ^~~~~~~~~~~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:384:14: note: declared here
384 | extern void ppdMarkDefaults(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~~~~~~~~
rastertoptch.c:496:3: warning: ‘cupsMarkOptions’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
496 | cupsMarkOptions(ppd, num_options, cups_options);
| ^~~~~~~~~~~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:362:13: note: declared here
362 | extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~~~~~~~~
rastertoptch.c:499:5: warning: ‘ppdFindMarkedChoice’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
499 | ppd_choice_t *choice = ppdFindMarkedChoice(ppd, "RollFedMedia");
| ^~~~~~~~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:377:22: note: declared here
377 | extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
| ^~~~~~~~~~~~~~~~~~~
rastertoptch.c:560:3: warning: ‘ppdClose’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
560 | ppdClose(ppd);
| ^~~~~~~~
In file included from rastertoptch.c:315:
/usr/include/cups/ppd.h:364:14: note: declared here
364 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead.");
| ^~~~~~~~
gcc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o rastertoptch rastertoptch-rastertoptch.o -lm -lcupsimage -lcups
/usr/bin/ld: rastertoptch-rastertoptch.o: in function `emit_raster_lines':
./rastertoptch.c:1548: undefined reference to `RLE_store_line'
/usr/bin/ld: ./rastertoptch.c:1540: undefined reference to `generate_emit_line'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:463: rastertoptch] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:362: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:13: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: