FTBFS with GCC 11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Fix Released
|
Undecided
|
Sergio Durigan Junior |
Bug Description
nut is FTBFS'ing when compiled with GCC 11 due to:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-
In file included from nutclient.cpp:20:
nutclient.h:135:86: error: ISO C++17 does not allow dynamic exception specifications
135 | virtual void authenticate(const std::string& user, const std::string& passwd)
| ^~~~~
nutclient.h:141:30: error: ISO C++17 does not allow dynamic exception specifications
141 | virtual void logout(
| ^~~~~
nutclient.h:154:58: error: ISO C++17 does not allow dynamic exception specifications
154 | virtual Device getDevice(const std::string& name)throw(
| ^~~~~
nutclient.h:159:46: error: ISO C++17 does not allow dynamic exception specifications
159 | virtual std::set<Device> getDevices(
| ^~~~~
...
This is happening because GCC 11 defaults to C++17 which doesn't allow dynamic exception specifications.
Upstream has fixed the bug:
https:/
I'm preparing an MP and will post it soon.
Related branches
- Bryce Harrington (community): Approve
- Utkarsh Gupta (community): Needs Information
-
Diff: 1012 lines (+990/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/Remove-dynamic-exception-specifications-from-clients.patch (+981/-0)
debian/patches/series (+1/-0)
This bug was fixed in the package nut - 2.7.4-13ubuntu5
---------------
nut (2.7.4-13ubuntu5) impish; urgency=medium
* d/p/Remove- dynamic- exception- specifications- from-clients. patch:
Fix FTBFS with GCC 11 due to C++17 not allowing dynamic exception
specifications anymore. (LP: #1939744)
-- Sergio Durigan Junior <email address hidden> Thu, 12 Aug 2021 15:51:12 -0400