[omniORB] static library

Wernke Zur Borg wernke.zur.borg at vega.de
Wed Mar 5 14:04:13 GMT 2008


Hi,

you better use the 4th parameter of ORB_init() to pass ORB options.

Anyway, argv[0] is reserved for the program name, so if you really want
to program it like that, you have argc=15 and have your args at
argv[1]..argv[14]. You should also append an extra zero argument at
argv[argc].

Wernke


> -----Original Message-----
> From: tristan [mailto:blunderer at gmail.com] 
> Sent: 05 March 2008 13:41
> To: Wernke Zur Borg
> Cc: omniorb-list at omniorb-support.com
> Subject: Re : [omniORB] static library
> 
> Here is the call of oORB_init. arguments are :
> 
> 
> std::string m_corbaVersion = "omniORB4";
> argc = 14;
> argv[0] = "-ORBscanGranularity";
> argv[1] = "1";
> argv[2] = "-ORBendPoint";
> argv[3] = "giop:tcp:10.10.10.123:10002";
> argv[4] = "-ORBclientCallTimeOutPeriod";
> argv[5] = "15000";
> argv[6] = "-ORBserverCallTimeOutPeriod";
> argv[7] = "15000";
> argv[8] = "-ORBtraceLevel";
> argv[9] = "40";
> argv[10] = "-ORBoutConScanPeriod";
> argv[11] = "0";
> argv[12] = "-ORBinConScanPeriod";
> argv[13] = "0";
> 
> CORBA::ORB_init( argc, argv, m_corbaVersion.c_str() );
> 
> thanks again
> 
> 
> 
> 2008/3/5, Wernke Zur Borg <wernke.zur.borg at vega.de>:
> > >
> > > Hello,
> > >
> > > I've built an application using omniORB and while I'm
> > > generating dynamic ELF everything is working fine.
> > > The problem is when I generate a static binary for i386 cpu :
> > > there is a SIGSEGV in function ORB_init.
> > >
> > > here is the output from valgrind :
> > >
> > [snip]
> >
> >
> > Please post the piece of code where you call ORB_init(), so 
> that it can
> > be seen what arguments you are passing.
> >
> > Wernke
> >
> >
> >
> >
> >
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> 



More information about the omniORB-list mailing list