Thread: [orbitcpp-list] my patches to ORBit
Status: Beta
Brought to you by:
philipd
From: Andreas K. <ak...@ix...> - 2000-04-28 20:24:54
|
Hi Phil & all, all the patches have been included in current cvs except the sequence demarshalling one. [of course, the one that is most important] here are the last messages i exchanged with elliot concerning the thing. ------------------------------------------------------------------------ from elliot: ------------------------------------------------------------------------ On Thu, 13 Apr 2000, Andreas Kloeckner wrote: > Elliot Lee wrote: > > > > On Thu, 13 Apr 2000, Andreas Kloeckner wrote: > > > > > ORBit doesn't set the _maximum member of a sequence struct when > > > demarshalling. The following patch against ORBit 0.5.1 fixes this. > > > > _maximum is useless, realistically, unless demarshalling, > > but it's specified and we need it for orbit-c++. I'm curious why :) > > and your patch > > doesn't set it correctly (because length can be smaller than maximum). > > look closer. maximum = length only for unbounded sequences. Hmm sorry. -- Elliot "Moron of the week" for four years running ------------------------------------------------------------------------ my reply: [sent apr 14] ------------------------------------------------------------------------ Elliot Lee wrote: > > > _maximum is useless, realistically, unless demarshalling, > > > > but it's specified and we need it for orbit-c++. > > I'm curious why :) when implementing operator= for sequences, we use _maximum for determining the size of the buffer to allocate. (_maximum needs to be identical after assignment) now orbit gives us a zero _maximum, resulting in no allocation, resulting in a CORBA::NO_MEMORY exception on our side. we could have a hacky workaround like max=length on our side, but this is crap. > > > and your patch > > > doesn't set it correctly (because length can be smaller than maximum). > > > > look closer. maximum = length only for unbounded sequences. > > Hmm sorry. would you apply the patch? please? :) cya andy ------------------------------------------------------------------------ he has not answered or committed so far, so i've come to believe he is nowhere near appreciating this patch. what can we do? later andy |
From: <kr...@pc...> - 2000-05-03 08:22:17
|
Hi all, I've downloaded orbitcpp-0.28.1, but I have a problem compiling it. After configure and make it stops here: c++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/lib/glib/include -I/usr/include -g -O0 -Wall -c -fPIC -DPIC orbitcpp_poa.cc -o .libs/orbitcpp_poa.lo In file included from ../orb/orbitcpp_object.hh:33, from ../orb/orbitcpp_orb.hh:35, from ../orb/orbitcpp_poa.hh:38, from orbitcpp_poa.cc:30: ../orb/orbitcpp_tools.hh:54: warning: #warning ORBit-C++ will not detect narrowing errors on pseudo objects. In file included from orbitcpp_poa.cc:30: ../orb/orbitcpp_poa.hh:49: template-id `operator new<>' for `::_orbitcpp::::_orbitcpp::SequenceTmplForFixedLengthElem<unsigned char,::_orbitcpp::c::PortableServer_sequence_octet>::operator new<>(ULong)' does not match any template declaration ../orb/orbitcpp_poa.hh:49: confused by earlier errors, bailing out make[1]: *** [orbitcpp_poa.lo] Error 1 make[1]: Leaving directory `/home/krusina/orbitcpp-0.28.1/orb' make: *** [all-recursive] Error 1 Any idea what's wrong and how to fix it ? thanx, Pavel -- ______ ___ __ /_____/\ /__/| /_/ | ___ \/ _ | |_/ / _ | ____// /)| _ ( \ / /) |__|/ (_)/ |__|/\__\/(_)/ |
From: Andreas K. <ak...@ix...> - 2000-05-03 19:09:02
|
kr...@pc... wrote: > > Hi all, > > I've downloaded orbitcpp-0.28.1, but I have a problem compiling it. > After configure and make it stops here: > > c++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I/usr/lib/glib/include -I/usr/include -g -O0 -Wall -c -fPIC -DPIC orbitcpp_poa.cc -o .libs/orbitcpp_poa.lo > In file included from ../orb/orbitcpp_object.hh:33, > from ../orb/orbitcpp_orb.hh:35, > from ../orb/orbitcpp_poa.hh:38, > from orbitcpp_poa.cc:30: > ../orb/orbitcpp_tools.hh:54: warning: #warning ORBit-C++ will not detect narrowing errors on pseudo objects. > In file included from orbitcpp_poa.cc:30: > ../orb/orbitcpp_poa.hh:49: template-id `operator new<>' for `::_orbitcpp::::_orbitcpp::SequenceTmplForFixedLengthElem<unsigned char,::_orbitcpp::c::PortableServer_sequence_octet>::operator new<>(ULong)' does not match any template declaration > ../orb/orbitcpp_poa.hh:49: confused by earlier errors, bailing out > make[1]: *** [orbitcpp_poa.lo] Error 1 > make[1]: Leaving directory `/home/krusina/orbitcpp-0.28.1/orb' > make: *** [all-recursive] Error 1 > > Any idea what's wrong and how to fix it ? yup, go get gcc-2.95.2 :-) hope this helps later andy |
From: Phil D. <ph...@us...> - 2000-05-05 20:29:58
|
Andreas Kloeckner wrote: > > Hi Phil & all, > > all the patches have been included in current cvs except the sequence > demarshalling one. [of course, the one that is most important] here are > the last messages i exchanged with elliot concerning the thing. > I sent a mail to the orbit-list last week explaining the patch and asking if there were any objections to me committing it to CVS. I didn't get any replies, so I've just committed it. Cheers, Phil 'about to get his butt kicked by Elliot' Dawes |