[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1114380: simple-tpm-pk11: FTBFS: /usr/include/gtest/internal/gtest-port.h:273:2: error: #error C++ versions less than C++17 are not supported.



Package: src:simple-tpm-pk11
Version: 0.06-5
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

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

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

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

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 add an affects on src:simple-tpm-pk11, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   debian/rules override_dh_autoreconf
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir m4
dh_autoreconf
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'm4'.
libtoolize: copying file 'm4/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:10: warning: The macro 'AC_CONFIG_HEADER' is obsolete.
configure.ac:10: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:10: the top level
configure.ac:7: installing 'm4/compile'
configure.ac:7: installing 'm4/config.guess'
configure.ac:7: installing 'm4/config.sub'
configure.ac:5: installing 'm4/install-sh'
configure.ac:5: installing 'm4/missing'
Makefile.am: installing 'm4/depcomp'
parallel-tests: installing 'm4/test-driver'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_configure
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for tss/tspi.h... yes
checking for Tspi_GetAttribUint32 in -ltspi... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether optarg is declared... yes
checking whether optind is declared... yes
checking whether optreset is declared... no
checking for BN_new in -lcrypto... yes
checking for opencryptoki/pkcs11.h... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for RSA_get0_key... yes
checking for RSA_set0_key... yes
checking for RSA_get0_factors... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

  simple-tpm-pk11 version 0.06
  Prefix.........: /usr
  Debug Build....: 
  C Compiler.....: gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2
  C++ Compiler...: g++ -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -Wdate-time -D_FORTIFY_SOURCE=2
  Linker.........: /usr/bin/ld -m elf_x86_64 -Wl,-z,relro -Wl,-z,now -lcrypto -ltspi 

   dh_auto_build
	make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make  all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in doc
make[3]: Entering directory '/<<PKGBUILDDIR>>/doc'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/keygen.o src/keygen.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/common.o src/common.cc
src/common.cc:158:40: warning: â??RSA* RSA_new()â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  158 | typedef AutoFree<RSA, RSA_new, RSA_free> RSAWrap;
      |                                        ^
In file included from src/common.cc:37:
/usr/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
src/common.cc: In function â??stpm::SoftwareKey stpm::generate_software_key(int)â??:
src/common.cc:381:27: warning: â??int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  381 |   if (!RSA_generate_key_ex(rsa.get(), bits, f4.get(), NULL)) {
      |        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:271:27: note: declared here
  271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
src/common.cc:386:15: warning: â??void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  386 |   RSA_get0_key(rsa.get(), const_cast<const BIGNUM**>(&m), const_cast<const BIGNUM**>(&e), NULL);
      |   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:228:28: note: declared here
  228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
      |                            ^~~~~~~~~~~~
src/common.cc:390:19: warning: â??void RSA_get0_factors(const RSA*, const BIGNUM**, const BIGNUM**)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  390 |   RSA_get0_factors(rsa.get(), const_cast<const BIGNUM**>(&p), NULL);
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:231:28: note: declared here
  231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
      |                            ^~~~~~~~~~~~~~~~
src/common.cc: In function â??std::string stpm::public_decrypt(const Key&, const std::string&)â??:
src/common.cc:806:20: warning: â??int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  806 |   if (!RSA_set0_key(rsa.get(), string2bn(key.modulus), string2bn(key.exponent),
      |        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  807 |                     NULL)) {
      |                     ~~~~~
/usr/include/openssl/rsa.h:218:27: note: declared here
  218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
      |                           ^~~~~~~~~~~~
src/common.cc:812:40: warning: â??int RSA_size(const RSA*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  812 |   std::vector<unsigned char> d(RSA_size(rsa.get()));
      |                                ~~~~~~~~^~~~~~~~~~~
/usr/include/openssl/rsa.h:215:27: note: declared here
  215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
      |                           ^~~~~~~~
src/common.cc:813:37: warning: â??int RSA_public_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  813 |   const int len = RSA_public_decrypt(
      |                   ~~~~~~~~~~~~~~~~~~^
  814 |       sig.size(),
      |       ~~~~~~~~~~~                    
  815 |       reinterpret_cast<const unsigned char*>(sig.data()),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  816 |       &d[0],
      |       ~~~~~~                         
  817 |       rsa.get(),
      |       ~~~~~~~~~~                     
  818 |       RSA_PKCS1_PADDING);
      |       ~~~~~~~~~~~~~~~~~~             
/usr/include/openssl/rsa.h:299:5: note: declared here
  299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
      |     ^~~~~~~~~~~~~~~~~~
src/common.cc: In instantiation of â??stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = bignum_st; T* (* New)() = BN_new; void (* Free)(T*) = BN_free]â??:
src/common.cc:296:14:   required from here
  296 |   BIGNUMWrap ret;
      |              ^~~
src/common.cc:137:7: warning: â??throwâ?? will always call â??terminateâ?? [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to â??noexceptâ??
src/common.cc: In instantiation of â??stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = rsa_st; T* (* New)() = RSA_new; void (* Free)(T*) = RSA_free]â??:
src/common.cc:378:11:   required from here
  378 |   RSAWrap rsa;
      |           ^~~
src/common.cc:137:7: warning: â??throwâ?? will always call â??terminateâ?? [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to â??noexceptâ??
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/tspiwrap.o src/tspiwrap.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/wrap_main.o src/wrap_main.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/sign.o src/sign.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/exfiltrate.o src/exfiltrate.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/verify.o src/verify.cc
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/libsimple_tpm_pk11_la-pk11.lo `test -f 'src/pk11.cc' || echo './'`src/pk11.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/pk11.cc  -fPIC -DPIC -o src/.libs/libsimple_tpm_pk11_la-pk11.o
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/libsimple_tpm_pk11_la-session.lo `test -f 'src/session.cc' || echo './'`src/session.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/session.cc  -fPIC -DPIC -o src/.libs/libsimple_tpm_pk11_la-session.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/session.cc -o src/libsimple_tpm_pk11_la-session.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/pk11.cc -o src/libsimple_tpm_pk11_la-pk11.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/libsimple_tpm_pk11_la-tspiwrap.lo `test -f 'src/tspiwrap.cc' || echo './'`src/tspiwrap.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/tspiwrap.cc  -fPIC -DPIC -o src/.libs/libsimple_tpm_pk11_la-tspiwrap.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/tspiwrap.cc -o src/libsimple_tpm_pk11_la-tspiwrap.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/libsimple_tpm_pk11_la-common.lo `test -f 'src/common.cc' || echo './'`src/common.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/common.cc  -fPIC -DPIC -o src/.libs/libsimple_tpm_pk11_la-common.o
/bin/bash ./libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14  -Wl,-z,relro -Wl,-z,now -o stpm-keygen src/keygen.o src/common.o src/tspiwrap.o src/wrap_main.o  -lcrypto -ltspi 
libtool: link: g++ -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o stpm-keygen src/keygen.o src/common.o src/tspiwrap.o src/wrap_main.o  -lcrypto -ltspi
src/common.cc:158:40: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  158 | typedef AutoFree<RSA, RSA_new, RSA_free> RSAWrap;
      |                                        ^
In file included from src/common.cc:37:
/usr/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
src/common.cc: In function 'stpm::SoftwareKey stpm::generate_software_key(int)':
src/common.cc:381:27: warning: 'int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  381 |   if (!RSA_generate_key_ex(rsa.get(), bits, f4.get(), NULL)) {
      |        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:271:27: note: declared here
  271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
src/common.cc:386:15: warning: 'void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  386 |   RSA_get0_key(rsa.get(), const_cast<const BIGNUM**>(&m), const_cast<const BIGNUM**>(&e), NULL);
      |   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:228:28: note: declared here
  228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
      |                            ^~~~~~~~~~~~
src/common.cc:390:19: warning: 'void RSA_get0_factors(const RSA*, const BIGNUM**, const BIGNUM**)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  390 |   RSA_get0_factors(rsa.get(), const_cast<const BIGNUM**>(&p), NULL);
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:231:28: note: declared here
  231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
      |                            ^~~~~~~~~~~~~~~~
/bin/bash ./libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14  -Wl,-z,relro -Wl,-z,now -o stpm-sign src/wrap_main.o src/common.o src/tspiwrap.o src/sign.o  -lcrypto -ltspi 
src/common.cc: In function 'std::string stpm::public_decrypt(const Key&, const std::string&)':
src/common.cc:806:20: warning: 'int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  806 |   if (!RSA_set0_key(rsa.get(), string2bn(key.modulus), string2bn(key.exponent),
      |        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  807 |                     NULL)) {
      |                     ~~~~~
/usr/include/openssl/rsa.h:218:27: note: declared here
  218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
      |                           ^~~~~~~~~~~~
src/common.cc:812:40: warning: 'int RSA_size(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  812 |   std::vector<unsigned char> d(RSA_size(rsa.get()));
      |                                ~~~~~~~~^~~~~~~~~~~
/usr/include/openssl/rsa.h:215:27: note: declared here
  215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
      |                           ^~~~~~~~
src/common.cc:813:37: warning: 'int RSA_public_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  813 |   const int len = RSA_public_decrypt(
      |                   ~~~~~~~~~~~~~~~~~~^
  814 |       sig.size(),
      |       ~~~~~~~~~~~                    
  815 |       reinterpret_cast<const unsigned char*>(sig.data()),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  816 |       &d[0],
      |       ~~~~~~                         
  817 |       rsa.get(),
      |       ~~~~~~~~~~                     
  818 |       RSA_PKCS1_PADDING);
      |       ~~~~~~~~~~~~~~~~~~             
/usr/include/openssl/rsa.h:299:5: note: declared here
  299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
      |     ^~~~~~~~~~~~~~~~~~
src/common.cc: In instantiation of 'stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = bignum_st; T* (* New)() = BN_new; void (* Free)(T*) = BN_free]':
src/common.cc:296:14:   required from here
  296 |   BIGNUMWrap ret;
      |              ^~~
src/common.cc:137:7: warning: 'throw' will always call 'terminate' [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to 'noexcept'
src/common.cc: In instantiation of 'stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = rsa_st; T* (* New)() = RSA_new; void (* Free)(T*) = RSA_free]':
src/common.cc:378:11:   required from here
  378 |   RSAWrap rsa;
      |           ^~~
src/common.cc:137:7: warning: 'throw' will always call 'terminate' [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to 'noexcept'
libtool: link: g++ -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o stpm-sign src/wrap_main.o src/common.o src/tspiwrap.o src/sign.o  -lcrypto -ltspi
/bin/bash ./libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14  -Wl,-z,relro -Wl,-z,now -o stpm-exfiltrate src/wrap_main.o src/common.o src/tspiwrap.o src/exfiltrate.o  -lcrypto -ltspi 
libtool: link: g++ -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o stpm-exfiltrate src/wrap_main.o src/common.o src/tspiwrap.o src/exfiltrate.o  -lcrypto -ltspi
/bin/bash ./libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14  -Wl,-z,relro -Wl,-z,now -o stpm-verify src/wrap_main.o src/common.o src/tspiwrap.o src/verify.o  -lcrypto -ltspi 
libtool: link: g++ -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o stpm-verify src/wrap_main.o src/common.o src/tspiwrap.o src/verify.o  -lcrypto -ltspi
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c src/common.cc -o src/libsimple_tpm_pk11_la-common.o >/dev/null 2>&1
/bin/bash ./libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -version-info 0:0:0 -Wl,-z,relro -Wl,-z,now -o libsimple-tpm-pk11.la -rpath /usr/lib/x86_64-linux-gnu src/libsimple_tpm_pk11_la-pk11.lo src/libsimple_tpm_pk11_la-session.lo src/libsimple_tpm_pk11_la-tspiwrap.lo src/libsimple_tpm_pk11_la-common.lo  -lcrypto -ltspi 
libtool: link: g++  -fPIC -DPIC -shared -nostdlib /usr/lib/g [too-long-redacted] ibs/libsimple-tpm-pk11.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libsimple-tpm-pk11.so.0" && ln -s "libsimple-tpm-pk11.so.0.0.0" "libsimple-tpm-pk11.so.0")
libtool: link: (cd ".libs" && rm -f "libsimple-tpm-pk11.so" && ln -s "libsimple-tpm-pk11.so.0.0.0" "libsimple-tpm-pk11.so")
libtool: link: ar cr .libs/libsimple-tpm-pk11.a  src/libsimple_tpm_pk11_la-pk11.o src/libsimple_tpm_pk11_la-session.o src/libsimple_tpm_pk11_la-tspiwrap.o src/libsimple_tpm_pk11_la-common.o
libtool: link: ranlib .libs/libsimple-tpm-pk11.a
libtool: link: ( cd ".libs" && rm -f "libsimple-tpm-pk11.la" && ln -s "../libsimple-tpm-pk11.la" "libsimple-tpm-pk11.la" )
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
	make -j2 check "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making check in doc
make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make  stpm-keygen_test stpm-sign_test common_test pk11_test stpm-verify_test
make[3]: Entering directory '/<<PKGBUILDDIR>>'
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/src/gtest -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/stpm_keygen_test-keygen.o `test -f 'src/keygen.cc' || echo './'`src/keygen.cc
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/src/gtest -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/stpm_keygen_test-keygen_test.o `test -f 'src/keygen_test.cc' || echo './'`src/keygen_test.cc
In file included from /usr/include/gtest/gtest-message.h:57,
                 from /usr/include/gtest/gtest-assertion-result.h:46,
                 from /usr/include/gtest/gtest.h:63,
                 from src/keygen_test.cc:17:
/usr/include/gtest/internal/gtest-port.h:273:2: error: #error C++ versions less than C++17 are not supported.
  273 | #error C++ versions less than C++17 are not supported.
      |  ^~~~~
In file included from /usr/include/gtest/gtest.h:67:
/usr/include/gtest/gtest-param-test.h:483:56: error: missing template arguments before â??(â?? token
  483 |           typename StdFunction = decltype(std::function(std::declval<Func>()))>
      |                                                        ^
/usr/include/gtest/gtest-param-test.h:493:56: error: missing template arguments before â??(â?? token
  493 |           typename StdFunction = decltype(std::function(std::declval<Func>()))>
      |                                                        ^
g++ -DHAVE_CONFIG_H -I.   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/src/gtest -std=gnu++0x -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -std=gnu++14 -c -o src/stpm_keygen_test-common.o `test -f 'src/common.cc' || echo './'`src/common.cc
make[3]: *** [Makefile:1378: src/stpm_keygen_test-keygen_test.o] Error 1
make[3]: *** Waiting for unfinished jobs....
src/common.cc:158:40: warning: â??RSA* RSA_new()â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  158 | typedef AutoFree<RSA, RSA_new, RSA_free> RSAWrap;
      |                                        ^
In file included from src/common.cc:37:
/usr/include/openssl/rsa.h:212:28: note: declared here
  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
src/common.cc: In function â??stpm::SoftwareKey stpm::generate_software_key(int)â??:
src/common.cc:381:27: warning: â??int RSA_generate_key_ex(RSA*, int, BIGNUM*, BN_GENCB*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  381 |   if (!RSA_generate_key_ex(rsa.get(), bits, f4.get(), NULL)) {
      |        ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:271:27: note: declared here
  271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
src/common.cc:386:15: warning: â??void RSA_get0_key(const RSA*, const BIGNUM**, const BIGNUM**, const BIGNUM**)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  386 |   RSA_get0_key(rsa.get(), const_cast<const BIGNUM**>(&m), const_cast<const BIGNUM**>(&e), NULL);
      |   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:228:28: note: declared here
  228 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
      |                            ^~~~~~~~~~~~
src/common.cc:390:19: warning: â??void RSA_get0_factors(const RSA*, const BIGNUM**, const BIGNUM**)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  390 |   RSA_get0_factors(rsa.get(), const_cast<const BIGNUM**>(&p), NULL);
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/rsa.h:231:28: note: declared here
  231 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
      |                            ^~~~~~~~~~~~~~~~
src/common.cc: In function â??std::string stpm::public_decrypt(const Key&, const std::string&)â??:
src/common.cc:806:20: warning: â??int RSA_set0_key(RSA*, BIGNUM*, BIGNUM*, BIGNUM*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  806 |   if (!RSA_set0_key(rsa.get(), string2bn(key.modulus), string2bn(key.exponent),
      |        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  807 |                     NULL)) {
      |                     ~~~~~
/usr/include/openssl/rsa.h:218:27: note: declared here
  218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
      |                           ^~~~~~~~~~~~
src/common.cc:812:40: warning: â??int RSA_size(const RSA*)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  812 |   std::vector<unsigned char> d(RSA_size(rsa.get()));
      |                                ~~~~~~~~^~~~~~~~~~~
/usr/include/openssl/rsa.h:215:27: note: declared here
  215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
      |                           ^~~~~~~~
src/common.cc:813:37: warning: â??int RSA_public_decrypt(int, const unsigned char*, unsigned char*, RSA*, int)â?? is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  813 |   const int len = RSA_public_decrypt(
      |                   ~~~~~~~~~~~~~~~~~~^
  814 |       sig.size(),
      |       ~~~~~~~~~~~                    
  815 |       reinterpret_cast<const unsigned char*>(sig.data()),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  816 |       &d[0],
      |       ~~~~~~                         
  817 |       rsa.get(),
      |       ~~~~~~~~~~                     
  818 |       RSA_PKCS1_PADDING);
      |       ~~~~~~~~~~~~~~~~~~             
/usr/include/openssl/rsa.h:299:5: note: declared here
  299 | int RSA_public_decrypt(int flen, const unsigned char *from, unsigned char *to,
      |     ^~~~~~~~~~~~~~~~~~
src/common.cc: In instantiation of â??stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = bignum_st; T* (* New)() = BN_new; void (* Free)(T*) = BN_free]â??:
src/common.cc:296:14:   required from here
  296 |   BIGNUMWrap ret;
      |              ^~~
src/common.cc:137:7: warning: â??throwâ?? will always call â??terminateâ?? [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to â??noexceptâ??
src/common.cc: In instantiation of â??stpm::{anonymous}::AutoFree<T, New, Free>::~AutoFree() [with T = rsa_st; T* (* New)() = RSA_new; void (* Free)(T*) = RSA_free]â??:
src/common.cc:378:11:   required from here
  378 |   RSAWrap rsa;
      |           ^~~
src/common.cc:137:7: warning: â??throwâ?? will always call â??terminateâ?? [-Wterminate]
  137 |       throw;
      |       ^~~~~
src/common.cc:137:7: note: in C++11 destructors default to â??noexceptâ??
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:2140: check-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:1628: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 check "TESTSUITEFLAGS=-j2 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:25: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------


Reply to: