<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Dear omniorb users,<DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>If you have the same kind of problem, I have the solution. If you add the C++ option flat_namespace the compilation is done.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Eddy</DIV><DIV><BR><DIV><DIV>Le 22 janv. 06 ā 15:46, Eddy Caron a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN> omniorb users,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>I'm not sure if it's an omniORB problem or not. But I'm totally in the dark. Maybe you can help me. I compile a software using omniORB on Linux and on MacOSX. Everything is done on Linux. On MacOSX with Xcode 2.1 and the last version of omniORB from the CVS the compilation is done too. The problem appear when I try tyo run it.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">When I try to launch the binary </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">aspen:~/soft/diet/lib ecaron$ ../bin/dietAgent dyld: Symbol not found: __ZTv0_n40_N17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> Referenced from: /Users/ecaron/soft/diet//lib/libAgentCommon.0.dylib</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> Expected in: flat namespace</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Trace/BPT trap</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">My LD_LIBRARY_PATH is correct. Then with nm I checked this missing symbol. </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">In fact this virtual symbol is not defined with Linux or MacOSX.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 00046cf4 T __ZN17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 00062bf4 S __ZN17_impl_MasterAgent9_dispatchER14omniCallHandle.eh</DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 0005558c S __ZTv0_n40_N17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 00062bc4 S __ZTv0_n40_N17_impl_MasterAgent9_dispatchER14omniCallHandle.eh</DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 0005559c S __ZTv0_n44_N17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV>libDIET_client.dylib:libDIET_client.0.0.0.dylib-master.o: 00062bdc S __ZTv0_n44_N17_impl_MasterAgent9_dispatchER14omniCallHandle.eh</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">and for Linux :</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV>libDIET_client.so:000000000007a680 T _ZN17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV>libDIET_client.so:000000000007bcd0 W _ZTv0_n80_N17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV>libDIET_client.so:000000000007bce0 W _ZTv0_n88_N17_impl_MasterAgent9_dispatchER14omniCallHandle</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">I don't understand why it's a "W" with Linux and "S" with MacOSX but I'm not sure that is the reason of the running problem.<BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">Remember :</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> "W" The symbol is a weak symbol that has not been specifically</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> tagged as a weak object symbol. When a weak defined symbol is</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> linked with a normal defined symbol, the normal defined symbol</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> is used with no error. When a weak undefined symbol is linked</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> and the symbol is not defined, the value of the weak symbol</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> becomes zero with no error.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> "S" The symbol is in an uninitialized data section for small objects.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">In fact the real symbol corresponding to the function is _ZN17_impl_MasterAgent9_dispatchER14omniCallHandle and is define on both OS.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">The virtual symbol is ZTv0_n80_N17_impl_MasterAgent9_dispatchER14omniCallHandle with MacOSX ("S") or __ZTv0_n44_N17_impl_MasterAgent9_dispatchER14omniCallHandle with Linux ("W").</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">But why the execution failed only on MacOSX with the "Expected in: flat namespace" error ?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; ">Do you have any idea about this problem ? I have spent a long time to find an answer on many website but without success. </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Best regards,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Eddy</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">----------------------------------------------------------------------------------------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Eddy Caron. Mcf ENS Lyon </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">ENS Lyon - LIP - Projet GRAAL </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">46 Allee d'Italie, 69364 Lyon Cedex 07, France</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">E-Mail : <A href="mailto:Eddy.Caron@ens-lyon.fr"><FONT class="Apple-style-span" color="#0021E7">Eddy.Caron@ens-lyon.fr</FONT></A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">[ Tel : 04.72.72.84.96 ][ Web page : <A href="http://graal.ens-lyon.fr/~ecaron"><FONT class="Apple-style-span" color="#0021E7">http://graal.ens-lyon.fr/~ecaron</FONT></A> ]</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">------------------------------------------------------------------------------------------------</DIV><DIV></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">omniORB-list mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">----------------------------------------------------------------------------------------------</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Eddy Caron. Mcf ENS Lyon<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">ENS Lyon - LIP - Projet GRAAL<SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">46 Allee d'Italie, 69364 Lyon Cedex 07, France</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">E-Mail : <A href="mailto:Eddy.Caron@ens-lyon.fr">Eddy.Caron@ens-lyon.fr</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">[ Tel : 04.72.72.84.96 ][ Web page : <A href="http://graal.ens-lyon.fr/~ecaron">http://graal.ens-lyon.fr/~ecaron</A> ]</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">------------------------------------------------------------------------------------------------</FONT></P> </DIV><BR></DIV></BODY></HTML>