Bug#811576: FTBFS with GCC 6: statement indented as if it were guarded by

2017-01-08 Thread John Paul Adrian Glaubitz
I tried the attached patch, the build still fails, this time with a different
issue though:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -D_LINUX 
-DLOCALEDIR=\"/usr/share/locale\" -DTSS_LIB_IS_12 -Wdate-time 
-D_FORTIFY_SOURCE=2 -g -O2
-fdebug-prefix-map=/<>=. -fstack-protector-strong -Wformat 
-Werror=format-security -m64 -Wall -Werror -Wno-unused
-Wno-implicit-function-declaration -Wreturn-type -Wsign-compare -c tpm_unseal.c 
 -fPIC -DPIC -o .libs/tpm_unseal.o
tpm_unseal.c: In function 'tpmUnsealFile':
tpm_unseal.c:411:17: error: storage size of 'ctx' isn't known
  EVP_CIPHER_CTX ctx;
 ^~~
Makefile:566: recipe for target 'tpm_unseal.lo' failed
make[3]: *** [tpm_unseal.lo] Error 1
make[3]: Leaving directory '/<>/lib'
Makefile:457: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/<>'
Makefile:387: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/<>'
dh_auto_build: make -j1 returned exit code 2

If anyone is willing to provide a new patch or a fixed package, I'm happy to 
review
and sponsor the upload so that we can fix this issue.

Thanks,
Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#811576: FTBFS with GCC 6: statement indented as if it were guarded by

2016-01-19 Thread Martin Michlmayr
Package: tpm-tools
Version: 1.3.8-2
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-misleading-indentation

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> gcc -DHAVE_CONFIG_H -I. -I../..  -I../../include -D_LINUX -DTSS_LIB_IS_12 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -m64 -Wall -Werror -Wno-unused 
> -Wno-implicit-function-declaration -Wreturn-type -Wsign-compare -c -o 
> tpm_present.o tpm_present.c
> tpm_present.c: In function 'main':
> tpm_present.c:360:2: error: statement is indented as if it were guarded by... 
> [-Werror=misleading-indentation]
>   return iRc;
>   ^~
> 
> tpm_present.c:358:5: note: ...this 'if' clause, but it is not
>  if (szTpmPasswd && !isWellKnown)
>  ^~
> 
> cc1: all warnings being treated as errors
> Makefile:741: recipe for target 'tpm_present.o' failed
> make[4]: *** [tpm_present.o] Error 1
> make[4]: Leaving directory '/<>/src/tpm_mgmt'
> Makefile:400: recipe for target 'all-recursive' failed
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory '/<>/src'
> Makefile:456: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/<>'

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise