[omniORB] linking error (duplicated-simbol) only with option (-g)
acasado at ya.com
acasado at ya.com
Thu Nov 17 09:00:08 GMT 2005
It is me again, i forgot to put the subject.
**************************************
Hello, I am looking for help.
I have download and compiled the omniORB (omniORB-4.0.5) on
SunOS 2.8 with CC (5.0) on compatibility mode (-compat=3D4)
because i have legacy code that does not compile in standar
mode.
When i try to compile any code generated by omniidl with
option (-g) to enable debbug information, I have duplicated-
symbol at linking, like :
//export/opt/SUNWspro/SC5.0/bin/CC -c -KPIC -g -w -mt -g -
DTHREAD -DSOLARIS -compat=3D4 -features=3Dbool,namespace -
DSVR4 -I/home/ipu01/IPU_ALBERTO/corba/cpp/src/../inc/ -
I/home/ipu01/local_CC//include -
o /home/ipu01/IPU_ALBERTO/corba/cpp/obj/ipuFactoryInterfaces
SK.o ipuFactoryInterfacesSK.cc
Compilation done.
Haciendo la libreria
dinamica /home/ipu01/IPU_ALBERTO/corba/cpp/src/../lib//libipuC
orba.so
/export/opt/SUNWspro/SC5.0/bin/CC -G -
L/home/ipu01/IPU_ALBERTO/corba/cpp/src/../lib/ -
L/home/ipu01/local_CC//lib -L/usr/lib/ -
o /home/ipu01/IPU_ALBERTO/corba/cpp/src/../lib//libipuCorba.so
/home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o /h
ome/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuManagerSK.o /
home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDefinitionsSK.
o /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuInterfaces
SK.o /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactory
InterfacesSK.o
ld: fatal: symbol
`PortableServer::IMPLICIT_ACTIVATION_POLICY_ID' is multiply-
defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
ld: fatal: symbol `ipu::corba::MAX_CCIF' is multiply-defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
ld: fatal: symbol `CORBA::BAD_POLICY_VALUE' is multiply-
defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
ld: fatal: symbol `ipu::corba::MAX_UPRIVATESMSBLOCKED' is
multiply-defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
ld: fatal: symbol `PortableServer::LIFESPAN_POLICY_ID' is
multiply-defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
ld: fatal: symbol `ipu::corba::MAX_GTELNUM' is multiply-defined:
(file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o
type=3DOBJT;
file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryIn
terfacesSK.o type=3DOBJT);
If i remove the option (-g) or put in only one file, all works ok .
Any one can help me? thanks
Alberto
/home/ipu01/IPU_ALBERTO/corba/cpp/src:ipu01=3D> uname -a
SunOS mamas2o 5.8 Generic_117350-14 sun4u sparc
SUNW,Sun-Fire-V240
/home/ipu01/IPU_ALBERTO/corba/cpp/src:ipu01=3D> CC -V
CC: WorkShop Compilers 5.0 02/10/08 C++ 5.0 Patch 107311-19
More information about the omniORB-list
mailing list