qpid/broker/MessageGroupManager.cpp fails to compile when size_t != unsigned int
--------------------------------------------------------------------------------
Key: QPID-3952
URL: https://issues.apache.org/jira/browse/QPID-3952
Project: Qpid
Issue Type: Bug
Components: C++ Broker
Affects Versions: 0.14
Environment: Fedora 16 and later on s390 (32-bit)
Reporter: Dan HorĂ¡k
qpid fails to build on s390 with the following error thrown:
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I. -I=.
-Werror -Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align
-Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers
-Woverloaded-virtual -DQPID_LIBEXEC_DIR=\"/usr/libexec/qpid\"
-DBOOST_FILESYSTEM_VERSION=2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31 -march=z9-109
-mtune=z10 -DNDEBUG -O3 -Wno-unused-result -c
qpid/replication/ReplicatingEventListener.cpp -fPIC -DPIC -o
qpid/replication/.libs/ReplicatingEventListener.o
qpid/broker/MessageGroupManager.cpp: In member function 'virtual void
qpid::broker::MessageGroupManager::query(qpid::types::Variant::Map&) const':
qpid/broker/MessageGroupManager.cpp:283:56: error: ambiguous overload for
'operator=' in 'info.std::map<_Key, _Tp, _Compare,
_Alloc>::operator[]<std::basic_string<char>, qpid::types::Variant,
std::less<std::basic_string<char> >, std::allocator<std::pair<const
std::basic_string<char>, qpid::types::Variant> > >((* &
{anonymous}::GROUP_MSG_COUNT)) =
g.std::tr1::__detail::_Hashtable_const_iterator<_Value, __constant_iterators,
__cache>::operator-><std::pair<const std::basic_string<char>,
qpid::broker::MessageGroupManager::GroupState>, false,
false>()->std::pair<const std::basic_string<char>,
qpid::broker::MessageGroupManager::GroupState>::second.qpid::broker::MessageGroupManager::GroupState::members.std::deque<_Tp,
_Alloc>::size<qpid::framing::SequenceNumber,
std::allocator<qpid::framing::SequenceNumber> >()'
qpid/broker/MessageGroupManager.cpp:283:56: note: candidates are:
In file included from qpid/broker/MessageGroupManager.cpp:23:0:
../include/qpid/types/Variant.h:100:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(bool)
../include/qpid/types/Variant.h:101:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(uint8_t)
../include/qpid/types/Variant.h:102:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(uint16_t)
../include/qpid/types/Variant.h:103:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(uint32_t)
../include/qpid/types/Variant.h:104:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(uint64_t)
../include/qpid/types/Variant.h:105:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(int8_t)
../include/qpid/types/Variant.h:106:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(int16_t)
../include/qpid/types/Variant.h:107:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(int32_t)
../include/qpid/types/Variant.h:108:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(int64_t)
../include/qpid/types/Variant.h:109:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(float)
../include/qpid/types/Variant.h:110:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(double)
../include/qpid/types/Variant.h:111:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(const string&) <near match>
../include/qpid/types/Variant.h:111:32: note: no known conversion for
argument 1 from 'std::deque<qpid::framing::SequenceNumber>::size_type {aka long
unsigned int}' to 'const string& {aka const std::basic_string<char>&}'
../include/qpid/types/Variant.h:112:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(const char*) <near match>
../include/qpid/types/Variant.h:112:32: note: no known conversion for
argument 1 from 'std::deque<qpid::framing::SequenceNumber>::size_type {aka long
unsigned int}' to 'const char*'
../include/qpid/types/Variant.h:115:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(const qpid::types::Variant&)
../include/qpid/types/Variant.h:116:32: note: qpid::types::Variant&
qpid::types::Variant::operator=(const qpid::types::Uuid&)
make[3]: *** [qpid/broker/MessageGroupManager.lo] Error 1
It is the same situation as in QPID-2996
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]