Bug#984329: shibboleth-resolver: ftbfs with GCC-11
Matthias Klose
doko at debian.org
Wed Mar 3 16:17:14 GMT 2021
Package: src:shibboleth-resolver
Version: 3.1.0-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/shibboleth-resolver_3.1.0-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.
[...]
| ^~~~~
/usr/include/log4shib/Category.hh:149:9: error: ISO C++17 does not allow dynamic exception specifications
149 | throw(std::invalid_argument);
| ^~~~~
In file included from /usr/include/log4shib/Appender.hh:21,
from /usr/include/log4shib/Category.hh:14,
from /usr/include/xmltooling/logging.h:34,
from shibresolver/internal.h:42,
from shibresolver/resolver.cpp:22:
/usr/include/log4shib/Priority.hh:106:9: error: ISO C++17 does not allow dynamic exception specifications
106 | throw(std::invalid_argument);
| ^~~~~
In file included from /usr/include/xmltooling/logging.h:34,
from shibresolver/internal.h:42,
from shibresolver/resolver.cpp:22:
/usr/include/log4shib/Category.hh:115:9: error: ISO C++17 does not allow dynamic exception specifications
115 | throw(std::invalid_argument);
| ^~~~~
/usr/include/log4shib/Category.hh:149:9: error: ISO C++17 does not allow dynamic exception specifications
149 | throw(std::invalid_argument);
| ^~~~~
shibresolver/resolver.cpp:115:12: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
115 | static auto_ptr<Mutex> g_lock(Mutex::create());
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from shibresolver/internal.h:41,
from shibresolver/resolver.cpp:22:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
make[3]: *** [Makefile:600: shibresolver/libshibresolver_lite_la-resolver.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
shibresolver/resolver.cpp:115:12: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
115 | static auto_ptr<Mutex> g_lock(Mutex::create());
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from /usr/include/boost/smart_ptr/scoped_ptr.hpp:22,
from /usr/include/boost/scoped_ptr.hpp:13,
from /usr/include/shibsp/TransactionLog.h:40,
from /usr/include/shibsp/SPConfig.h:34,
from shibresolver/resolver.h:28,
from shibresolver/internal.h:39,
from shibresolver/resolver.cpp:22:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
shibresolver/resolver.cpp: In member function ‘void shibresolver::RemotedResolver::resolve(const shibsp::Application&, const char*, const XMLCh*, const std::vector<const xmltooling::XMLObject*>&, const std::vector<shibsp::Attribute*>&, std::vector<shibsp::Attribute*>&) const’:
shibresolver/resolver.cpp:499:13: warning: ‘template<class> class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead [-Wdeprecated-declarations]
499 | auto_ptr<ResolutionContext> ctx(
| ^~~~~~~~
In file included from /usr/include/c++/11/memory:76,
from /usr/include/boost/smart_ptr/scoped_ptr.hpp:22,
from /usr/include/boost/scoped_ptr.hpp:13,
from /usr/include/shibsp/TransactionLog.h:40,
from /usr/include/shibsp/SPConfig.h:34,
from shibresolver/resolver.h:28,
from shibresolver/internal.h:39,
from shibresolver/resolver.cpp:22:
/usr/include/c++/11/bits/unique_ptr.h:57:28: note: declared here
57 | template<typename> class auto_ptr;
| ^~~~~~~~
make[3]: *** [Makefile:607: shibresolver/libshibresolver_la-resolver.lo] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:525: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:422: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:18: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
More information about the Pkg-shibboleth-devel
mailing list