[omniORB] omniorb 2.80 and gcc 3.04

Peter.Ronnquist@nokia.com Peter.Ronnquist@nokia.com
Mon, 6 May 2002 15:38:06 +0200


Hello,

we get the following error:

/home/ost/cross/gcc_root/usr/bin/omniidl2 -I../../include =
-I/home/hjartstr/build/gcc_test2/root/mtdrivers/usr/ost/include =
-I/home/hjartstr/build/gcc_test2/root/system/usr/ost/include -I. =
-I../../include/dtv -I. -a SicIdl.idl
/home/ost/cross/gcc_root/usr/bin/omniidl2: "SicIdl.idl", line 23: =
redefinition after use, ::sid, , ::sid
/home/ost/cross/gcc_root/usr/bin/omniidl2: "SicIdl.idl", line 28: error =
in lookup of symbol: table_struct
/home/ost/cross/gcc_root/usr/bin/omniidl2: "SicIdl.idl", line 29: error =
in lookup of symbol: Array
/home/ost/cross/gcc_root/usr/bin/omniidl2: "SicIdl.idl", line 31: error =
in lookup of symbol: table_struct
/home/ost/cross/gcc_root/usr/bin/omniidl2: "SicIdl.idl", line 33: error =
in lookup of symbol: table_struct
/home/ost/cross/gcc_root/usr/bin/omniidl2: SicIdl.idl: found 5 errors
make[1]: *** [SicIdl.hh] Error 1

The idl file look like this:
---------------------------------------------------------------------

/*=20
 * The contents of this file are subject to the NOKOS=20
 * License Version 1.0 (the "License"); you may not use
 * this file except in compliance with the License.=20
 *=20
 * Software distributed under the License is distributed
 * on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
 * either express or implied. See the License for the
 * specific language governing rights and limitations
 * under the License.=20
 *=20
 * The Original Software is: sid
 *
 * Copyright (c) 2001 Nokia and others. All Rights Reserved.=20
 *=20
 * Contributor(s):
 */
#include "sicCommon.idl"
#include "../../common/event/idl/Events.idl"


module sid
{
   =20
    interface SicIdl : common::EventGeneratorIdl=20
        {
            long get_data(in table_struct table_info,
                                out Array section);
           =20
            long Start(in table_struct table_info, in unsigned long =
timeout);

            long Stop(in table_struct table_info);
        };
};
---------------------------------------------------------------------

I agree with you that an upgrade of omniorb is probably the best =
solution.

Best Regards
Peter



-----Original Message-----
From: ext Duncan Grisby [mailto:duncan@grisby.org]
Sent: 30. April 2002 17:03
To: Ronnquist Peter (NHC/Linkoping)
Cc: omniorb-list@uk.research.att.com
Subject: Re: [omniORB] omniorb 2.80 and gcc 3.04=20


On Friday 26 April, Peter.Ronnquist@nokia.com wrote:

> Now we have compiled omniorb 2.80 with gcc 3.04 (after commeting out
> a couple of .attach(..) calls in omniNames/log.cc).  The problem now
> is that idl files that worked perfectly when processed with omniidl2
> compiled with gcc 2.95.2, now gives error messages when processed
> with omniidl2 that is compiled with gcc 3.04.

What errors do you get?  If at all possible, it would be best for you
to migrate to omniORB 3 or omniORB 4. The code changes you need should
be minimal.

I'd be happy to help you with the transition for a suitable fee :-)

Cheers,

Duncan.

--=20
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --