Package: libjsoncpp
Version: 0.10.5-1
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-deprecated-declarations

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.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/lib_json && /usr/bin/c++   
> -DJSON_DLL_BUILD -I/<<PKGBUILDDIR>>/include 
> -I/<<PKGBUILDDIR>>/src/lib_json/../../include  -g -O2 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2  -Werror -Wall -Wshadow -Wextra -pedantic -Wno-long-long 
> -Werror=strict-aliasing -O2 -g -DNDEBUG   -o 
> CMakeFiles/jsoncpp_lib_static.dir/json_writer.cpp.o -c 
> /<<PKGBUILDDIR>>/src/lib_json/json_writer.cpp
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/lib_json && /usr/bin/c++   
> -DJSON_DLL_BUILD -Djsoncpp_lib_EXPORTS -I/<<PKGBUILDDIR>>/include 
> -I/<<PKGBUILDDIR>>/src/lib_json/../../include  -g -O2 
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
> -D_FORTIFY_SOURCE=2  -Werror -Wall -Wshadow -Wextra -pedantic -Wno-long-long 
> -Werror=strict-aliasing -O2 -g -DNDEBUG -fPIC   -o 
> CMakeFiles/jsoncpp_lib.dir/json_reader.cpp.o -c 
> /<<PKGBUILDDIR>>/src/lib_json/json_reader.cpp
> /<<PKGBUILDDIR>>/src/lib_json/json_reader.cpp:35:14: error: 'template<class> 
> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
>  typedef std::auto_ptr<CharReader>   CharReaderPtr;
>               ^~~~~~~~
> 
> In file included from /usr/include/c++/6/memory:81:0,
>                  from /<<PKGBUILDDIR>>/src/lib_json/json_reader.cpp:18:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> 
> /<<PKGBUILDDIR>>/src/lib_json/json_reader.cpp:35:14: error: 'template<class> 
> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
>  typedef std::auto_ptr<CharReader>   CharReaderPtr;
>               ^~~~~~~~
> 
> In file included from /usr/include/c++/6/memory:81:0,
>                  from /<<PKGBUILDDIR>>/src/lib_json/json_reader.cpp:18:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> 
> /<<PKGBUILDDIR>>/src/lib_json/json_writer.cpp:51:14: error: 'template<class> 
> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
>  typedef std::auto_ptr<StreamWriter>   StreamWriterPtr;
>               ^~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
>                  from /usr/include/c++/6/locale:43,
>                  from /usr/include/c++/6/iomanip:43,
>                  from /<<PKGBUILDDIR>>/src/lib_json/json_writer.cpp:10:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> 
> /<<PKGBUILDDIR>>/src/lib_json/json_writer.cpp:51:14: error: 'template<class> 
> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
>  typedef std::auto_ptr<StreamWriter>   StreamWriterPtr;
>               ^~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
>                  from /usr/include/c++/6/locale:43,
>                  from /usr/include/c++/6/iomanip:43,
>                  from /<<PKGBUILDDIR>>/src/lib_json/json_writer.cpp:10:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> 
> cc1plus: all warnings being treated as errors

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

Reply via email to