Re: [orbitcpp-list] orbitcpp-0.30 is out!
Status: Beta
Brought to you by:
philipd
|
From: Phil D. <ph...@us...> - 2001-02-08 23:14:21
|
Hi Konrad,
I think I know what this is - you're running this on a 64 bit arch,
and I've only tested on 32bit intel.
The reason that the compiler barfs on yours and not on mine is because
on intel, sizeof(size_t) == sizeof(CORBA::ULong) (32 bits), but on 64
bit alpha sizeof(size_t) == 8, and sizeof(CORBA::ULong) == 4.
If you change the
void* operator new(CORBA::ULong size)
lines to
void* operator new(size_t size)
in orbitcpp_sequence, and
<< "::operator new(" IDL_CORBA_NS"::ULong size) {" << endl;
to
<< "::operator new(size_t size) {" << endl;
in compiler/types.cc, then that should fix it.
Please let me know how you get on - as I say, I haven't tested on a 64
bit platform.
I'll release an orbitcpp-0.30.1 with this fix and the
Makefile.buildvars included once we know this is working.
Thanks for the bug report,
Phil
Konrad Podloucky writes:
> Hey guys,
> Just read about the 0.30 release and wanted to try it out.
> However I get the following error when trying to compile the
> tarball vom sourceforge:
> c++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I..
> -I/usr/lib/glib/include -I/usr/include -g -O0 -Wall -c
> orbitcpp_poa.cc -fPIC -DPIC -o .libs/orbitcpp_poa.lo
> In file included from ../orb/orbitcpp_poa.hh:41,
> from orbitcpp_poa.cc:30:
> ../orb/orbitcpp_sequence.hh:199: `operator new' takes type
> `size_t' as first parameter
> ../orb/orbitcpp_sequence.hh:235: `operator new' takes type
> `size_t' as first parameter
> In file included from orbitcpp_poa.cc:30:
> ../orb/orbitcpp_poa.hh:49: `operator new' takes type `size_t' as
> first parametermake[1]: *** [orbitcpp_poa.lo] Error 1
> make[1]: Leaving directory `/home/konrad/build/orbitcpp-0.30/orb'
>
> This is debian potato on alpha.
> gcc version is 2.95.2 and orbit is 0.5.7.
>
> I looked at these files but I couldn't quite figure out what's
> wrong.
>
> Thanx for any help in advance,
> Konrad
>
>
> ________________________________________________________________
> .~. Konrad Podloucky GnuPG/PGP-key available by request
> /V\ Why Bill Gates has succeeded:
> // \\ "The obvious mathematical breakthrough would be
> /( )\ development of an easy way to factor large prime
> ^^-^^ numbers." The Road Ahead (1995), page 265
>
> _______________________________________________
> orbitcpp-list mailing list
> orb...@li...
> http://lists.sourceforge.net/lists/listinfo/orbitcpp-list
>
|