[omniORB] FW: :gcc-3.1 solaris 8 problems

Sonia Duarte est-s-duarte@ptinovacao.pt
Mon Feb 3 11:20:03 2003


Hello!

I am working with omniORB-4.0.0 and my OS is Solaris 8. When using gcc-2.95
I had no problems on compilation and installation neither compiling my Corba
programs.  Now, I have to use gcc-3.1 on my machine (due to another
application I have) and I am getting errors with omniORB.  I compiled
gcc-3.1 with the option --enable-threads. When I try to compile a Corba
program I get the following errors:
(This program I tried to compile works fine with gcc-2.95)
I am using ld and as from Sun.  


g++ -o server -fexceptions -Wall -Wno-unused     -R
/export/home/sgd/omniORB/omniORB-4.0.0/lib/sun4_sosV_5.7  -L
/export/home/sgd/omniORB/omniORB-4.0.0/lib/sun4_sosV_5.7 server.o cs1SK.o
-lomniORB4 -lomnithread -lpthread -lposix4 -lsocket -lnsl 
Undefined                       first referenced
 symbol                             in file
CORBA::Object::~Object [not-in-charge]()cs1SK.o
omniObjRef::_uncheckedNarrow(char const*)cs1SK.o
omniObjRef::_unMarshal(char const*, cdrStream&)cs1SK.o
PortableServer::RefCountServantBase::~RefCountServantBase
[in-charge]()server.o
(...)

PortableServer::RefCountServantBase::~RefCountServantBase [in-charge
deleting]()server.o
omniObjRef::_realNarrow(char const*)cs1SK.o
omni::releaseObjRef(omniObjRef*)      server.o
omni::proxyObjectFactory::proxyObjectFactory[not-in-charge](char
const*)cs1SK.o
virtual thunk [v:0,-20] to PortableServer::ServantBase::_downcast()server.o
vtable for omniServant              server.o
omni::nilRefLock()                  cs1SK.o
virtual thunk [v:0,-12] to PortableServer::ServantBase::~ServantBase
[in-charge deleting]()server.o
PortableServer::ServantBase::_add_ref()     server.o
omniServant::_is_a(char const*)     server.o
omniObjRef::_enableShortcut(omniServant*, bool const*)cs1SK.o
PortableServer::ServantBase::_default_POA()      server.o
ld: fatal: Symbol referencing errors. No output written to server
collect2: ld returned 1 exit status
make: *** [server] Error 1

Thanks in advance,

Sonia D.