[omniORB] status of CORBA::Current^H^H^H^H^H^H^HContext

William Noon noon@snow.nrcc.cornell.edu
Thu, 13 Dec 2001 07:24:42 -0500


Duncan -- Sorry, I meant CORBA::Context.  When I add a context to an
operation in idl and run omniidl, the Context in stubbed in (and
even example code is created).  However, when I try to compile the stubs,
I get undefined references to CORBA::Context objects:

../bin/i586_linux_2.0_glibc2.1_gcc2.96/omkdepend -D__cplusplus -D__GNUG__ -D__GNUC__ -D__OMNIORB4__ -I../stub -D_REENTRANT -I. -I. -I../include -D__x86__ -D__linux__ -D__OSVERSION__=2 echoDynSK.cc echoSK.cc
/usr/bin/g++ -c -O2  -Wall -Wno-unused -D__OMNIORB4__ -I../stub -D_REENTRANT  -I. -I. -I../include -D__x86__ -D__linux__ -D__OSVERSION__=2 -o echoSK.o echoSK.cc
make[1]: Leaving directory `/usr/local/sources/omni2/stub'
+ rm -f ctx_impl
+ /usr/bin/g++ -o ctx_impl -O2 -Wall -Wno-unused -Wl,-rpath,../../../lib/i586_linux_2.0_glibc2.1_gcc2.96 -Wl,-rpath,../../../lib/i586_linux_2.0_glibc2.1_gcc2.96 -L../../../lib/i586_linux_2.0_glibc2.1_gcc2.96 ctx_impl.o ../../../stub/echoSK.o -lomniORB4 -lomniAsyncInvoker -lomnithread -lpthread
../../../stub/echoSK.o: In function `_0RL_cd_01531d3e51c81a80_00000000::marshalArguments(cdrStream &)':
../../../stub/echoSK.o(.text+0x4b1): undefined reference to `CORBA::Context::marshalContext(CORBA::Context *, char const *const *, int, cdrStream &)'
../../../stub/echoSK.o: In function `_0RL_cd_01531d3e51c81a80_00000000::unmarshalArguments(cdrStream &)':
../../../stub/echoSK.o(.text+0x522): undefined reference to `CORBA::Context::unmarshalContext(cdrStream &)'
../../../stub/echoSK.o(.text+0x52e): undefined reference to `CORBA::release(CORBA::Context *)'
...etc...

--Bill Noon
> 
> On Wednesday 12 December, William Noon wrote:
> 
> > I was wondering how stable the Current support in omniORB4 is in the 
> > cvs code.
> 
> PortableServer::Current is fully implemented, and stable.
> 
> > I tried a simple example and I am getting undefined references to all
> > CORBA::Context objects.
> 
> Do you mean Context or Current?  What exactly are you trying to do?
> 
> Cheers,
> 
> Duncan.
> 
> -- 
>  -- Duncan Grisby  \  Research Engineer  --
>   -- AT&T Laboratories Cambridge          --
>    -- http://www.uk.research.att.com/~dpg1 --