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

UIMA C++ fails to build with gcc 4.5.2

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0C
    • Fix Version/s: 2.4.0C
    • Component/s: C++ Framework
    • Labels:
      None
    • Environment:

      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: