[Reproducible-builds] Bug#834250: btfs: FTBFS: btfs.cc:580:19: error: no match for 'operator=' (operand types are 'boost::shared_ptr<libtorrent::torrent_info>' and 'libtorrent::torrent_info*')
Chris Lamb
lamby at debian.org
Sat Aug 13 18:06:50 UTC 2016
Source: btfs
Version: 2.4-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Dear Maintainer,
btfs fails to build from source in unstable/amd64:
[..]
btfs.cc:66:41: warning: 'const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const' is deprecated [-Wdeprecated-declarations]
for (; piece < handle.get_torrent_info().num_pieces(); piece++) {
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
const torrent_info& get_torrent_info() const;
^~~~~~~~~~~~~~~~
btfs.cc: In function 'void jump(int, int)':
btfs.cc:83:35: warning: 'const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const' is deprecated [-Wdeprecated-declarations]
int pl = handle.get_torrent_info().piece_length();
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
const torrent_info& get_torrent_info() const;
^~~~~~~~~~~~~~~~
btfs.cc: In constructor 'btfs::Read::Read(char*, int, int, int)':
btfs.cc:100:62: warning: 'const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const' is deprecated [-Wdeprecated-declarations]
libtorrent::torrent_info metadata = handle.get_torrent_info();
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
const torrent_info& get_torrent_info() const;
^~~~~~~~~~~~~~~~
btfs.cc:102:54: warning: 'libtorrent::file_entry libtorrent::torrent_info::file_at(int) const' is deprecated [-Wdeprecated-declarations]
libtorrent::file_entry file = metadata.file_at(index);
^
In file included from btfs.cc:30:0:
/usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
file_entry file_at(int index) const { return m_files.at_deprecated(index); }
^~~~~~~
btfs.cc: In function 'void setup()':
btfs.cc:175:56: warning: 'const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const' is deprecated [-Wdeprecated-declarations]
libtorrent::torrent_info ti = handle.get_torrent_info();
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
const torrent_info& get_torrent_info() const;
^~~~~~~~~~~~~~~~
btfs.cc:186:32: warning: 'libtorrent::file_entry libtorrent::torrent_info::file_at(int) const' is deprecated [-Wdeprecated-declarations]
char *p = strdup(ti.file_at(i).path.c_str());
^
In file included from btfs.cc:30:0:
/usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
file_entry file_at(int index) const { return m_files.at_deprecated(index); }
^~~~~~~
btfs.cc:206:27: warning: 'libtorrent::file_entry libtorrent::torrent_info::file_at(int) const' is deprecated [-Wdeprecated-declarations]
files["/" + ti.file_at(i).path] = i;
^
In file included from btfs.cc:30:0:
/usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
file_entry file_at(int index) const { return m_files.at_deprecated(index); }
^~~~~~~
btfs.cc: In function 'void* alert_queue_loop(void*)':
btfs.cc:318:30: warning: 'void libtorrent::session_handle::pop_alerts(std::deque<libtorrent::alert*>*)' is deprecated [-Wdeprecated-declarations]
session->pop_alerts(&alerts);
^
In file included from /usr/include/libtorrent/session.hpp:53:0,
from btfs.cc:31:
/usr/include/libtorrent/session_handle.hpp:916:8: note: declared here
void pop_alerts(std::deque<alert*>* alerts);
^~~~~~~~~~
btfs.cc: In function 'int btfs_getattr(const char*, stat*)':
btfs.cc:352:28: warning: 'const libtorrent::torrent_info& libtorrent::torrent_handle::get_torrent_info() const' is deprecated [-Wdeprecated-declarations]
handle.get_torrent_info().file_at(files[path]);
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:920:23: note: declared here
const torrent_info& get_torrent_info() const;
^~~~~~~~~~~~~~~~
btfs.cc:352:49: warning: 'libtorrent::file_entry libtorrent::torrent_info::file_at(int) const' is deprecated [-Wdeprecated-declarations]
handle.get_torrent_info().file_at(files[path]);
^
In file included from btfs.cc:30:0:
/usr/include/libtorrent/torrent_info.hpp:352:14: note: declared here
file_entry file_at(int index) const { return m_files.at_deprecated(index); }
^~~~~~~
btfs.cc: In function 'void* btfs_init(fuse_conn_info*)':
btfs.cc:457:9: warning: 'libtorrent::session::session(const libtorrent::fingerprint&, std::pair<int, int>, const char*, int, int)' is deprecated [-Wdeprecated-declarations]
alerts);
^
In file included from btfs.cc:31:0:
/usr/include/libtorrent/session.hpp:226:3: note: declared here
session(fingerprint const& print
^~~~~~~
btfs.cc:465:54: warning: 'libtorrent::session_settings libtorrent::session_handle::settings() const' is deprecated [-Wdeprecated-declarations]
libtorrent::session_settings se = session->settings();
^
In file included from /usr/include/libtorrent/session.hpp:53:0,
from btfs.cc:31:
/usr/include/libtorrent/session_handle.hpp:810:20: note: declared here
session_settings settings() const;
^~~~~~~~
btfs.cc:471:26: warning: 'void libtorrent::session_handle::set_settings(const libtorrent::session_settings&)' is deprecated [-Wdeprecated-declarations]
session->set_settings(se);
^
In file included from /usr/include/libtorrent/session.hpp:53:0,
from btfs.cc:31:
/usr/include/libtorrent/session_handle.hpp:808:8: note: declared here
void set_settings(session_settings const& s);
^~~~~~~~~~~~
btfs.cc: In function 'void btfs_destroy(void*)':
btfs.cc:486:38: warning: 'std::__cxx11::string libtorrent::torrent_handle::save_path() const' is deprecated [-Wdeprecated-declarations]
std::string path = handle.save_path();
^
In file included from /usr/include/libtorrent/session_handle.hpp:38:0,
from /usr/include/libtorrent/session.hpp:53,
from btfs.cc:31:
/usr/include/libtorrent/torrent_handle.hpp:908:15: note: declared here
std::string save_path() const;
^~~~~~~~~
btfs.cc: In function 'bool populate_metadata(libtorrent::add_torrent_params&, const char*)':
btfs.cc:580:19: error: no match for 'operator=' (operand types are 'boost::shared_ptr<libtorrent::torrent_info>' and 'libtorrent::torrent_info*')
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:524:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr const & r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:524:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'const boost::shared_ptr<libtorrent::torrent_info>&'
/usr/include/boost/smart_ptr/shared_ptr.hpp:533:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<Y>&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=(shared_ptr<Y> const & r) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:533:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'const boost::shared_ptr<X>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:544:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:544:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'std::auto_ptr<Y>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:553:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( std::auto_ptr<Y> && r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:553:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'std::auto_ptr<Y>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:575:18: note: candidate: template<class Y, class D> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::unique_ptr<_Up, _Ep>&&) [with Y = Y; D = D; T = libtorrent::torrent_info]
shared_ptr & operator=( std::unique_ptr<Y, D> && r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:575:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:584:18: note: candidate: template<class Y, class D> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::movelib::unique_ptr<Y, D>) [with Y = Y; D = D; T = libtorrent::torrent_info]
shared_ptr & operator=( boost::movelib::unique_ptr<Y, D> r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:584:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'boost::movelib::unique_ptr<Y, D>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:632:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::shared_ptr<T>&&) [with T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr && r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:632:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'boost::shared_ptr<libtorrent::torrent_info>&&'
/usr/include/boost/smart_ptr/shared_ptr.hpp:639:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::shared_ptr<Y>&&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr<Y> && r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:639:18: note: template argument deduction/substitution failed:
btfs.cc:580:19: note: mismatched types 'boost::shared_ptr<X>' and 'libtorrent::torrent_info*'
output.size, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:649:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::detail::sp_nullptr_t) [with T = libtorrent::torrent_info; boost::detail::sp_nullptr_t = std::nullptr_t]
shared_ptr & operator=( boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT // never throws
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:649:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'boost::detail::sp_nullptr_t {aka std::nullptr_t}'
btfs.cc:605:44: error: no match for 'operator=' (operand types are 'boost::shared_ptr<libtorrent::torrent_info>' and 'libtorrent::torrent_info*')
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:524:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<T>&) [with T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr const & r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:524:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'const boost::shared_ptr<libtorrent::torrent_info>&'
/usr/include/boost/smart_ptr/shared_ptr.hpp:533:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(const boost::shared_ptr<Y>&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=(shared_ptr<Y> const & r) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:533:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'const boost::shared_ptr<X>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:544:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( std::auto_ptr<Y> & r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:544:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'std::auto_ptr<Y>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:553:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( std::auto_ptr<Y> && r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:553:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'std::auto_ptr<Y>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:575:18: note: candidate: template<class Y, class D> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::unique_ptr<_Up, _Ep>&&) [with Y = Y; D = D; T = libtorrent::torrent_info]
shared_ptr & operator=( std::unique_ptr<Y, D> && r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:575:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:584:18: note: candidate: template<class Y, class D> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::movelib::unique_ptr<Y, D>) [with Y = Y; D = D; T = libtorrent::torrent_info]
shared_ptr & operator=( boost::movelib::unique_ptr<Y, D> r )
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:584:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'boost::movelib::unique_ptr<Y, D>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:632:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::shared_ptr<T>&&) [with T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr && r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:632:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'boost::shared_ptr<libtorrent::torrent_info>&&'
/usr/include/boost/smart_ptr/shared_ptr.hpp:639:18: note: candidate: template<class Y> boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::shared_ptr<Y>&&) [with Y = Y; T = libtorrent::torrent_info]
shared_ptr & operator=( shared_ptr<Y> && r ) BOOST_NOEXCEPT
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:639:18: note: template argument deduction/substitution failed:
btfs.cc:605:44: note: mismatched types 'boost::shared_ptr<X>' and 'libtorrent::torrent_info*'
p.ti = new libtorrent::torrent_info(r, ec);
^
In file included from /usr/include/boost/smart_ptr/shared_array.hpp:24:0,
from /usr/include/boost/shared_array.hpp:17,
from /usr/include/libtorrent/torrent_info.hpp:42,
from btfs.cc:30:
/usr/include/boost/smart_ptr/shared_ptr.hpp:649:18: note: candidate: boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(boost::detail::sp_nullptr_t) [with T = libtorrent::torrent_info; boost::detail::sp_nullptr_t = std::nullptr_t]
shared_ptr & operator=( boost::detail::sp_nullptr_t ) BOOST_NOEXCEPT // never throws
^~~~~~~~
/usr/include/boost/smart_ptr/shared_ptr.hpp:649:18: note: no known conversion for argument 1 from 'libtorrent::torrent_info*' to 'boost::detail::sp_nullptr_t {aka std::nullptr_t}'
Makefile:390: recipe for target 'btfs-btfs.o' failed
make[2]: *** [btfs-btfs.o] Error 1
make[2]: Leaving directory '/home/lamby/temp/cdt.20160813185809.cKSxP5wKNi.db.btfs/btfs-2.4/src'
Makefile:347: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lamby/temp/cdt.20160813185809.cKSxP5wKNi.db.btfs/btfs-2.4'
dh_auto_build: make -j1 returned exit code 2
debian/rules:4: recipe for target 'build' failed
make: *** [build] Error 2
[..]
The full build log is attached.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: btfs.2.4-1.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 6201 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160813/09bb2883/attachment.obj>
More information about the Reproducible-builds
mailing list