g++ -DPACKAGE_NAME=\"btfs\" -DPACKAGE_TARNAME=\"btfs\" -DPACKAGE_VERSION=\"2.22\" -DPACKAGE_STRING=\"btfs\ 2.22\" -DPACKAGE_BUGREPORT=\"johan.gunnarsson@gmail.com\" -DPACKAGE_URL=\"https://github.com/johang/btfs\" -DPACKAGE=\"btfs\" -DVERSION=\"2.22\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MEMSET=1 -DHAVE_MEMCPY=1 -DHAVE_STRCMP=1 -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_REALPATH=1 -DHAVE_GETXATTR=1 -DHAVE_DIRNAME=1 -DHAVE_BASENAME=1 -DHAVE_LIBPTHREAD=1 -I. -std=c++11 -Wall -Wextra -Wconversion -Wsign-compare -Wsign-conversion -Wno-unused-parameter -I/usr/include/fuse -D_FILE_OFFSET_BITS=64 -fexceptions -DTORRENT_LINKING_SHARED -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DTORRENT_USE_OPENSSL -DTORRENT_USE_LIBCRYPTO -DTORRENT_SSL_PEERS -DOPENSSL_NO_SSL2 -DBOOST_ALL_NO_LIB -DBOOST_SYSTEM_DYN_LINK -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -c -o btfs-btfs.o `test -f 'btfs.cc' || echo './'`btfs.cc In file included from /usr/include/libtorrent/aux_/vector.hpp:39, from /usr/include/libtorrent/file_storage.hpp:50, from /usr/include/libtorrent/torrent_info.hpp:61, from btfs.cc:38: /usr/include/libtorrent/aux_/container_wrapper.hpp:64:12: error: expected primary-expression before 'auto' 64 | decltype(auto) operator[](IndexType idx) const | ^~~~ /usr/include/libtorrent/aux_/container_wrapper.hpp:71:12: error: expected primary-expression before 'auto' 71 | decltype(auto) operator[](IndexType idx) | ^~~~ In file included from /usr/include/libtorrent/bitfield.hpp:41, from /usr/include/libtorrent/peer_info.hpp:43, from /usr/include/libtorrent/torrent_handle.hpp:67, from /usr/include/libtorrent/session_handle.hpp:43, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/aux_/unique_ptr.hpp:57:12: error: expected primary-expression before 'auto' 57 | decltype(auto) operator[](IndexType idx) const | ^~~~ In file included from /usr/include/libtorrent/peer_info.hpp:43, from /usr/include/libtorrent/torrent_handle.hpp:67, from /usr/include/libtorrent/session_handle.hpp:43, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/bitfield.hpp: In member function 'const char* libtorrent::bitfield::data() const': /usr/include/libtorrent/bitfield.hpp:142:92: error: lvalue required as unary '&' operand 142 | char const* data() const noexcept { return m_buf ? reinterpret_cast(&m_buf[1]) : nullptr; } | ~~~~~~~^ /usr/include/libtorrent/bitfield.hpp: In member function 'char* libtorrent::bitfield::data()': /usr/include/libtorrent/bitfield.hpp:143:74: error: lvalue required as unary '&' operand 143 | char* data() noexcept { return m_buf ? reinterpret_cast(&m_buf[1]) : nullptr; } | ~~~~~~~^ /usr/include/libtorrent/bitfield.hpp: In member function 'const uint32_t* libtorrent::bitfield::buf() const': /usr/include/libtorrent/bitfield.hpp:266:85: error: lvalue required as unary '&' operand 266 | std::uint32_t const* buf() const noexcept { TORRENT_ASSERT(m_buf); return &m_buf[1]; } | ~~~~~~~^ /usr/include/libtorrent/bitfield.hpp: In member function 'uint32_t* libtorrent::bitfield::buf()': /usr/include/libtorrent/bitfield.hpp:267:73: error: lvalue required as unary '&' operand 267 | std::uint32_t* buf() noexcept { TORRENT_ASSERT(m_buf); return &m_buf[1]; } | ~~~~~~~^ In file included from /usr/include/libtorrent/alert_types.hpp:67, from btfs.cc:42: /usr/include/libtorrent/tracker_manager.hpp: At global scope: /usr/include/libtorrent/tracker_manager.hpp:245:3: error: 'get_executor' function uses 'auto' type specifier without trailing return type 245 | auto get_executor() { return m_timeout.get_executor(); } | ^~~~ /usr/include/libtorrent/tracker_manager.hpp:245:3: note: deduced return type only available with '-std=c++14' or '-std=gnu++14' btfs.cc: In function 'void handle_read_piece_alert(libtorrent::read_piece_alert*, btfs::Log*)': btfs.cc:252:9: warning: 'libtorrent::read_piece_alert::ec' is deprecated [-Wdeprecated-declarations] 252 | if (a->ec) { | ^~ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:314:33: note: declared here 314 | TORRENT_DEPRECATED error_code ec; | ^~ btfs.cc:252:9: warning: 'libtorrent::read_piece_alert::ec' is deprecated [-Wdeprecated-declarations] 252 | if (a->ec) { | ^~ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:314:33: note: declared here 314 | TORRENT_DEPRECATED error_code ec; | ^~ btfs.cc:252:9: warning: 'libtorrent::read_piece_alert::ec' is deprecated [-Wdeprecated-declarations] 252 | if (a->ec) { | ^~ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:314:33: note: declared here 314 | TORRENT_DEPRECATED error_code ec; | ^~ btfs.cc: At global scope: btfs.cc:287:72: warning: 'torrent_added_alert' is deprecated [-Wdeprecated-declarations] 287 | handle_torrent_added_alert(libtorrent::torrent_added_alert *a, Log *log) { | ^ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:241:35: note: declared here 241 | struct TORRENT_DEPRECATED_EXPORT torrent_added_alert final : torrent_alert | ^~~~~~~~~~~~~~~~~~~ btfs.cc: In function 'void handle_alert(libtorrent::alert*, btfs::Log*)': btfs.cc:327:40: warning: 'torrent_added_alert' is deprecated [-Wdeprecated-declarations] 327 | case libtorrent::torrent_added_alert::alert_type: | ^~~~~~~~~~ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:241:35: note: declared here 241 | struct TORRENT_DEPRECATED_EXPORT torrent_added_alert final : torrent_alert | ^~~~~~~~~~~~~~~~~~~ btfs.cc:330:37: warning: 'torrent_added_alert' is deprecated [-Wdeprecated-declarations] 330 | (libtorrent::torrent_added_alert *) a, log); | ^ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:241:35: note: declared here 241 | struct TORRENT_DEPRECATED_EXPORT torrent_added_alert final : torrent_alert | ^~~~~~~~~~~~~~~~~~~ btfs.cc:347:32: warning: 'stats_alert' is deprecated [-Wdeprecated-declarations] 347 | case libtorrent::stats_alert::alert_type: | ^~~~~~~~~~ In file included from btfs.cc:42: /usr/include/libtorrent/alert_types.hpp:1805:35: note: declared here 1805 | struct TORRENT_DEPRECATED_EXPORT stats_alert final : torrent_alert | ^~~~~~~~~~~ btfs.cc: In function 'void* btfs_init(fuse_conn_info*)': btfs.cc:571:24: warning: 'libtorrent::session_handle::add_default_plugins' is deprecated [-Wdeprecated-declarations] 571 | libtorrent::session::add_default_plugins | | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/session_handle.hpp:792:55: note: declared here 792 | TORRENT_DEPRECATED static constexpr session_flags_t add_default_plugins = 0_bit; | ^~~~~~~~~~~~~~~~~~~ btfs.cc:571:24: warning: 'libtorrent::session_handle::add_default_plugins' is deprecated [-Wdeprecated-declarations] 571 | libtorrent::session::add_default_plugins | | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/session_handle.hpp:792:55: note: declared here 792 | TORRENT_DEPRECATED static constexpr session_flags_t add_default_plugins = 0_bit; | ^~~~~~~~~~~~~~~~~~~ btfs.cc:572:24: warning: 'libtorrent::session_handle::start_default_features' is deprecated [-Wdeprecated-declarations] 572 | libtorrent::session::start_default_features; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/session_handle.hpp:798:55: note: declared here 798 | TORRENT_DEPRECATED static constexpr session_flags_t start_default_features = 1_bit; | ^~~~~~~~~~~~~~~~~~~~~~ btfs.cc:572:24: warning: 'libtorrent::session_handle::start_default_features' is deprecated [-Wdeprecated-declarations] 572 | libtorrent::session::start_default_features; | ^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/session_handle.hpp:798:55: note: declared here 798 | TORRENT_DEPRECATED static constexpr session_flags_t start_default_features = 1_bit; | ^~~~~~~~~~~~~~~~~~~~~~ btfs.cc:580:22: warning: 'libtorrent::alert::stats_notification' is deprecated [-Wdeprecated-declarations] 580 | libtorrent::alert::stats_notification | | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session_handle.hpp:45, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/alert.hpp:233:37: note: declared here 233 | static constexpr alert_category_t stats_notification = 11_bit; | ^~~~~~~~~~~~~~~~~~ btfs.cc:580:22: warning: 'libtorrent::alert::stats_notification' is deprecated [-Wdeprecated-declarations] 580 | libtorrent::alert::stats_notification | | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session_handle.hpp:45, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/alert.hpp:233:37: note: declared here 233 | static constexpr alert_category_t stats_notification = 11_bit; | ^~~~~~~~~~~~~~~~~~ btfs.cc:582:22: warning: 'libtorrent::alert::progress_notification' is deprecated [-Wdeprecated-declarations] 582 | libtorrent::alert::progress_notification | | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session_handle.hpp:45, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/alert.hpp:221:37: note: declared here 221 | static constexpr alert_category_t progress_notification = 7_bit; | ^~~~~~~~~~~~~~~~~~~~~ btfs.cc:582:22: warning: 'libtorrent::alert::progress_notification' is deprecated [-Wdeprecated-declarations] 582 | libtorrent::alert::progress_notification | | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/libtorrent/session_handle.hpp:45, from /usr/include/libtorrent/session.hpp:43, from btfs.cc:39: /usr/include/libtorrent/alert.hpp:221:37: note: declared here 221 | static constexpr alert_category_t progress_notification = 7_bit; | ^~~~~~~~~~~~~~~~~~~~~ btfs.cc:650:47: warning: 'libtorrent::session::session(const libtorrent::settings_pack&, libtorrent::session_handle::session_flags_t)' is deprecated [-Wdeprecated-declarations] 650 | session = new libtorrent::session(pack, flags); | ^ In file included from btfs.cc:39: /usr/include/libtorrent/session.hpp:199:3: note: declared here 199 | session(settings_pack const& pack, session_flags_t const flags); | ^~~~~~~ make[1]: *** [Makefile:420: btfs-btfs.o] Error 1 make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/btfs-2.22/src' make: *** [Makefile:346: all-recursive] Error 1