Skip to content

Instantly share code, notes, and snippets.

@rektide
Created July 30, 2015 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rektide/1764ab5bf23d82f510fb to your computer and use it in GitHub Desktop.
Save rektide/1764ab5bf23d82f510fb to your computer and use it in GitHub Desktop.
powerdns make attempt
make all-recursive
make[1]: Entering directory '/home/rektide/src/archive/pdns'
Making all in ext
make[2]: Entering directory '/home/rektide/src/archive/pdns/ext'
Making all in polarssl
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext/polarssl'
Making all in library
make[4]: Entering directory '/home/rektide/src/archive/pdns/ext/polarssl/library'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/ext/polarssl/library'
make[4]: Entering directory '/home/rektide/src/archive/pdns/ext/polarssl'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/ext/polarssl'
make[3]: Leaving directory '/home/rektide/src/archive/pdns/ext/polarssl'
Making all in yahttp
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext/yahttp'
Making all in yahttp
make[4]: Entering directory '/home/rektide/src/archive/pdns/ext/yahttp/yahttp'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/ext/yahttp/yahttp'
make[4]: Entering directory '/home/rektide/src/archive/pdns/ext/yahttp'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/ext/yahttp'
make[3]: Leaving directory '/home/rektide/src/archive/pdns/ext/yahttp'
Making all in rapidjson
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext/rapidjson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/ext/rapidjson'
Making all in json11
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext/json11'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/ext/json11'
make[3]: Entering directory '/home/rektide/src/archive/pdns/ext'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/ext'
make[2]: Leaving directory '/home/rektide/src/archive/pdns/ext'
Making all in modules
make[2]: Entering directory '/home/rektide/src/archive/pdns/modules'
Making all in bindbackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/bindbackend'
make all-am
make[4]: Entering directory '/home/rektide/src/archive/pdns/modules/bindbackend'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/modules/bindbackend'
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/bindbackend'
Making all in randombackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/randombackend'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/randombackend'
Making all in geoipbackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/geoipbackend'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/geoipbackend'
Making all in gmysqlbackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/gmysqlbackend'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/gmysqlbackend'
Making all in gpgsqlbackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/gpgsqlbackend'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/gpgsqlbackend'
Making all in pipebackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/pipebackend'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/pipebackend'
Making all in remotebackend
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules/remotebackend'
make all-am
make[4]: Entering directory '/home/rektide/src/archive/pdns/modules/remotebackend'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/rektide/src/archive/pdns/modules/remotebackend'
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules/remotebackend'
make[3]: Entering directory '/home/rektide/src/archive/pdns/modules'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/rektide/src/archive/pdns/modules'
make[2]: Leaving directory '/home/rektide/src/archive/pdns/modules'
Making all in codedocs
make[2]: Entering directory '/home/rektide/src/archive/pdns/codedocs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/rektide/src/archive/pdns/codedocs'
Making all in docs
make[2]: Entering directory '/home/rektide/src/archive/pdns/docs'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/rektide/src/archive/pdns/docs'
Making all in pdns
make[2]: Entering directory '/home/rektide/src/archive/pdns/pdns'
make all-am
make[3]: Entering directory '/home/rektide/src/archive/pdns/pdns'
CXX dnsgram.o
In file included from dnsgram.cc:16:0:
anadns.hh: In static member function ‘static QuestionIdentifier QuestionIdentifier::create(const ComboAddress&, const ComboAddress&, const MOADNSParser&)’:
anadns.hh:37:16: error: no match for ‘operator=’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘const DNSName’)
ret.d_qname=mdp.d_qname;
^
anadns.hh:37:16: note: candidates are:
In file included from /usr/include/c++/4.9/string:52:0,
from /usr/include/c++/4.9/stdexcept:39,
from /usr/include/c++/4.9/array:38,
from /usr/include/c++/4.9/tuple:39,
from /usr/include/c++/4.9/bits/stl_map.h:63,
from /usr/include/c++/4.9/map:61,
from statbag.hh:25,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/basic_string.h:554:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
operator=(const basic_string& __str)
^
/usr/include/c++/4.9/bits/basic_string.h:554:7: note: no known conversion for argument 1 from ‘const DNSName’ to ‘const std::basic_string<char>&’
/usr/include/c++/4.9/bits/basic_string.h:562:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
operator=(const _CharT* __s)
^
/usr/include/c++/4.9/bits/basic_string.h:562:7: note: no known conversion for argument 1 from ‘const DNSName’ to ‘const char*’
/usr/include/c++/4.9/bits/basic_string.h:573:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
operator=(_CharT __c)
^
/usr/include/c++/4.9/bits/basic_string.h:573:7: note: no known conversion for argument 1 from ‘const DNSName’ to ‘char’
/usr/include/c++/4.9/bits/basic_string.h:589:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(std::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
operator=(basic_string&& __str)
^
/usr/include/c++/4.9/bits/basic_string.h:589:7: note: no known conversion for argument 1 from ‘const DNSName’ to ‘std::basic_string<char>&&’
/usr/include/c++/4.9/bits/basic_string.h:601:7: note: std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(std::initializer_list<_Tp>) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]
operator=(initializer_list<_CharT> __l)
^
/usr/include/c++/4.9/bits/basic_string.h:601:7: note: no known conversion for argument 1 from ‘const DNSName’ to ‘std::initializer_list<char>’
dnsgram.cc: In function ‘int main(int, char**)’:
dnsgram.cc:130:19: error: no match for ‘operator[]’ (operand types are ‘std::map<std::pair<std::basic_string<char>, short unsigned int>, int>’ and ‘std::pair<DNSName, short unsigned int>’)
counts[make_pair(mdp.d_qname, mdp.d_qtype)]++;
^
dnsgram.cc:130:19: note: candidates are:
In file included from /usr/include/c++/4.9/map:61:0,
from statbag.hh:25,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_map.h:491:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Tp = int; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<const std::pair<std::basic_string<char>, short unsigned int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::basic_string<char>, short unsigned int>]
operator[](const key_type& __k)
^
/usr/include/c++/4.9/bits/stl_map.h:491:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const key_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_map.h:511:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Tp = int; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<const std::pair<std::basic_string<char>, short unsigned int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::basic_string<char>, short unsigned int>]
operator[](key_type&& __k)
^
/usr/include/c++/4.9/bits/stl_map.h:511:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::map<std::pair<std::basic_string<char>, short unsigned int>, int>::key_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
dnsgram.cc:131:65: error: no matching function for call to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::insert(std::pair<DNSName, short unsigned int>)’
questions.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
dnsgram.cc:131:65: note: candidates are:
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const value_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::value_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template argument deduction/substitution failed:
dnsgram.cc:131:65: note: candidate expects 2 arguments, 1 provided
questions.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(initializer_list<value_type> __l)
^
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::initializer_list<std::pair<std::basic_string<char>, short unsigned int> >’
dnsgram.cc:137:63: error: no matching function for call to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::insert(std::pair<DNSName, short unsigned int>)’
answers.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
dnsgram.cc:137:63: note: candidates are:
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const value_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::value_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template argument deduction/substitution failed:
dnsgram.cc:137:63: note: candidate expects 2 arguments, 1 provided
answers.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(initializer_list<value_type> __l)
^
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::initializer_list<std::pair<std::basic_string<char>, short unsigned int> >’
dnsgram.cc:142:19: error: no match for ‘operator[]’ (operand types are ‘std::map<std::pair<std::basic_string<char>, short unsigned int>, int>’ and ‘std::pair<DNSName, short unsigned int>’)
counts[make_pair(mdp.d_qname, mdp.d_qtype)]++;
^
dnsgram.cc:142:19: note: candidates are:
In file included from /usr/include/c++/4.9/map:61:0,
from statbag.hh:25,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_map.h:491:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Tp = int; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<const std::pair<std::basic_string<char>, short unsigned int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::basic_string<char>, short unsigned int>]
operator[](const key_type& __k)
^
/usr/include/c++/4.9/bits/stl_map.h:491:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const key_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_map.h:511:7: note: std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](std::map<_Key, _Tp, _Compare, _Alloc>::key_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Tp = int; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<const std::pair<std::basic_string<char>, short unsigned int>, int> >; std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type = int; std::map<_Key, _Tp, _Compare, _Alloc>::key_type = std::pair<std::basic_string<char>, short unsigned int>]
operator[](key_type&& __k)
^
/usr/include/c++/4.9/bits/stl_map.h:511:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::map<std::pair<std::basic_string<char>, short unsigned int>, int>::key_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
dnsgram.cc:143:65: error: no matching function for call to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::insert(std::pair<DNSName, short unsigned int>)’
questions.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
dnsgram.cc:143:65: note: candidates are:
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const value_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::value_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template argument deduction/substitution failed:
dnsgram.cc:143:65: note: candidate expects 2 arguments, 1 provided
questions.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(initializer_list<value_type> __l)
^
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::initializer_list<std::pair<std::basic_string<char>, short unsigned int> >’
dnsgram.cc:147:63: error: no matching function for call to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::insert(std::pair<DNSName, short unsigned int>)’
answers.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
dnsgram.cc:147:63: note: candidates are:
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:499:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘const value_type& {aka const std::pair<std::basic_string<char>, short unsigned int>&}’
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator, bool> std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; typename std::_Rb_tree<_Key, _Key, std::_Identity<_Key>, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind<_Key>::other>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:508:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::set<std::pair<std::basic_string<char>, short unsigned int> >::value_type&& {aka std::pair<std::basic_string<char>, short unsigned int>&&}’
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, const value_type&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, const value_type& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:536:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::insert(std::set<_Key, _Compare, _Alloc>::const_iterator, std::set<_Key, _Compare, _Alloc>::value_type&&) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<std::basic_string<char>, short unsigned int> >; std::set<_Key, _Compare, _Alloc>::value_type = std::pair<std::basic_string<char>, short unsigned int>]
insert(const_iterator __position, value_type&& __x)
^
/usr/include/c++/4.9/bits/stl_set.h:541:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template<class _InputIterator> void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(_InputIterator __first, _InputIterator __last)
^
/usr/include/c++/4.9/bits/stl_set.h:556:2: note: template argument deduction/substitution failed:
dnsgram.cc:147:63: note: candidate expects 2 arguments, 1 provided
answers.insert(make_pair(mdp.d_qname, mdp.d_qtype));
^
In file included from /usr/include/c++/4.9/set:61:0,
from namespaces.hh:16,
from qtype.hh:28,
from dns.hh:32,
from misc.hh:37,
from lock.hh:27,
from statbag.hh:29,
from dnsgram.cc:5:
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: void std::set<_Key, _Compare, _Alloc>::insert(std::initializer_list<_Tp>) [with _Key = std::pair<std::basic_string<char>, short unsigned int>; _Compare = std::less<std::pair<std::basic_string<char>, short unsigned int> >; _Alloc = std::allocator<std::pair<std::basic_string<char>, short unsigned int> >]
insert(initializer_list<value_type> __l)
^
/usr/include/c++/4.9/bits/stl_set.h:568:7: note: no known conversion for argument 1 from ‘std::pair<DNSName, short unsigned int>’ to ‘std::initializer_list<std::pair<std::basic_string<char>, short unsigned int> >’
Makefile:2399: recipe for target 'dnsgram.o' failed
make[3]: *** [dnsgram.o] Error 1
make[3]: Leaving directory '/home/rektide/src/archive/pdns/pdns'
Makefile:1954: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/rektide/src/archive/pdns/pdns'
Makefile:542: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/rektide/src/archive/pdns'
Makefile:473: recipe for target 'all' failed
make: *** [all] Error 2
# gcc --version
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@rektide
Copy link
Author

rektide commented Jul 30, 2015

12:50 < Habbie> rektide, PowerDNS/pdns#2638 probably helps
12:50 < Habbie> rektide, i'm quite sure in fact

Thanks Habbie!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment