> Finally got mysql4.1.3-beta to compile with gcc 3.4.0 on mandrake 9.2
> ... the error I was getting is
> /../../../../ndb/src/kernel/vm/ArrayPool.hpp: In member function
> `void UnsafeArrayPool<T>::getPtrForce(Ptr<T>&)':
> ../../../../ndb/src/kernel/vm/ArrayPool.hpp:798: error: `size'
> undeclared (first use this function)/
> .... (about 5 sets of this error, 1 for each member function)
> well, 'size' is a protected member of UnsafeArrayPool's parent
> class. adding 'this->' in front of 'size' solved the problem. (thanks
> had to do this in several files: DLFifoList.hpp SLList.hpp
> DLList.hpp DataBuffer.hpp ArrayPool.hpp
> and then it compiled!
> Hope no one else runs into this little mess...
Sorry that you had to discover/fix this...
I had already fixed this issue,
but forgot to push it, and went on a 1 week vacation...
Anyway, the problem is fixed (the same way as you describe)
I however don't really understand the need of the "this->"
But I don't think it's a gcc bug as the c++ compiler on hpux
also produced a warning if leaving out the "this->".
(or they both got the same bug...)