ORBit2-2.4.1 file corba-defs.idl parse error



Solaris 2.6, 2.8, using Forte compiler 6 update 2, more or less up-to-date
on patches...

Here are examples of the errors I see on the first two files

-----------------------------------------------------------
make[7]: Entering directory
`/opt/src/gnome/ORBit2-2.4.1/include/orbit/orb-core'
(rm -f corba-defs.h corba-defs-stubs.c corba-defs-skels.c
corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c || true) >
/dev/null
../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL
-I../../../src/idl/CORBA -I../../../src/idl/interop --noskels --nodefskels
--nostubs --noidata --nocommon --showcpperrors --define=Object=OObject
--define=TypeCode=TTypeCode --deps ./.deps/corba-defs.idl.P
../../../src/orb/orb-core/corba-defs.idl
orbit-idl-2 2.4.1 compiling
 small mode, show preprocessor errors, passes: headers skel_impl imodule

../../../src/orb/orb-core/corba-defs.idl:27: Error: parse error,
unexpected TOK_SRCFILE, expecting TOK_ENUM or TOK_STRUCT or TOK_UNION

** (process:29964): WARNING **: ../../../src/orb/orb-core/corba-defs.idl
compilation failed
for I in corba-defs.h corba-defs-stubs.c corba-defs-skels.c
corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c; do \
        if test -f $I; then \
                sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $I
> $I.out; \
                mv $I.out $I ; \
        fi; \
done
(rm -f iop-defs.h iop-defs-stubs.c iop-defs-skels.c iop-defs-common.c
iop-defs-imodule.c iop-defs-skelimpl.c || true) > /dev/null
../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL
-I../../../src/idl/CORBA -I../../../src/idl/interop --noskels --nodefskels
--nostubs --noidata --nocommon --showcpperrors --define=Object=OObject
--define=TypeCode=TTypeCode --deps ./.deps/iop-defs.idl.P
../../../src/orb/orb-core/iop-defs.idl
orbit-idl-2 2.4.1 compiling
 small mode, show preprocessor errors, passes: headers skel_impl imodule

../../../src/orb/orb-core/iop-defs.idl:27: Error: parse error, unexpected
TOK_SRCFILE, expecting TOK_ENUM or TOK_STRUCT or TOK_UNION
cc: Fatal error in /opt/SUNWspro6.2/bin/../WS6U2/bin/acomp : Broken Pipe

** (process:29972): WARNING **: ../../../src/orb/orb-core/iop-defs.idl
compilation failed
for I in iop-defs.h iop-defs-stubs.c iop-defs-skels.c iop-defs-common.c
iop-defs-imodule.c iop-defs-skelimpl.c; do \
        if test -f $I; then \
                sed -e 's,OObject,Object,g' -e 's,TTypeCode,TypeCode,g' $I
> $I.out; \
                mv $I.out $I ; \
        fi; \
done

------------------------------------------------------------------------


I've run orbit-idl-2, and it at least prints usage statements correctly.
Just for kicks, I changed the line endings of
../../../src/orb/orb-core/iop-defs.idl and
../../../src/orb/orb-core/corba-defs.idl, and got a few extra warnings
about invalid whitespace.

Why or how is the orbit-idl-2 binary using the Forte 6u2 acomp program?
It looks like orbit-idl-2 wasn't able to parse iop-defs.idl or
corba-defs.idl, but I don't know why.

How do I fix this?  Or troubleshoot further?



<whine/rant/wish mode>
So far, in attempting to build Gnome 2, the build process has been roughly
factorial:  try to build first lib, get stumped, figure it out, try to
build second lib, get stumped, have to rebuild first lib, build second
lib, third requires rebuilding 1 and 2, etc.  Not too fun, and so far I
haven't had enough time to get through the whole monster tree.  Some
problems are bugs in the Forte tools, some are Linux-specific or
gcc-specific portability issues, some are from distributing what is
essentially a CVS or nightly build as current-stable-release, and some are
just ignorance on my part (like attempting to do this in the first place).
I sure wish I could get over the hump, and be able to build things without
pulling teeth and chopping off limbs.  Sigh.  On the other hand, I've
gotten really good at compiling pkgconfig and glib.  :)
</whine/rant/wish mode>


--
MattLangford





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]