RE: [Openh323gk-developer] openbsd 3.1 port
H.323 Gatekeeper for VoIP and videconferencing
Brought to you by:
willamowius
From: Matthew G. <mgo...@bo...> - 2002-06-12 22:41:58
|
I fixed the GetRouteTable function in pwlib for Openbsd by seeing if rtm_flags had the RTF_CLONING bit set. If it's set then it's not a clone and is therefore the parent. The next problem I'm having is with GkConfig() in Toolkit.h. When it calls InstanceOf<Toolkit>()->Config() and steps into 'template<class T> T *InstanceOf()' function in singleton.h I see Singleton<T>::m_Instance set to null when it has already been initialized. This in turn causes the assertion 'Toolkit.cxx(245) PWLib Assertion fail: Error: Call Config() before SetConfig()!'. When you call InstanceOf<Toolkit> from sections of the code other than GkConfig() it works fine. At this point I think it might be a compiler bug with openbsd 3.1 but I'm not sure. If anybody has seen this problem with GkConfig() I would certainly like to hear from them and how they dealt with it. Thanks, Matt -----Original Message----- From: Chih-Wei Huang [mailto:cw...@li...] Sent: Tuesday, June 11, 2002 8:36 PM To: Matthew Goddard Cc: ope...@li... Subject: Re: [Openh323gk-developer] openbsd 3.1 port Matthew Goddard wrote: > > I am in the process of trying to get openh323gk to work under OpenBSD > 3.1 and I'm seeing some odd behavior. PWLib and the Openh323 libraries > seem to function correctly but when I try to run opengatekeeper under > OpenBSD I'm seeing a bunch of repeat entries for the 0.0.0.0 network > in the route table and I see this error followed by a core dump: Hmmm... I think the GetRouteTable & GetInterfaceTable of pwlib may not work in OpenBSD. I suggest you ask help from openh323 mailing list, e.g., Roger Hardiman <ro...@cs...>, who ports that to FreeBSD. > 2002/06/11 07:01:04.843 0 Toolkit.cxx(245) PWLib > Assertion fail: Error: Call Config() before SetConfig()! > > I've stepped through the code and I know SetConfig() was indeed called > before Config() so it seems like it instantiates another instance of > the Toolkit class instead of the same one. Have any of the NetBSD guys > out there run across anything like this or have any insights on what's > going on? Here's the trace file and I apologize if it's a little long. For this problem, I have no idea about it. As you said, we do call SetConfig() before using Config(). -- ~ Chih-Wei Huang (cw...@li...) 'v' CLDP Project : http://www.linux.org.tw/CLDP/ (Coordinator) // \\ CLE Project : http://cle.linux.org.tw/CLE/ (Developer) /( )\ I18N Project : http://i18n.linux.org.tw/ (Translator) ^`~'^ HomePage : http://www.cwhuang.idv.tw/ |