Bug#984254: netpanzer: ftbfs with GCC-11

Matthias Klose doko at debian.org
Wed Mar 3 16:15:50 GMT 2021


Package: src:netpanzer
Version: 0.8.7+ds-3
Severity: normal
Tags: sid bookworm
User: debian-gcc at 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/netpanzer_0.8.7+ds-3_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.

[...]
                 from src/NetPanzer/Network/ClientSocket.hpp:24,
                 from src/NetPanzer/Classes/Network/NetworkClient.hpp:25,
                 from src/NetPanzer/Bot/Bot.cpp:28:
src/Lib/Network/SocketBase.hpp:48:46: error: ISO C++17 does not allow dynamic exception specifications
   48 |     SocketBase(const Address &a, bool isTcp) throw(NetworkException);
      |                                              ^~~~~
src/Lib/Network/SocketBase.hpp:49:45: error: ISO C++17 does not allow dynamic exception specifications
   49 |     SocketBase(SOCKET fd, const Address &a) throw(NetworkException);
      |                                             ^~~~~
src/Lib/Network/SocketBase.hpp:60:25: error: ISO C++17 does not allow dynamic exception specifications
   60 |     void setReuseAddr() throw(NetworkException);
      |                         ^~~~~
src/Lib/Network/SocketBase.hpp:61:23: error: ISO C++17 does not allow dynamic exception specifications
   61 |     void setNoDelay() throw(NetworkException);
      |                       ^~~~~
src/Lib/Network/SocketBase.hpp:64:46: error: ISO C++17 does not allow dynamic exception specifications
   64 |     void bindSocketTo(const Address& toaddr) throw(NetworkException);
      |                                              ^~~~~
src/Lib/Network/SocketBase.hpp:65:23: error: ISO C++17 does not allow dynamic exception specifications
   65 |     void bindSocket() throw(NetworkException) { bindSocketTo(addr); };
      |                       ^~~~~
src/Lib/Network/SocketBase.hpp:66:21: error: ISO C++17 does not allow dynamic exception specifications
   66 |     void doListen() throw(NetworkException);
      |                     ^~~~~
src/Lib/Network/SocketBase.hpp:67:22: error: ISO C++17 does not allow dynamic exception specifications
   67 |     void doConnect() throw(NetworkException);
      |                      ^~~~~
src/Lib/Network/SocketBase.hpp:68:47: error: ISO C++17 does not allow dynamic exception specifications
   68 |     int  doSend(const void* data, size_t len) throw(NetworkException);
      |                                               ^~~~~
src/Lib/Network/SocketBase.hpp:69:46: error: ISO C++17 does not allow dynamic exception specifications
   69 |     int  doReceive(void* buffer, size_t len) throw(NetworkException);
      |                                              ^~~~~
src/Lib/Network/SocketBase.hpp:70:72: error: ISO C++17 does not allow dynamic exception specifications
   70 |     int  doSendTo(const Address& toaddr, const void* data, size_t len) throw(NetworkException);
      |                                                                        ^~~~~
src/Lib/Network/SocketBase.hpp:71:72: error: ISO C++17 does not allow dynamic exception specifications
   71 |     size_t  doReceiveFrom(Address& fromaddr, void* buffer, size_t len) throw(NetworkException);
      |                                                                        ^~~~~
src/Lib/Network/SocketBase.hpp:72:40: error: ISO C++17 does not allow dynamic exception specifications
   72 |     SOCKET doAccept(Address& fromaddr) throw(NetworkException);
      |                                        ^~~~~
src/Lib/Network/SocketBase.hpp:76:19: error: ISO C++17 does not allow dynamic exception specifications
   76 |     void create() throw(NetworkException);
      |                   ^~~~~
src/Lib/Network/SocketBase.hpp:77:27: error: ISO C++17 does not allow dynamic exception specifications
   77 |     void setNonBlocking() throw(NetworkException);
      |                           ^~~~~
In file included from src/NetPanzer/Network/ProxyServer.hpp:24,
                 from src/NetPanzer/Network/ClientSocket.hpp:24,
                 from src/NetPanzer/Classes/Network/NetworkClient.hpp:25,
                 from src/NetPanzer/Bot/Bot.cpp:28:
src/Lib/Network/TCPSocket.hpp:49:61: error: ISO C++17 does not allow dynamic exception specifications
   49 |     TCPSocket(const Address& address, TCPSocketObserver *o) throw(NetworkException);
      |                                                             ^~~~~
src/Lib/Network/TCPSocket.hpp:50:86: error: ISO C++17 does not allow dynamic exception specifications
   50 |     TCPSocket(const std::string& host,const std::string& port, TCPSocketObserver *o) throw(NetworkException);
      |                                                                                      ^~~~~
src/Lib/Network/TCPSocket.hpp:54:52: error: ISO C++17 does not allow dynamic exception specifications
   54 |     size_t send(const void* data, size_t datasize) throw(NetworkException);
      |                                                    ^~~~~
src/Lib/Network/TCPSocket.hpp:67:69: error: ISO C++17 does not allow dynamic exception specifications
   67 |     TCPSocket(SOCKET fd, const Address& addr, TCPSocketObserver *o) throw(NetworkException);
      |                                                                     ^~~~~
scons: *** [build/release/src/NetPanzer/Bot/Bot.o] Error 1
scons: building terminated because of errors.
make[1]: *** [debian/rules:10: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-games-devel mailing list