Steve Huston created QPID-4484:
----------------------------------
Summary: C++ qpidmessaging compile error on RHEL 5 gcc 4.1.2
Key: QPID-4484
URL: https://issues.apache.org/jira/browse/QPID-4484
Project: Qpid
Issue Type: Bug
Components: C++ Client
Affects Versions: 0.19
Environment: RHEL 5 cmake build with gcc 4.1.2
Reporter: Steve Huston
Building C++ qpidmessaging on RHEL 5 with updated gcc 4.1.2 produces an error:
cc1plus: warnings being treated as errors
/qpidbuilds/trunk/qpid/cpp/src/../include/qpid/RangeSet.h: In instantiation of
‘qpid::RangeSet<qpid::framing::SequenceNumber>’:
/qpidbuilds/trunk/qpid/cpp/src/../include/qpid/framing/SequenceSet.h:32:
instantiated from here
/qpidbuilds/trunk/qpid/cpp/src/../include/qpid/RangeSet.h:193: warning:
lowering visibility of ‘std::ostream& qpid::operator<<(std::ostream&, const
qpid::RangeSet<U>&) [with U = U, T = qpid::framing::SequenceNumber]’ to match
its type
make[2]: ***
[src/CMakeFiles/qpidmessaging.dir/qpid/messaging/ProtocolRegistry.o] Error 1
The way to silence this warning is to add -Wno-attributes along with
-fvisibility=hidden.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]