Bug#966857: libtpms: FTBFS: tpm2/NVDynamic.c:126:10: error: ‘nvHandle’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

2020-08-08 Thread Seunghun Han
Hi Lucas,

On Mon, Aug 3, 2020 at 5:12 PM Lucas Nussbaum  wrote:
>
> Source: libtpms
> Version: 0.8.0~dev1-1.1
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20200802 ftbfs-bullseye
> ... [snip] ...
> > tpm2/NVDynamic.c: In function ‘NvNextByType’:
> > tpm2/NVDynamic.c:126:10: error: ‘nvHandle’ may be used uninitialized in 
> > this function [-Werror=maybe-uninitialized]
> >   126 |  *handle = nvHandle;
> >   |  ^~

Thank you for your notification. I just fixed the FTBFS bug and will
upload the newer version 0.8.0~dev1-1.2 soon.

Best regards,

Seunghun



Bug#966857: libtpms: FTBFS: tpm2/NVDynamic.c:126:10: error: ‘nvHandle’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

2020-08-03 Thread Lucas Nussbaum
Source: libtpms
Version: 0.8.0~dev1-1.1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200802 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
>  -Wdate-time -D_FORTIFY_SOURCE=2 -include tpm_library_conf.h 
> -I../include/libtpms -I../include/libtpms -fstack-protector-strong
> -D_POSIX_ -DTPM_POSIX -DTPM_LIBTPMS_CALLBACKS -I ./tpm2 -I ./tpm2/crypto -I 
> ./tpm2/crypto/openssl -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security 
> -DUSE_OPENSSL_FUNCTIONS_SYMMETRIC=1 -DUSE_OPENSSL_FUNCTIONS_EC=1 
> -DUSE_OPENSSL_FUNCTIONS_ECDSA=1 -DUSE_OPENSSL_FUNCTIONS_RSA=1  -Wall -Werror 
> -Wreturn-type -Wsign-compare -Wno-self-assign -c -o 
> tpm2/libtpms_tpm2_la-NVMem.lo `test -f 'tpm2/NVMem.c' || echo 
> './'`tpm2/NVMem.c
> tpm2/NVDynamic.c: In function ‘NvNextByType’:
> tpm2/NVDynamic.c:126:10: error: ‘nvHandle’ may be used uninitialized in this 
> function [-Werror=maybe-uninitialized]
>   126 |  *handle = nvHandle;
>   |  ^~
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time 
> -D_FORTIFY_SOURCE=2 -include tpm_library_conf.h -I../include/libtpms 
> -I../include/libtpms -fstack-protector-strong -D_POSIX_ -DTPM_POSIX 
> -DTPM_LIBTPMS_CALLBACKS -I ./tpm2 -I ./tpm2/crypto -I ./tpm2/crypto/openssl 
> -g -O2 "-fdebug-prefix-map=/<>=." -fstack-protector-strong 
> -Wformat -Werror=format-security -DUSE_OPENSSL_FUNCTIONS_SYMMETRIC=1 
> -DUSE_OPENSSL_FUNCTIONS_EC=1 -DUSE_OPENSSL_FUNCTIONS_ECDSA=1 
> -DUSE_OPENSSL_FUNCTIONS_RSA=1 -Wall -Werror -Wreturn-type -Wsign-compare 
> -Wno-self-assign -c tpm2/NVMem.c  -fPIC -DPIC -o 
> tpm2/.libs/libtpms_tpm2_la-NVMem.o
> /bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
>  -Wdate-time -D_FORTIFY_SOURCE=2 -include tpm_library_conf.h 
> -I../include/libtpms -I../include/libtpms -fstack-protector-strong
> -D_POSIX_ -DTPM_POSIX -DTPM_LIBTPMS_CALLBACKS -I ./tpm2 -I ./tpm2/crypto -I 
> ./tpm2/crypto/openssl -g -O2 -fdebug-prefix-map=/<>=. 
> -fstack-protector-strong -Wformat -Werror=format-security 
> -DUSE_OPENSSL_FUNCTIONS_SYMMETRIC=1 -DUSE_OPENSSL_FUNCTIONS_EC=1 
> -DUSE_OPENSSL_FUNCTIONS_ECDSA=1 -DUSE_OPENSSL_FUNCTIONS_RSA=1  -Wall -Werror 
> -Wreturn-type -Wsign-compare -Wno-self-assign -c -o 
> tpm2/libtpms_tpm2_la-NVReserved.lo `test -f 'tpm2/NVReserved.c' || echo 
> './'`tpm2/NVReserved.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time 
> -D_FORTIFY_SOURCE=2 -include tpm_library_conf.h -I../include/libtpms 
> -I../include/libtpms -fstack-protector-strong -D_POSIX_ -DTPM_POSIX 
> -DTPM_LIBTPMS_CALLBACKS -I ./tpm2 -I ./tpm2/crypto -I ./tpm2/crypto/openssl 
> -g -O2 "-fdebug-prefix-map=/<>=." -fstack-protector-strong 
> -Wformat -Werror=format-security -DUSE_OPENSSL_FUNCTIONS_SYMMETRIC=1 
> -DUSE_OPENSSL_FUNCTIONS_EC=1 -DUSE_OPENSSL_FUNCTIONS_ECDSA=1 
> -DUSE_OPENSSL_FUNCTIONS_RSA=1 -Wall -Werror -Wreturn-type -Wsign-compare 
> -Wno-self-assign -c tpm2/NVMem.c -o tpm2/libtpms_tpm2_la-NVMem.o >/dev/null 
> 2>&1
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time 
> -D_FORTIFY_SOURCE=2 -include tpm_library_conf.h -I../include/libtpms 
> -I../include/libtpms -fstack-protector-strong -D_POSIX_ -DTPM_POSIX 
> -DTPM_LIBTPMS_CALLBACKS -I ./tpm2 -I ./tpm2/crypto -I ./tpm2/crypto/openssl 
> -g -O2 "-fdebug-prefix-map=/<>=." -fstack-protector-strong 
> -Wformat -Werror=format-security -DUSE_OPENSSL_FUNCTIONS_SYMMETRIC=1 
> -DUSE_OPENSSL_FUNCTIONS_EC=1 -DUSE_OPENSSL_FUNCTIONS_ECDSA=1 
> -DUSE_OPENSSL_FUNCTIONS_RSA=1 -Wall -Werror -Wreturn-type -Wsign-compare 
> -Wno-self-assign -c tpm2/NVReserved.c  -fPIC -DPIC -o 
> tpm2/.libs/libtpms_tpm2_la-NVReserved.o
> tpm2/NVDynamic.c: At top level:
> cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been 
> intended to silence earlier diagnostics
> cc1: all warnings being treated as errors
> make[3]: *** [Makefile:2583: tpm2/libtpms_tpm2_la-NVDynamic.lo] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/08/02/libtpms_0.8.0~dev1-1.1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.