[aspectc-user] Problems building SVN version of Puma

Matthias Urban matthias.urban at pure-systems.com
Tue Mar 24 00:57:12 CET 2009


Hi Kai,

> Can you reproduce the error?

Yes, it's a binding time problem. The new (4.x) gcc compilers have
corrected the binding for identifiers in templates. The current Puma
development tree does not have such compatibility problems, but
unfortunately the 1.0pre3 sources have.

OK, there are two possible solutions. Either you compile using an older
compiler (and I really recommend this) or you correct the code. I've
just tried it by myself and it's a bit ugly. Please do the following:

$ cd Puma

$ find gen-release/step2 -name "*.*" | while read f; do echo $f; perl -i
-p -e "s/remove \(Index \(\)\)/Array<T*>::remove \(Index \(\)\)/g;" $f; done

$ find include -name "*.*" | while read f; do echo $f; perl -i -p -e
"s/remove \(Index \(\)\)/Array<T*>::remove \(Index \(\)\)/g;" $f; done

And you may have to add '#include <string.h>' to some files.

It seems we have to discard the old source package now...

Regards,
Matthias



More information about the aspectc-user mailing list