GNOME Bugzilla – Bug 114031
fails with libbonobomm
Last modified: 2004-12-22 21:47:04 UTC
Building libbonobomm with orbitcpp from cvs, I get this error. It works with the orbitcpp 1.3.5 tarball. Bonobo-cpp-skels.cc: In static member function `static CORBA_TypeCode_struct* POA_Bonobo::PropertyBag::_skel_getType(void*, const char*, CORBA_Environment*)': Bonobo-cpp-skels.cc:3608: cannot convert `CORBA::TypeCode_var' to ` CORBA::Object*' for argument `1' to `CORBA_Object_type* _orbitcpp::detach_cobj_guarded(CORBA::Object*)' make[3]: *** [Bonobo-cpp-skels.lo] Error 1 make[3]: Leaving directory `/home/murrayc/cvs/gnome2/gnomemm/libbonobomm/bonobomm/generated'
Hi Murray, I found the problem. A little while ago I changed the IDLInterface code to avoid dereferencing null pointers when an exception is thrown. I hadn't realised IDLTypeCode inherits from IDLInterface. Since the functions I added weren't overloaded for TypeCodes the generated code fails to compile. I have revised the IDLInterface code and overloaded the necessary functions to work with TypeCodes as well. libbonobomm-1.3.5 now compiles for me. Can you please check the changes and if it works for you close this bug.
Bowie, you are superhuman. I will try this ASAP - probably 24 hours.