legacy/mistserver: (32-bit) FTBFS: src/input/input.cpp:1063:13: error: no match for ‘operator!=’ (operand types are ‘std::map<unsigned int, std::map<unsigned int, unsigned int> >::iterator’
Found on HR350A (armv7) and ppc:
...
In file included from /usr/include/c++/8.5.0/armv7-foxkit-linux-musleabihf/bits/c++allocator.h:33,
from /usr/include/c++/8.5.0/bits/allocator.h:46,
from /usr/include/c++/8.5.0/string:41,
from /usr/include/c++/8.5.0/bits/locale_classes.h:40,
from /usr/include/c++/8.5.0/bits/ios_base.h:41,
from /usr/include/c++/8.5.0/ios:42,
from /usr/include/c++/8.5.0/istream:38,
from /usr/include/c++/8.5.0/fstream:38,
from /usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.h:2,
from /usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp:5: /usr/include/c++/8.5.0/ext/new_allocator.h:160:5: note: candidate: ‘template<class _Tp> bool __gnu_cxx::operator!=(const __gnu_cxx::new_allocator<_Tp>&, const __gnu_cxx::new_allocator<_Tp>&)’
operator!=(const new_allocator<_Tp>&, const new_allocator<_Tp>&)
^~~~~~~~
/usr/include/c++/8.5.0/ext/new_allocator.h:160:5: note: template argument deduction/substitution failed:
/usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp:1029:32: note: ‘std::map<unsigned int, std::map<unsigned int, unsigned int> >::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const unsigned int, std::map<unsigned int, unsigned int> > >’} is not
derived from ‘const __gnu_cxx::new_allocator<_Tp>’
it != pageCounter.end(); it++){
^
/usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp: In member function ‘virtual void Mist::Input::removeUnused()’:
/usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp:1062:88: error: conversion from ‘_Rb_tree_iterator<pair<[...],map<[...],long long unsigned int>>>’ to non-scalar type ‘_Rb_tree_iterator<pair<[...],map<[...],unsigned int>>>’ requested
for (std::map<size_t, std::map<uint32_t, size_t> >::iterator it = pageCounter.begin();
~~~~~~~~~~~~~~~~~^~
/usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp:1063:13: error: no match for ‘operator!=’ (operand types are ‘std::map<unsigned int, std::map<unsigned int, unsigned int> >::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const unsigned int, std::
map<unsigned int, unsigned int> > >’} and ‘std::map<unsigned int, std::map<unsigned int, long long unsigned int> >::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const unsigned int, std::map<unsigned int, long long unsigned int> > >’})
it != pageCounter.end(); it++){
~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/8.5.0/map:60,
from /usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.h:3, from /usr/src/packages/user/mistserver/src/mistserver-3.1/src/input/input.cpp:5:
/usr/include/c++/8.5.0/bits/stl_tree.h:319:7: note: candidate: ‘bool std::_Rb_tree_iterator<_Tp>::operator!=(const _Self&) const [with _Tp = std::pair<const unsigned int, std::map<unsigned int, unsigned int> >; std::_Rb_tree_iterator<_Tp>::_Self = std::_Rb_tree_iterator<s
td::pair<const unsigned int, std::map<unsigned int, unsigned int> > >]’
operator!=(const _Self& __x) const _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/8.5.0/bits/stl_tree.h:319:7: note: no known conversion for argument 1 from ‘std::map<unsigned int, std::map<unsigned int, long long unsigned int> >::iterator’ {aka ‘std::_Rb_tree_iterator<std::pair<const unsigned int, std::map<unsigned int, long long un
signed int> > >’} to ‘const _Self&’ {aka ‘const std::_Rb_tree_iterator<std::pair<const unsigned int, std::map<unsigned int, unsigned int> > >&’}
...