Thank you for your answer.<br>I'll try to modify this and I'll tell you the result. <br>But Is there any reason for my application working fine when compiling as dynamic ELF and not working when compiling as static ?<br>
<br><br><div><span class="gmail_quote">2008/3/5, Wernke Zur Borg <<a href="mailto:wernke.zur.borg@vega.de">wernke.zur.borg@vega.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Hi,<br> <br> you better use the 4th parameter of ORB_init() to pass ORB options.<br> <br> Anyway, argv[0] is reserved for the program name, so if you really want<br> to program it like that, you have argc=15 and have your args at<br>
argv[1]..argv[14]. You should also append an extra zero argument at<br> argv[argc].<br> <br> Wernke<br> <br><br> <br> > -----Original Message-----<br> > From: tristan [mailto:<a href="mailto:blunderer@gmail.com">blunderer@gmail.com</a>]<br>
> Sent: 05 March 2008 13:41<br> > To: Wernke Zur Borg<br> > Cc: <a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br> > Subject: Re : [omniORB] static library<br> ><br>
> Here is the call of oORB_init. arguments are :<br> ><br> ><br> > std::string m_corbaVersion = "omniORB4";<br> > argc = 14;<br> > argv[0] = "-ORBscanGranularity";<br> > argv[1] = "1";<br>
> argv[2] = "-ORBendPoint";<br> > argv[3] = "giop:tcp:<a href="http://10.10.10.123:10002">10.10.10.123:10002</a>";<br> > argv[4] = "-ORBclientCallTimeOutPeriod";<br> > argv[5] = "15000";<br>
> argv[6] = "-ORBserverCallTimeOutPeriod";<br> > argv[7] = "15000";<br> > argv[8] = "-ORBtraceLevel";<br> > argv[9] = "40";<br> > argv[10] = "-ORBoutConScanPeriod";<br>
> argv[11] = "0";<br> > argv[12] = "-ORBinConScanPeriod";<br> > argv[13] = "0";<br> ><br> > CORBA::ORB_init( argc, argv, m_corbaVersion.c_str() );<br> ><br> > thanks again<br>
><br> ><br> ><br> > 2008/3/5, Wernke Zur Borg <<a href="mailto:wernke.zur.borg@vega.de">wernke.zur.borg@vega.de</a>>:<br> > > ><br> > > > Hello,<br> > > ><br> > > > I've built an application using omniORB and while I'm<br>
> > > generating dynamic ELF everything is working fine.<br> > > > The problem is when I generate a static binary for i386 cpu :<br> > > > there is a SIGSEGV in function ORB_init.<br> > > ><br>
> > > here is the output from valgrind :<br> > > ><br> > > [snip]<br> > ><br> > ><br> > > Please post the piece of code where you call ORB_init(), so<br> > that it can<br> > > be seen what arguments you are passing.<br>
> ><br> > > Wernke<br> > ><br> > ><br> > ><br> > ><br> > ><br> ><br> <br>> ______________________________________________________________________<br> > This email has been scanned by the MessageLabs Email Security System.<br>
> For more information please visit <a href="http://www.messagelabs.com/email">http://www.messagelabs.com/email</a><br> > ______________________________________________________________________<br> ><br> </blockquote>
</div><br>