google-perftools

Hi,has anyone got successfully compiled the google-perftools with Sun Studio 11?Any comments are welcome.Markus
[146 byte] By [quisam] at [2007-11-26 10:11:40]
# 1

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.

SFV at 2007-7-7 1:58:39 > top of Java-index,Development Tools,Solaris and Linux Development Tools...