Thanks, Mikael.
Removing the const declaration of allocRecord works.
-Joseph
================================================================
On Tue, 2004-08-10 at 11:05, Mikael Ronström wrote:
> Hi Joseph,
> Fix on its way (removing const declaration of allocRecord).
>
> Rgrds Mikael
>
> 2004-08-10 kl. 16.16 skrev Joseph E. Sacco, Ph.D.:
>
> > Using gcc-3.2.2
> > _____________________
> >
> >
> >
> > Making all in vm
> > make[5]: Entering directory
> > `/usr/local/src/MySQL/Cluster/mysql-4.1/ndb/src/kernel/vm'
> > if gcc -DHAVE_CONFIG_H -DNDEBUG -I. -I. -I../../../..
> > -I../../../../ndb/src/mgmapi -I. -I../../../../include
> > -I../../../../ndb/include -I../../../../ndb/src/kernel/vm
> > -I../../../../ndb/src/kernel/error -I../../../../ndb/src/kernel
> > -I../../../../ndb/include/kernel -I../../../../ndb/include/transporter
> > -I../../../../ndb/include/debugger -I../../../../ndb/include/mgmapi
> > -I../../../../ndb/include/mgmcommon -I../../../../ndb/include/ndbapi
> > -I../../../../ndb/include/util -I../../../../ndb/include/portlib
> > -I../../../../ndb/include/logger -O3 -DDBUG_OFF -Wimplicit
> > -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts
> > -Wformat -Wparentheses -Wsign-compare -Wwrite-strings
> > -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy
> > -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -O3
> > -fno-omit-frame-pointer -g -fno-implicit-templates -fno-exceptions
> > -fno-rtti -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL
> > -fimplicit-templates -MT SimulatedBlock.o -MD -MP -MF
> > ".deps/SimulatedBlock.Tpo" -c -o SimulatedBlock.o SimulatedBlock.cpp; \
> > then mv -f ".deps/SimulatedBlock.Tpo" ".deps/SimulatedBlock.Po"; else
> > rm
> > -f ".deps/SimulatedBlock.Tpo"; exit 1; fi
> > SimulatedBlock.cpp: In member function `void*
> > SimulatedBlock::allocRecord(const
> > char*, unsigned int, unsigned int) const':
> > SimulatedBlock.cpp:644: passing `const SimulatedBlock' as `this'
> > argument of `
> > void SimulatedBlock::refresh_watch_dog()' discards qualifiers
> > make[5]: *** [SimulatedBlock.o] Error 1
> > make[5]: Leaving directory
> > `/usr/local/src/MySQL/Cluster/mysql-4.1/ndb/src/kernel/vm'
> > make[4]: *** [all-recursive] Error 1
> > make[4]: Leaving directory
> > `/usr/local/src/MySQL/Cluster/mysql-4.1/ndb/src/kernel'
> > make[3]: *** [all-recursive] Error 1
> > make[3]: Leaving directory
> > `/usr/local/src/MySQL/Cluster/mysql-4.1/ndb/src'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory `/usr/local/src/MySQL/Cluster/mysql-4.1/ndb'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/local/src/MySQL/Cluster/mysql-4.1'
> > make: *** [all] Error 2
> >
> >
> > --
> > Joseph E. Sacco, Ph.D. <jsacco[at]earthlink[dot]net>
> >
> >
> > --
> > MySQL Cluster Mailing List
> > For list archives: http://lists.mysql.com/cluster
> > To unsubscribe:
> > http://lists.mysql.com/cluster?unsub=1
> >
> Mikael Ronström, Senior Software Architect
> MySQL AB, www.mysql.com
>
> Clustering:
> http://www.infoworld.com/article/04/04/14/HNmysqlcluster_1.html
>
> http://www.eweek.com/article2/0,1759,1567546,00.asp
--
Joseph E. Sacco, Ph.D. <jsacco[at]earthlink[dot]net>