Bug#811803: vdr-plugin-live: FTBFS with GCC 6: error: reference is ambiguous

Martin Michlmayr tbm at hpe.com
Wed Jan 20 02:08:08 UTC 2016


Package: vdr-plugin-live
Version: 0.3.0+git20150930-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-reference-ambiguous

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
...
> recman.cpp:25:2: error: reference to 'weak_ptr' is ambiguous
>   weak_ptr< RecordingsManager > RecordingsManager::m_recMan;
>   ^~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/c++/6/tr1/memory:39,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/bits/shared_ptr_base.h:346:11: note: candidates are: template<class _Tp> class std::weak_ptr
>      class weak_ptr;
>            ^~~~~~~~
> 
> In file included from /usr/include/c++/6/tr1/memory:50:0,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/tr1/shared_ptr.h:504:11: note:                 template<class _Tp> class std::tr1::weak_ptr
>      class weak_ptr;
>            ^~~~~~~~
> 
> recman.cpp:26:2: error: reference to 'shared_ptr' is ambiguous
>   shared_ptr< RecordingsTree > RecordingsManager::m_recTree;
>   ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/c++/6/tr1/memory:39,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/bits/shared_ptr_base.h:343:11: note: candidates are: template<class _Tp> class std::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/tr1/memory:50:0,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/tr1/shared_ptr.h:501:11: note:                 template<class _Tp> class std::tr1::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> recman.cpp:27:2: error: reference to 'shared_ptr' is ambiguous
>   shared_ptr< RecordingsList > RecordingsManager::m_recList;
>   ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/c++/6/tr1/memory:39,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/bits/shared_ptr_base.h:343:11: note: candidates are: template<class _Tp> class std::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/tr1/memory:50:0,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/tr1/shared_ptr.h:501:11: note:                 template<class _Tp> class std::tr1::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> recman.cpp:28:2: error: reference to 'shared_ptr' is ambiguous
>   shared_ptr< DirectoryList > RecordingsManager::m_recDirs;
>   ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/c++/6/tr1/memory:39,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/bits/shared_ptr_base.h:343:11: note: candidates are: template<class _Tp> class std::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/tr1/memory:50:0,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/tr1/shared_ptr.h:501:11: note:                 template<class _Tp> class std::tr1::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> recman.cpp: In member function 'vdrlive::RecordingsTreePtr vdrlive::RecordingsManager::GetRecordingsTree() const':
> recman.cpp:56:28: error: expected primary-expression before '(' token
>     return RecordingsTreePtr(recMan, shared_ptr< RecordingsTree >());
>                             ^
> 
> recman.cpp:56:37: error: reference to 'shared_ptr' is ambiguous
>     return RecordingsTreePtr(recMan, shared_ptr< RecordingsTree >());
>                                      ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/c++/6/tr1/memory:39,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/bits/shared_ptr_base.h:343:11: note: candidates are: template<class _Tp> class std::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/tr1/memory:50:0,
>                  from stdext.h:7,
>                  from recman.cpp:8:
> /usr/include/c++/6/tr1/shared_ptr.h:501:11: note:                 template<class _Tp> class std::tr1::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> recman.cpp:56:64: error: expected primary-expression before '>' token
>     return RecordingsTreePtr(recMan, shared_ptr< RecordingsTree >());
>                                                                 ^
> 
> recman.cpp:56:66: error: expected primary-expression before ')' token
>     return RecordingsTreePtr(recMan, shared_ptr< RecordingsTree >());
>                                                                   ^
> 
> recman.cpp: In member function 'vdrlive::RecordingsListPtr vdrlive::RecordingsManager::GetRecordingsList(bool) const':
> recman.cpp:65:28: error: expected primary-expression before '(' token
>     return RecordingsListPtr(recMan, shared_ptr< RecordingsList >());
>                             ^
> 
> recman.cpp:65:37: error: reference to 'shared_ptr' is ambiguous
>     return RecordingsListPtr(recMan, shared_ptr< RecordingsList >());
>                                      ^~~~~~~~~~
...

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



More information about the pkg-vdr-dvb-devel mailing list