Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2361

UIMA C++ fails to build with gcc 4.5.2

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0C
    • 2.4.0C
    • C++ Framework
    • None
    • Ubuntu 11.04

    Description

      Reported by Jean-Cedric Chappelier

      I just tested the very last version (2.4.0.03 from Jan 25th,
      downloaded from here:
      http://people.apache.org/~bhavani/uimacpp-release-candidates/2.4.0/03/uimacpp-2.4.0-src.tgz
      ), and have a few remarks, hopefully helpful.

      I tested it on a Ubuntu 11.04 with all up-to-date packages but
      without ActiveMQ.
      ....

      2) secondly, there is a bug in handling properly Xerces XMLFileLoc
      type in UIMA exceptions, more precisely in ErrorMessage::addParam.

      XMLFileLoc is indeed an uint64_t
      (grep XMLFileLoc /usr/include/xercesc/util/Xerces_autoconf_config.hpp)
      for which ErrorMessage has no good addParam method (ambiguous casting).
      My g++ 4.5.2 complains about this and refuses to go ahead.

      I hereby attach a proposed patch (exceptions.patch) for both
      exceptions.cpp and exceptions.hpp

      BTW, may I recommend you to add a template ErrorMessage::addParam?
      This would avoid this kind of problems.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bhavani Bhavani Iyer
            bhavani Bhavani Iyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment