Qpid
  1. Qpid
  2. QPID-4484

C++ qpidmessaging compile error on RHEL 5 gcc 4.1.2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.19
    • Fix Version/s: 0.21
    • Component/s: C++ Client
    • Labels:
      None
    • Environment:

      RHEL 5 cmake build with gcc 4.1.2

      Description

      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.

        Activity

        Hide
        Steve Huston added a comment -

        Fixed on trunk r1415470.
        Judgement call on whether this is a candidate for 0.20 - if RHEL 5 is important, this is required.

        Show
        Steve Huston added a comment - Fixed on trunk r1415470. Judgement call on whether this is a candidate for 0.20 - if RHEL 5 is important, this is required.

          People

          • Assignee:
            Steve Huston
            Reporter:
            Steve Huston
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development