Closed GoogleCodeExporter closed 9 years ago
Thanks for the report. We'll fix this for the next release.
Out of curiousity, what OS and compiler (what version of gcc?) were you using?
Original comment by csilv...@gmail.com
on 18 Jul 2011 at 9:20
Fedora 15, gcc 4.7.0 ( I think)
Original comment by spo...@gmail.com
on 18 Jul 2011 at 9:36
All gcc versions 4.x experience this. And I agree with the reported that
including stddef.h fixes the problem. Here's the patch that I use to build for
openSUSE.
<cut>
Index: google-perftools-1.8/src/base/elf_mem_image.h
===================================================================
--- google-perftools-1.8.orig/src/base/elf_mem_image.h
+++ google-perftools-1.8/src/base/elf_mem_image.h
@@ -46,6 +46,7 @@
#define HAVE_ELF_MEM_IMAGE 1
+#include <stddef.h>
#include <stdlib.h>
#include <link.h> // for ElfW
</cut>
Original comment by craig.e....@gmail.com
on 19 Jul 2011 at 5:26
Hmm, I compiled under quite a few gcc 4.x's and didn't see the problem. I've
been told that stddef.h is provided through fewer standard headers in
relatively new gcc's, so maybe that explains it. In any case, we'll fix it for
next time.
Original comment by csilv...@gmail.com
on 19 Jul 2011 at 9:20
Issue 356 has been merged into this issue.
Original comment by csilv...@gmail.com
on 25 Jul 2011 at 9:11
Issue 357 has been merged into this issue.
Original comment by csilv...@gmail.com
on 27 Jul 2011 at 3:50
A lot of people have been seeing this, so I've released perftools 1.8.1 that
fixes just this problem.
Original comment by csilv...@gmail.com
on 27 Jul 2011 at 4:16
Original issue reported on code.google.com by
spo...@gmail.com
on 18 Jul 2011 at 4:59Attachments: