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

Bug#984056: ifhp: ftbfs with GCC-11



Package: src:ifhp
Version: 3.5.20-17
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/ifhp_3.5.20-17_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
ifhp.c:3023:17: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 3023 |                 if( filename ) SAFEFREE(filename); filename = 0;
      |                 ^~
ifhp.c:3023:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 3023 |                 if( filename ) SAFEFREE(filename); filename = 0;
      |                                                    ^~~~~~~~
ifhp.c:3041:17: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 3041 |                 if( filename ) SAFEFREE(filename); filename = 0;
      |                 ^~
ifhp.c:3041:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 3041 |                 if( filename ) SAFEFREE(filename); filename = 0;
      |                                                    ^~~~~~~~
ifhp.c:3057:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 3057 |         if( filename ) SAFEFREE(filename); filename = 0;
      |         ^~
ifhp.c:3057:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 3057 |         if( filename ) SAFEFREE(filename); filename = 0;
      |                                            ^~~~~~~~
ifhp.c: In function ‘Send_job’:
ifhp.c:4350:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 4350 |         if( pgm ) SAFEFREE(pgm); pgm = 0;
      |         ^~
ifhp.c:4350:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 4350 |         if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                                  ^~~
ifhp.c:4527:33: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 4527 |                                 if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                                 ^~
ifhp.c:4527:58: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 4527 |                                 if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                                                          ^~~
ifhp.c:4605:17: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 4605 |                 if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                 ^~
ifhp.c:4605:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 4605 |                 if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                                          ^~~
ifhp.c: In function ‘Filter_file’:
ifhp.c:5349:25: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 5349 |                         if(s) SAFEFREE(s); s = 0;
      |                         ^~
ifhp.c:5349:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 5349 |                         if(s) SAFEFREE(s); s = 0;
      |                                            ^
ifhp.c:5444:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 5444 |         if( orig_pgm ) SAFEFREE(orig_pgm); orig_pgm = 0;
      |         ^~
ifhp.c:5444:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 5444 |         if( orig_pgm ) SAFEFREE(orig_pgm); orig_pgm = 0;
      |                                            ^~~~~~~~
ifhp.c: In function ‘Get_prog_status’:
ifhp.c:5802:25: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 5802 |                         if(s) SAFEFREE(s); s = 0;
      |                         ^~
ifhp.c:5802:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 5802 |                         if(s) SAFEFREE(s); s = 0;
      |                                            ^
ifhp.c:5891:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
 5891 |         if( pgm ) SAFEFREE(pgm); pgm = 0;
      |         ^~
ifhp.c:5891:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 5891 |         if( pgm ) SAFEFREE(pgm); pgm = 0;
      |                                  ^~~
cc1: all warnings being treated as errors
make[2]: *** [<builtin>: ifhp.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:52: src] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:33: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: