[pkg-opensc-maint] Bug#925796: opensc: ftbfs with GCC-9

Matthias Klose doko at debian.org
Wed Mar 27 19:47:28 GMT 2019


Package: src:opensc
Version: 0.19.0-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/opensc_0.19.0-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.

[...]
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-cflex.c -o pkcs15-cflex.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-jcop.lo pkcs15-jcop.c
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-starcos.lo pkcs15-starcos.c
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-setcos.lo pkcs15-setcos.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-jcop.c  -fPIC -DPIC -o .libs/pkcs15-jcop.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-starcos.c  -fPIC -DPIC -o .libs/pkcs15-starcos.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-setcos.c  -fPIC -DPIC -o .libs/pkcs15-setcos.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-jcop.c -o pkcs15-jcop.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-lib.c -o pkcs15-lib.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-incrypto34.lo pkcs15-incrypto34.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-setcos.c -o pkcs15-setcos.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-incrypto34.c  -fPIC -DPIC -o .libs/pkcs15-incrypto34.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-starcos.c -o pkcs15-starcos.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-muscle.lo pkcs15-muscle.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-incrypto34.c -o pkcs15-incrypto34.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-muscle.c  -fPIC -DPIC -o .libs/pkcs15-muscle.o
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-asepcos.lo pkcs15-asepcos.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-asepcos.c  -fPIC -DPIC -o .libs/pkcs15-asepcos.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-muscle.c -o pkcs15-muscle.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-rutoken.lo pkcs15-rutoken.c
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-entersafe.lo pkcs15-entersafe.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-rutoken.c  -fPIC -DPIC -o .libs/pkcs15-rutoken.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-entersafe.c  -fPIC -DPIC -o .libs/pkcs15-entersafe.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-asepcos.c -o pkcs15-asepcos.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-rutoken.c -o pkcs15-rutoken.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-epass2003.lo pkcs15-epass2003.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-entersafe.c -o pkcs15-entersafe.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-epass2003.c  -fPIC -DPIC -o .libs/pkcs15-epass2003.o
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-rtecp.lo pkcs15-rtecp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-rtecp.c  -fPIC -DPIC -o .libs/pkcs15-rtecp.o
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-myeid.lo pkcs15-myeid.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-myeid.c  -fPIC -DPIC -o .libs/pkcs15-myeid.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-epass2003.c -o pkcs15-epass2003.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-rtecp.c -o pkcs15-rtecp.o >/dev/null 2>&1
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-oberthur.lo pkcs15-oberthur.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-myeid.c -o pkcs15-myeid.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-oberthur.c  -fPIC -DPIC -o .libs/pkcs15-oberthur.o
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-oberthur-awp.lo pkcs15-oberthur-awp.c
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-authentic.lo pkcs15-authentic.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-oberthur-awp.c  -fPIC -DPIC -o .libs/pkcs15-oberthur-awp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-authentic.c  -fPIC -DPIC -o .libs/pkcs15-authentic.o
In file included from pkcs15-oberthur.c:29:
pkcs15-oberthur.c: In function 'cosm_write_tokeninfo.constprop':
../../src/libopensc/log.h:48:47: error: '%s' directive argument is null [-Werror=format-overflow=]
   48 | #define sc_debug(ctx, level, format, args...) sc_do_log(ctx, level, __FILE__, __LINE__, __FUNCTION__, format , ## args)
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs15-oberthur.c:73:2: note: in expansion of macro 'sc_debug'
   73 |  sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "cosm_write_tokeninfo() label '%s'; flags 0x%X", label, flags);
      |  ^~~~~~~~
pkcs15-oberthur.c:73:68: note: format string is defined here
   73 |  sc_debug(ctx, SC_LOG_DEBUG_NORMAL, "cosm_write_tokeninfo() label '%s'; flags 0x%X", label, flags);
      |                                                                    ^~
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -D'SC_PKCS15_PROFILE_DIRECTORY="/usr/share/opensc"' -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c -o pkcs15-iasecc.lo pkcs15-iasecc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-iasecc.c  -fPIC -DPIC -o .libs/pkcs15-iasecc.o
cc1: all warnings being treated as errors
make[4]: *** [Makefile:595: pkcs15-oberthur.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-authentic.c -o pkcs15-authentic.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-oberthur-awp.c -o pkcs15-oberthur-awp.o >/dev/null 2>&1
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -DSC_PKCS15_PROFILE_DIRECTORY=\"/usr/share/opensc\" -I../../src -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -Wno-unused-parameter -Werror -c pkcs15-iasecc.c -o pkcs15-iasecc.o >/dev/null 2>&1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/pkcs15init'
make[3]: *** [Makefile:442: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:563: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:472: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j4 returned exit code 2
make: *** [debian/rules:4: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2



More information about the pkg-opensc-maint mailing list