arvidn / libtorrent-webui

a WebUI implementation for libtorrent based clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don`t compile with current libtorrent-trunk (again)

mrsrvman opened this issue · comments

../libtorrent-webui/src/transmission_webui.cpp:633:32: error: ‘asio’ has not been declared
, to_bool(a.last_error == asio::error::timed_out) // lastAnnounceTimeOut
^
../libtorrent-webui/src/transmission_webui.cpp: In member function ‘void libtorrent::transmission_webui::get_session(std::vector&, jsmntok_t_, int64_t, char_, const libtorrent::permissions_interface*)’:
../libtorrent-webui/src/transmission_webui.cpp:980:50: error: conversion from ‘libtorrent::settings_pack’ to non-scalar type ‘libtorrent::aux::session_settings’ requested
aux::session_settings sett = m_ses.get_settings();

...failed gcc.compile.c++ ../libtorrent-webui/bin/gcc-4.9.2/release/asserts-off/crypto-openssl/fpic-on/invariant-checks-off/link-static/src/utorrent_webui.o...
gcc.compile.c++ ../libtorrent-webui/bin/gcc-4.9.2/release/asserts-off/crypto-openssl/fpic-on/invariant-checks-off/link-static/src/libtorrent_webui.o
../libtorrent-webui/src/libtorrent_webui.cpp: In member function ‘bool libtorrent::libtorrent_webui::get_settings(libtorrent::libtorrent_webui::conn_state*)’:
../libtorrent-webui/src/libtorrent_webui.cpp:666:48: error: conversion from ‘libtorrent::settings_pack’ to non-scalar type ‘libtorrent::aux::session_settings’ requested
aux::session_settings s = m_ses.get_settings();

...failed gcc.compile.c++ ../libtorrent-webui/bin/gcc-4.9.2/release/asserts-off/crypto-openssl/fpic-on/invariant-checks-off/link-static/src/libtorrent_webui.o...
gcc.compile.c++ ../libtorrent-webui/bin/gcc-4.9.2/release/asserts-off/crypto-openssl/fpic-on/invariant-checks-off/link-static/src/deluge.o
In file included from ../libtorrent-webui/src/deluge.cpp:48:0:
../libtorrent-webui/src/deluge.hpp:106:3: error: ‘socket_acceptor’ does not name a type
socket_acceptor* m_listen_socket;
^
../libtorrent-webui/src/deluge.cpp: In constructor ‘libtorrent::deluge::deluge(libtorrent::session&, std::string, const libtorrent::auth_interface*)’:
../libtorrent-webui/src/deluge.cpp:67:4: error: class ‘libtorrent::deluge’ does not have any field named ‘m_listen_socket’
, m_listen_socket(NULL)
^
../libtorrent-webui/src/deluge.cpp: In member function ‘void libtorrent::deluge::accept_thread(int)’:
../libtorrent-webui/src/deluge.cpp:107:2: error: ‘socket_acceptor’ was not declared in this scope
socket_acceptor socket(m_ios);
^
../libtorrent-webui/src/deluge.cpp:108:2: error: ‘m_listen_socket’ was not declared in this scope
m_listen_socket = &socket;
^
../libtorrent-webui/src/deluge.cpp:111:9: error: request for member ‘open’ in ‘socket’, which is of non-class type ‘int(int, int, int) throw ()’
socket.open(tcp::v4(), ec);

etc

OS:Debian Jessie
3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linu

It will be some kind of reaction?

diff -ruN libtorrent-webui/src/utorrent_webui.cpp ./build/libtorrent-webui/src/utorrent_webui.cpp
--- libtorrent-webui/src/utorrent_webui.cpp 2015-08-12 20:34:24.900000000 +0500
+++ ./build/libtorrent-webui/src/utorrent_webui.cpp 2015-08-12 20:43:21.696000000 +0500
@@ -58,7 +58,7 @@
#include "libtorrent/socket_io.hpp" // for print_address
#include "libtorrent/io.hpp" // for read_int32
#include "libtorrent/magnet_uri.hpp" // for make_magnet_uri
-#include "libtorrent/escape_string.hpp" // for unescape_string
+#include "libtorrent/aux_/escape_string.hpp" // for unescape_string
#include "libtorrent/string_util.hpp" // for string_begins_no_case
#include "response_buffer.hpp" // for appendf
#include "torrent_post.hpp"