On a sgi you have to uncomment the line -lmalloc in the corresponding Gmakefiles if you compile.