I tried to compile it on Solaris. It looks obvious that nobody has ever compiled it on anything except Linux.
Bugs like declaring
static pid_t main_thread_pid_;
in heap-checker.h and (re)defining
int32 HeapLeakChecker::main_thread_pid_ = getpid();
in heap_checker.cc; or assuming in some other place that pthread_once_t is of type int is definitely not a POSIX way, contrary to what I thought this library to be.
I managed to get through the compilation up to their unittest, where it started to fail on linking (looks like some parts of the code were protected by __linux and skipped, though tests were not).
Stopped at that point.
My educated guess is that with some mild tweaking it can be compiled and run successfully by Sun Studio Express on Linux. Not on Solaris though.
regards,
__Fedor.