Comments (3)
I commented out a line 32
//#define s6_addr<-----><------><------>__in6_u.__u6_addr8
in the file libtgvoip/os/posix/NetworkSocketPosix.cpp
and the build went on, but at the end it again threw out a bunch of errors:
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/sip.cpp.o
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/gateway.cpp.o
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/tg2sip/sip.h:22,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/tg2sip/sip.h:22,
from /usr/src/tg2sip/tg2sip/main.cpp:26:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/libtgvoip/VoIPController.h:28,
from /usr/src/tg2sip/tg2sip/gateway.h:23,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/src/tg2sip/tg2sip/gateway.h:24,
from /usr/src/tg2sip/tg2sip/main.cpp:27:
/usr/src/tg2sip/include/boost/sml.hpp:2528:8: warning: undefining "__has_builtin"
2528 | #undef __has_builtin
| ^~~~~~~~~~~~~
In file included from /usr/src/tg2sip/tg2sip/gateway.h:24,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/include/boost/sml.hpp:2528:8: warning: undefining "__has_builtin"
2528 | #undef __has_builtin
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp: In function 'bool is_digits(const string&)':
/usr/src/tg2sip/tg2sip/utils.cpp:21:61: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~
In file included from /usr/include/c++/11.2.1/iosfwd:39,
from /usr/include/c++/11.2.1/bits/shared_ptr.h:52,
from /usr/include/c++/11.2.1/memory:77,
from /usr/src/tg2sip/tg2sip/utils.h:21,
from /usr/src/tg2sip/tg2sip/utils.cpp:19:
/usr/include/c++/11.2.1/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
74 | class basic_string;
| ^~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp:21:74: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~
In file included from /usr/include/c++/11.2.1/iosfwd:39,
from /usr/include/c++/11.2.1/bits/shared_ptr.h:52,
from /usr/include/c++/11.2.1/memory:77,
from /usr/src/tg2sip/tg2sip/utils.h:21,
from /usr/src/tg2sip/tg2sip/utils.cpp:19:
/usr/include/c++/11.2.1/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
74 | class basic_string;
| ^~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp:21:87: error: '::isdigit' has not been declared; did you mean 'iswdigit'?
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~~~~~
| iswdigit
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:146: CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/src/tg2sip/tg2sip/main.cpp:23:
/usr/src/tg2sip/tg2sip/queue.h:37:18: error: 'std::optional' has not been declared
37 | void emplace(std::optional<T> &&value) {
| ^~~
/usr/src/tg2sip/tg2sip/queue.h:37:31: error: expected ',' or '...' before '<' token
37 | void emplace(std::optional<T> &&value) {
| ^
/usr/src/tg2sip/tg2sip/queue.h:44:10: error: 'optional' in namespace 'std' does not name a template type
44 | std::optional<T> pop() {
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:1:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
+++ |+#include <optional>
1 | /*
/usr/src/tg2sip/tg2sip/queue.h:58:21: error: 'optional' is not a member of 'std'
58 | std::queue<std::optional<T>> q;
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:58:21: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 1 is invalid
58 | std::queue<std::optional<T>> q;
| ^
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 2 is invalid
/usr/src/tg2sip/tg2sip/queue.h:58:31: error: expected unqualified-id before '>' token
58 | std::queue<std::optional<T>> q;
| ^~
/usr/src/tg2sip/tg2sip/queue.h: In member function 'void OptionalQueue<T>::emplace(int)':
/usr/src/tg2sip/tg2sip/queue.h:40:13: error: 'q' was not declared in this scope
40 | q.emplace(std::move(value));
| ^
/usr/src/tg2sip/tg2sip/queue.h:40:33: error: 'value' was not declared in this scope
40 | q.emplace(std::move(value));
| ^~~~~
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: error: 'std::optional' has not been declared
37 | void emplace(std::optional<T> &&value) {
| ^~~
/usr/src/tg2sip/tg2sip/queue.h:37:31: error: expected ',' or '...' before '<' token
37 | void emplace(std::optional<T> &&value) {
| ^
/usr/src/tg2sip/tg2sip/queue.h:44:10: error: 'optional' in namespace 'std' does not name a template type
44 | std::optional<T> pop() {
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:1:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
+++ |+#include <optional>
1 | /*
/usr/src/tg2sip/tg2sip/queue.h:58:21: error: 'optional' is not a member of 'std'
58 | std::queue<std::optional<T>> q;
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:58:21: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 1 is invalid
58 | std::queue<std::optional<T>> q;
| ^
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 2 is invalid
/usr/src/tg2sip/tg2sip/queue.h:58:31: error: expected unqualified-id before '>' token
58 | std::queue<std::optional<T>> q;
| ^~
/usr/src/tg2sip/tg2sip/queue.h: In member function 'void OptionalQueue<T>::emplace(int)':
/usr/src/tg2sip/tg2sip/queue.h:40:13: error: 'q' was not declared in this scope
40 | q.emplace(std::move(value));
| ^
/usr/src/tg2sip/tg2sip/queue.h:40:33: error: 'value' was not declared in this scope
40 | q.emplace(std::move(value));
| ^~~~~
/usr/src/tg2sip/tg2sip/sip.cpp: In lambda function:
/usr/src/tg2sip/tg2sip/sip.cpp:124:32: error: cannot convert 'sip::events::IncomingCall' to 'int'
124 | events.emplace(events::IncomingCall{ci.id, call->localUser()});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| sip::events::IncomingCall
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<sip::events::IncomingCall, sip::events::CallStateUpdate, sip::events::CallMediaStateUpdate>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/sip.cpp: In static member function 'static void sip::Client::init_pj_endpoint(Settings&, sip::LogWriter*)':
/usr/src/tg2sip/tg2sip/sip.cpp:188:38: error: 'class pj::Endpoint' has no member named 'codecEnum'; did you mean 'codecEnum2'?
188 | CodecInfoVector codecVector = ep.codecEnum();
| ^~~~~~~~~
| codecEnum2
/usr/src/tg2sip/tg2sip/sip.cpp: In lambda function:
/usr/src/tg2sip/tg2sip/sip.cpp:253:36: error: cannot convert 'sip::events::CallStateUpdate' to 'int'
253 | events.emplace(events::CallStateUpdate{call_spt->getId(), call_spt->getInfo().state});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| sip::events::CallStateUpdate
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<sip::events::IncomingCall, sip::events::CallStateUpdate, sip::events::CallMediaStateUpdate>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/sip.cpp: In lambda function:
/usr/src/tg2sip/tg2sip/sip.cpp:259:36: error: cannot convert 'sip::events::CallMediaStateUpdate' to 'int'
259 | events.emplace(events::CallMediaStateUpdate{call_spt->getId(), call_spt->hasMedia()});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| sip::events::CallMediaStateUpdate
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<sip::events::IncomingCall, sip::events::CallStateUpdate, sip::events::CallMediaStateUpdate>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
In file included from /usr/src/tg2sip/tg2sip/tg.h:29,
from /usr/src/tg2sip/tg2sip/tg.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: error: 'std::optional' has not been declared
37 | void emplace(std::optional<T> &&value) {
| ^~~
/usr/src/tg2sip/tg2sip/queue.h:37:31: error: expected ',' or '...' before '<' token
37 | void emplace(std::optional<T> &&value) {
| ^
/usr/src/tg2sip/tg2sip/queue.h:44:10: error: 'optional' in namespace 'std' does not name a template type
44 | std::optional<T> pop() {
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:1:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
+++ |+#include <optional>
1 | /*
/usr/src/tg2sip/tg2sip/queue.h:58:21: error: 'optional' is not a member of 'std'
58 | std::queue<std::optional<T>> q;
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:58:21: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 1 is invalid
58 | std::queue<std::optional<T>> q;
| ^
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 2 is invalid
/usr/src/tg2sip/tg2sip/queue.h:58:31: error: expected unqualified-id before '>' token
58 | std::queue<std::optional<T>> q;
| ^~
/usr/src/tg2sip/tg2sip/queue.h: In member function 'void OptionalQueue<T>::emplace(int)':
/usr/src/tg2sip/tg2sip/queue.h:40:13: error: 'q' was not declared in this scope
40 | q.emplace(std::move(value));
| ^
/usr/src/tg2sip/tg2sip/queue.h:40:33: error: 'value' was not declared in this scope
40 | q.emplace(std::move(value));
| ^~~~~
/usr/src/tg2sip/tg2sip/tg.cpp: In member function 'void tg::Client::process_update(tg::Client::Object)':
/usr/src/tg2sip/tg2sip/tg.cpp:127:37: error: cannot convert 'std::remove_reference<td::tl::unique_ptr<td::td_api::Object>&>::type' {aka 'td::tl::unique_ptr<td::td_api::Object>'} to 'int'
127 | events.emplace(std::move(update));
| ~~~~~~~~~^~~~~~~~
| |
| std::remove_reference<td::tl::unique_ptr<td::td_api::Object>&>::type {aka td::tl::unique_ptr<td::td_api::Object>}
In file included from /usr/src/tg2sip/tg2sip/tg.h:29,
from /usr/src/tg2sip/tg2sip/tg.cpp:18:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = td::tl::unique_ptr<td::td_api::Object>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: error: 'std::optional' has not been declared
37 | void emplace(std::optional<T> &&value) {
| ^~~
/usr/src/tg2sip/tg2sip/queue.h:37:31: error: expected ',' or '...' before '<' token
37 | void emplace(std::optional<T> &&value) {
| ^
/usr/src/tg2sip/tg2sip/queue.h:44:10: error: 'optional' in namespace 'std' does not name a template type
44 | std::optional<T> pop() {
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:1:1: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
+++ |+#include <optional>
1 | /*
/usr/src/tg2sip/tg2sip/queue.h:58:21: error: 'optional' is not a member of 'std'
58 | std::queue<std::optional<T>> q;
| ^~~~~~~~
/usr/src/tg2sip/tg2sip/queue.h:58:21: note: 'std::optional' is defined in header '<optional>'; did you forget to '#include <optional>'?
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 1 is invalid
58 | std::queue<std::optional<T>> q;
| ^
/usr/src/tg2sip/tg2sip/queue.h:58:30: error: template argument 2 is invalid
/usr/src/tg2sip/tg2sip/queue.h:58:31: error: expected unqualified-id before '>' token
58 | std::queue<std::optional<T>> q;
| ^~
/usr/src/tg2sip/tg2sip/queue.h: In member function 'void OptionalQueue<T>::emplace(int)':
/usr/src/tg2sip/tg2sip/queue.h:40:13: error: 'q' was not declared in this scope
40 | q.emplace(std::move(value));
| ^
/usr/src/tg2sip/tg2sip/queue.h:40:33: error: 'value' was not declared in this scope
40 | q.emplace(std::move(value));
| ^~~~~
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:104: CMakeFiles/tg2sip.dir/tg2sip/sip.cpp.o] Error 1
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:90: CMakeFiles/tg2sip.dir/tg2sip/tg.cpp.o] Error 1
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::DialSip::operator()(Context&, tg::Client&, sip::Client&, td::td_api::object_ptr<td::td_api::updateCall>&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, const Settings&, std::shared_ptr<spdlog::logger>) const':
/usr/src/tg2sip/tg2sip/gateway.cpp:207:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
207 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::AnswerTg::operator()(Context&, tg::Client&, const Settings&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, std::shared_ptr<spdlog::logger>) const':
/usr/src/tg2sip/tg2sip/gateway.cpp:237:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
237 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::AcceptIncomingSip::operator()(Context&, sip::Client&, const Settings&, const sip::events::IncomingCall&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, std::shared_ptr<spdlog::logger>) const':
/usr/src/tg2sip/tg2sip/gateway.cpp:276:64: error: cannot convert 'state_machine::events::InternalError' to 'int'
276 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:281:64: error: cannot convert 'state_machine::events::InternalError' to 'int'
281 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:288:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
288 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::AnswerSip::operator()(Context&, sip::Client&, const Settings&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, std::shared_ptr<spdlog::logger>) const':
/usr/src/tg2sip/tg2sip/gateway.cpp:306:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
306 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:311:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
311 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::BridgeAudio::operator()(Context&, sip::Client&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, std::shared_ptr<spdlog::logger>) const':
/usr/src/tg2sip/tg2sip/gateway.cpp:388:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
388 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:393:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
393 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), hangup_prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::DialTg::operator()(Context&, tg::Client&, const Settings&, Cache&, std::chrono::_V2::steady_clock::time_point&, OptionalQueue<std::variant<state_machine::events::InternalError> >&, std::shared_ptr<spdlog::logger>)':
/usr/src/tg2sip/tg2sip/gateway.cpp:425:60: error: cannot convert 'state_machine::events::InternalError' to 'int'
425 | internal_events.emplace(state_machine::events::InternalError{ctx.id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::DialTg::dial_by_id(int64_t)':
/usr/src/tg2sip/tg2sip/gateway.cpp:457:62: error: cannot convert 'state_machine::events::InternalError' to 'int'
457 | internal_events_->emplace(state_machine::events::InternalError{ctx_->id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::DialTg::dial_by_phone()':
/usr/src/tg2sip/tg2sip/gateway.cpp:494:62: error: cannot convert 'state_machine::events::InternalError' to 'int'
494 | internal_events_->emplace(state_machine::events::InternalError{ctx_->id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:509:62: error: cannot convert 'state_machine::events::InternalError' to 'int'
509 | internal_events_->emplace(state_machine::events::InternalError{ctx_->id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void state_machine::actions::DialTg::dial_by_username()':
/usr/src/tg2sip/tg2sip/gateway.cpp:538:62: error: cannot convert 'state_machine::events::InternalError' to 'int'
538 | internal_events_->emplace(state_machine::events::InternalError{ctx_->id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp:551:62: error: cannot convert 'state_machine::events::InternalError' to 'int'
551 | internal_events_->emplace(state_machine::events::InternalError{ctx_->id(), prm});
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| state_machine::events::InternalError
In file included from /usr/src/tg2sip/tg2sip/sip.h:25,
from /usr/src/tg2sip/tg2sip/gateway.h:26,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/tg2sip/queue.h:37:18: note: initializing argument 1 of 'void OptionalQueue<T>::emplace(int) [with T = std::variant<state_machine::events::InternalError>]'
37 | void emplace(std::optional<T> &&value) {
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/gateway.cpp: In member function 'void Gateway::start()':
/usr/src/tg2sip/tg2sip/gateway.cpp:739:43: error: 'class OptionalQueue<std::variant<state_machine::events::InternalError> >' has no member named 'pop'
739 | if (auto event = internal_events_.pop(); event) {
| ^~~
/usr/src/tg2sip/tg2sip/gateway.cpp:745:37: error: 'class OptionalQueue<td::tl::unique_ptr<td::td_api::Object> >' has no member named 'pop'
745 | if (auto event = tg_events_.pop(); event) {
| ^~~
/usr/src/tg2sip/tg2sip/gateway.cpp:760:38: error: 'class OptionalQueue<std::variant<sip::events::IncomingCall, sip::events::CallStateUpdate, sip::events::CallMediaStateUpdate> >' has no member named 'pop'
760 | if (auto event = sip_events_.pop(); event) {
| ^~~
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:76: CMakeFiles/tg2sip.dir/tg2sip/main.cpp.o] Error 1
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:160: CMakeFiles/tg2sip.dir/tg2sip/gateway.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/tg2sip.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
from tg2sip.
I had to add a header file in the tg2sip/queue.h
to eliminate one more error. Other errors could not be corrected. I ask for help:
#include <optional>
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/logging.cpp.o
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o
[ 99%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/gateway.cpp.o
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/tg2sip/sip.h:22,
from /usr/src/tg2sip/tg2sip/sip.cpp:18:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/tg2sip/sip.h:22,
from /usr/src/tg2sip/tg2sip/main.cpp:26:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/include/pj/limits.h:28,
from /usr/include/pj/types.h:34,
from /usr/include/pjsip/sip_config.h:27,
from /usr/include/pjsip/sip_types.h:34,
from /usr/include/pjsip.h:24,
from /usr/include/pjsua-lib/pjsua.h:30,
from /usr/include/pjsua2/config.hpp:26,
from /usr/include/pjsua2/types.hpp:31,
from /usr/include/pjsua2/persistent.hpp:26,
from /usr/include/pjsua2/endpoint.hpp:26,
from /usr/include/pjsua2.hpp:22,
from /usr/src/tg2sip/libtgvoip/VoIPController.h:28,
from /usr/src/tg2sip/tg2sip/gateway.h:23,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/include/pj/compat/limits.h:39:4: warning: #warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " "will be defined by the library in pj/compats/limits.h and " "overridable in config_site.h" [-Wcpp]
39 | # warning "limits.h is not found or not supported. LONG_MIN and LONG_MAX " \
| ^~~~~~~
In file included from /usr/src/tg2sip/tg2sip/gateway.h:24,
from /usr/src/tg2sip/tg2sip/gateway.cpp:19:
/usr/src/tg2sip/include/boost/sml.hpp:2528:8: warning: undefining "__has_builtin"
2528 | #undef __has_builtin
| ^~~~~~~~~~~~~
In file included from /usr/src/tg2sip/tg2sip/gateway.h:24,
from /usr/src/tg2sip/tg2sip/main.cpp:27:
/usr/src/tg2sip/include/boost/sml.hpp:2528:8: warning: undefining "__has_builtin"
2528 | #undef __has_builtin
| ^~~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp: In function 'bool is_digits(const string&)':
/usr/src/tg2sip/tg2sip/utils.cpp:21:61: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~
In file included from /usr/include/c++/11.2.1/iosfwd:39,
from /usr/include/c++/11.2.1/bits/shared_ptr.h:52,
from /usr/include/c++/11.2.1/memory:77,
from /usr/src/tg2sip/tg2sip/utils.h:21,
from /usr/src/tg2sip/tg2sip/utils.cpp:19:
/usr/include/c++/11.2.1/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
74 | class basic_string;
| ^~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp:21:74: error: invalid use of incomplete type 'const string' {aka 'const class std::__cxx11::basic_string<char>'}
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~
In file included from /usr/include/c++/11.2.1/iosfwd:39,
from /usr/include/c++/11.2.1/bits/shared_ptr.h:52,
from /usr/include/c++/11.2.1/memory:77,
from /usr/src/tg2sip/tg2sip/utils.h:21,
from /usr/src/tg2sip/tg2sip/utils.cpp:19:
/usr/include/c++/11.2.1/bits/stringfwd.h:74:11: note: declaration of 'std::string' {aka 'class std::__cxx11::basic_string<char>'}
74 | class basic_string;
| ^~~~~~~~~~~~
/usr/src/tg2sip/tg2sip/utils.cpp:21:87: error: '::isdigit' has not been declared; did you mean 'iswdigit'?
21 | bool is_digits(const std::string &str) { return std::all_of(str.begin(), str.end(), ::isdigit); };
| ^~~~~~~
| iswdigit
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:146: CMakeFiles/tg2sip.dir/tg2sip/utils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/src/tg2sip/tg2sip/sip.cpp: In static member function 'static void sip::Client::init_pj_endpoint(Settings&, sip::LogWriter*)':
/usr/src/tg2sip/tg2sip/sip.cpp:188:38: error: 'class pj::Endpoint' has no member named 'codecEnum'; did you mean 'codecEnum2'?
188 | CodecInfoVector codecVector = ep.codecEnum();
| ^~~~~~~~~
| codecEnum2
make[2]: *** [CMakeFiles/tg2sip.dir/build.make:104: CMakeFiles/tg2sip.dir/tg2sip/sip.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:102: CMakeFiles/tg2sip.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
from tg2sip.
The problem has been solved. Created instructions for building the apk package.
from tg2sip.
Related Issues (20)
- Request verification failed: Not Acceptable Here [status=170488]
- td 1.7.10 HOT 1
- Could not find a configuration file for package "Td" that is compatible with requested version "1.7.10". HOT 2
- Telegram for android 8.6.1 get stuck HOT 9
- Problem with utils.cpp.o HOT 1
- [Question] White list for incoming Telegram calls? HOT 1
- Unhandled exception: map::at on every incoming call from Telegram side HOT 7
- Как настроить исходящий вызов на freepbx? HOT 1
- Нельзя принять вызов при включенном клиенте телеграм HOT 2
- Instructions to build in Raspberry Pi Bullseye 64-bit [aarch64] HOT 2
- Решение работает? HOT 2
- Нету голоса на iPhone'ах HOT 7
- No audio on answer HOT 10
- the call ends after a minute
- can't register in telegram gen_db
- Call Ends before talking is possible HOT 1
- Is it possible to connect more than 1 number?
- Any plans for updates?
- gen_db appimage not working, can't login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tg2sip.