Qpid
  1. Qpid
  2. QPID-4701

Exception types lost in qpidmessaging when compiling with cmake and gcc 4.1.2 (e.g. RHEL5)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20, 0.22
    • Fix Version/s: 0.23
    • Component/s: C++ Client
    • Labels:
      None

      Description

      Exceptions are thrown simply as std::exception rather than the specific types defined. This appears to be a result of the visibility flag support in the version of gcc (cmake turns that on, autotools does not).

      (See also QPID-4484)

        Activity

        Hide
        Justin Ross added a comment -
        Show
        Justin Ross added a comment - Released in Qpid 0.24, http://qpid.apache.org/releases/qpid-0.24/index.html
        Hide
        Gordon Sim added a comment -

        I've committed the patch for now as it fixes the build issue: http://svn.apache.org/viewvc?view=revision&revision=1464930. It can be reverted in favour of a better solution if and when one emerges.

        Show
        Gordon Sim added a comment - I've committed the patch for now as it fixes the build issue: http://svn.apache.org/viewvc?view=revision&revision=1464930 . It can be reverted in favour of a better solution if and when one emerges.
        Hide
        Gordon Sim added a comment -

        I suspect its a defect in gcc 4.1.2's support of the visibility flag. However that is speculation. The facts are that with the flag on the issue is apparent on 4.1.2, with the flag off it is not.

        Show
        Gordon Sim added a comment - I suspect its a defect in gcc 4.1.2's support of the visibility flag. However that is speculation. The facts are that with the flag on the issue is apparent on 4.1.2, with the flag off it is not.
        Hide
        Andrew Stitcher added a comment -

        I'm confused by one thing though - it would seem that if the symbol visibility was the cause of the problem it would happen in all version of gcc not just 4.1.2.

        Show
        Andrew Stitcher added a comment - I'm confused by one thing though - it would seem that if the symbol visibility was the cause of the problem it would happen in all version of gcc not just 4.1.2.
        Hide
        Gordon Sim added a comment -

        Suggested change is to disable the visibility setting on the affected version of gcc: https://reviews.apache.org/r/10283/

        Show
        Gordon Sim added a comment - Suggested change is to disable the visibility setting on the affected version of gcc: https://reviews.apache.org/r/10283/

          People

          • Assignee:
            Gordon Sim
            Reporter:
            Gordon Sim
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development