<P> </P>
<P>Hello, I am looking for help.</P>
<P>I have download and compiled the omniORB (omniORB-4.0.5) on SunOS 2.8 with CC (5.0) on compatibility mode (-compat=4) because i have legacy code that does not compile in standar mode.</P>
<P> When i try to compile any code generated by omniidl with option (-g) to enable debbug information, I have duplicated-symbol at linking, like :</P>
<P>//export/opt/SUNWspro/SC5.0/bin/CC -c -KPIC -g -w -mt -g -DTHREAD -DSOLARIS -compat=4 -features=bool,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/ipuFactoryInterfacesSK.o ipuFactoryInterfacesSK.cc<BR>Compilation done.<BR>Haciendo la libreria dinamica /home/ipu01/IPU_ALBERTO/corba/cpp/src/../lib//libipuCorba.so <BR>/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 /home/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/ipuInterfacesSK.o /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o </P>
<P>ld: fatal: symbol `PortableServer::IMPLICIT_ACTIVATION_POLICY_ID' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR>ld: fatal: symbol `ipu::corba::MAX_CCIF' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR>ld: fatal: symbol `CORBA::BAD_POLICY_VALUE' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR>ld: fatal: symbol `ipu::corba::MAX_UPRIVATESMSBLOCKED' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR>ld: fatal: symbol `PortableServer::LIFESPAN_POLICY_ID' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR>ld: fatal: symbol `ipu::corba::MAX_GTELNUM' is multiply-defined:<BR> (file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuDataSK.o type=OBJT; file /home/ipu01/IPU_ALBERTO/corba/cpp/src/../obj/ipuFactoryInterfacesSK.o type=OBJT);<BR></P>
<P>If i remove the option (-g) or put in only one file, all works ok .</P>
<P>Any one can help me? thanks</P>
<P>Alberto</P>
<P>/home/ipu01/IPU_ALBERTO/corba/cpp/src:ipu01=> uname -a<BR>SunOS mamas2o 5.8 Generic_117350-14 sun4u sparc SUNW,Sun-Fire-V240</P>
<P>/home/ipu01/IPU_ALBERTO/corba/cpp/src:ipu01=> CC -V<BR>CC: WorkShop Compilers 5.0 02/10/08 C++ 5.0 Patch 107311-19</P>
<P> </P>