Results 1 to 4 of 4

Thread: [3.4b] slice2java skips exception fields with // comments

  1. #1
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115

    [3.4b] slice2java skips exception fields with // comments

    Running slice2java against the following slice definition produces one exception (E1) with only a single field (concurrency) and one exception (E2) with three fields (concurrency, backOff, type)

    Code:
    module ex {
      exception E1 {
          bool    concurrency;
          long    backOff;    // Only used if ConcurrencyException
          string  type;       // Ice static type information
      };
      exception E2 {
          bool    concurrency;
          long    backOff;    /* Only used if ConcurrencyException */
          string  type;       /* Ice static type information */
      };
    };

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    On what platform are you seeing this? Did you compile MCPP yourself? If so, did you apply the patch we provided?
    Dwayne Boone

  3. #3
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115
    This was on Mac 10.4 with an up-to-date MacPorts installation. I compiled mcpp with:
    Code:
    test -e $MCPP_DONE || {
        patch -p0 < ../mcpp/patch.mcpp.2.7.2
        touch $MCPP_DONE
    }
    test -e $MCPP_HOME || {
        ./configure CFLAGS="-fno-common -fPIC" --enable-mcpplib --disable-shared --prefix=$MCPP_HOME
        make
        make install
    }
    and then called
    Code:
    export MCPP_HOME=$MCPP_HOME
    before compiling Ice, but apparently the MacPorts mcpp 2.7.2 (installed as a dependency of ice-cpp 3.3.1) was still picked up before MCPP_HOME. Forcibly removing the MacPorts version fixed the problem.

    Let me know if it's worth trying to reproduce the build error, but for now, it's working. Thanks for the help, Dwayne.

  4. #4
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    The issue is expected if the mcpp patch is not applied.
    Dwayne Boone

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [3.4b] ruby bindings fail to build
    By Reto Glauser in forum Bug Reports
    Replies: 8
    Last Post: 02-05-2010, 11:41 AM
  2. [3.3.1 and 3.4b] slice2py const long problem
    By Han in forum Bug Reports
    Replies: 1
    Last Post: 01-28-2010, 12:20 PM
  3. [3.4b] No Implicit Context in PHP
    By ogre_x in forum Bug Reports
    Replies: 0
    Last Post: 01-26-2010, 09:13 AM
  4. Replies: 2
    Last Post: 10-20-2008, 08:49 AM
  5. Replies: 1
    Last Post: 08-07-2005, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •