Ah, I begin to understand. There is something fishy happening there; we had to put in a hack to work around an apparent compiler bug in gcc.
Put:
#define DO_MEMORY_USAGE
in your Config.pp, then ppremake and make install everywhere (e.g. dtool, panda, direct, and/or pandatool).
This will turn off the need to use that hack.
David