Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'operator delete[]' is unavailable: introduced in macOS 10.12 #870

Closed
Qix- opened this issue Feb 14, 2017 · 12 comments
Closed

error: 'operator delete[]' is unavailable: introduced in macOS 10.12 #870

Qix- opened this issue Feb 14, 2017 · 12 comments

Comments

@Qix-
Copy link

Qix- commented Feb 14, 2017

Can't seem to find anything on the web about this and I've surely never seen this error before.

When building src/tcmalloc.cc I get the following output from make:

bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src   -DNO_TCMALLOC_SAMPLES -D_THREAD_SAFE  -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -Wno-unused-result -fsized-deallocation   -g -O2 -MT src/libtcmalloc_minimal_la-tcmalloc.lo -MD -MP -MF src/.deps/libtcmalloc_minimal_la-tcmalloc.Tpo -c -o src/libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo './'`src/tcmalloc.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -D_THREAD_SAFE -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -g -O2 -MT src/libtcmalloc_minimal_la-tcmalloc.lo -MD -MP -MF src/.deps/libtcmalloc_minimal_la-tcmalloc.Tpo -c src/tcmalloc.cc  -fno-common -DPIC -o src/.libs/libtcmalloc_minimal_la-tcmalloc.o
In file included from src/tcmalloc.cc:114:
./src/base/basictypes.h:287:9: warning: '_dyld_present' is deprecated: first deprecated in macOS 10.5 [-Wdeprecated-declarations]
    if (_dyld_present()) {
        ^
/usr/include/mach-o/dyld.h:230:13: note: '_dyld_present' has been explicitly marked deprecated here
extern bool _dyld_present(void)                                                              __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_5,__...
            ^
In file included from src/tcmalloc.cc:156:
In file included from ./src/libc_override.h:76:
./src/libc_override_osx.h:166:18: error: 'operator delete[]' is unavailable: introduced in macOS 10.12
  char* buffer = new char[bufsize];
                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:155:7: note: 'operator delete[]' has been
      explicitly marked unavailable here
void  operator delete[](void* __p, std::size_t __sz) _NOEXCEPT;
      ^
src/tcmalloc.cc:484:18: error: 'operator delete[]' is unavailable: introduced in macOS 10.12
  char* buffer = new char[kBufferSize];
                 ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:155:7: note: 'operator delete[]' has been
      explicitly marked unavailable here
void  operator delete[](void* __p, std::size_t __sz) _NOEXCEPT;
      ^
src/tcmalloc.cc:506:19: error: 'operator delete[]' is unavailable: introduced in macOS 10.12
  void** result = new void*[needed_slots];
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:155:7: note: 'operator delete[]' has been
      explicitly marked unavailable here
void  operator delete[](void* __p, std::size_t __sz) _NOEXCEPT;
      ^
src/tcmalloc.cc:944:33: error: 'operator delete' is unavailable: introduced in macOS 10.12
      MallocExtension::Register(new TCMallocImplementation);
                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:141:7: note: 'operator delete' has been
      explicitly marked unavailable here
void  operator delete(void* __p, std::size_t __sz) _NOEXCEPT;
      ^
1 warning and 4 errors generated.
make: *** [src/libtcmalloc_minimal_la-tcmalloc.lo] Error 1

I'm on macOS 10.11.6 using clang (I believe g++ just gets redirected to clang++, but I've even configured with CXX=clang++ CC=clang with the same result).

@alk
Copy link
Contributor

alk commented Feb 20, 2017

Please attach config.log that is produced by configure on your system.

@Qix-
Copy link
Author

Qix- commented Feb 20, 2017

Sure thing:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gperftools configure 2.5, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = junon-C02R52QSG8WM
uname -m = x86_64
uname -r = 15.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 16.00 gigabytes
Default processor set: 376 tasks, 2124 threads, 8 processors
Load average: 2.57, Mach factor: 5.42
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /Users/junon/.nvm/v0.10.32/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /Users/junon/bin
PATH: /Users/junon/.local/bin
PATH: /src/.go/bin
PATH: /src/llvm.llvm/build/bin
PATH: /Users/junon/Library/Android/sdk/platform-tools


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2593: checking build system type
configure:2607: result: x86_64-apple-darwin15.6.0
configure:2627: checking host system type
configure:2640: result: x86_64-apple-darwin15.6.0
configure:2676: checking for a BSD-compatible install
configure:2744: result: /usr/bin/install -c
configure:2755: checking whether build environment is sane
configure:2810: result: yes
configure:2961: checking for a thread-safe mkdir -p
configure:3000: result: ./install-sh -c -d
configure:3007: checking for gawk
configure:3037: result: no
configure:3007: checking for mawk
configure:3037: result: no
configure:3007: checking for nawk
configure:3037: result: no
configure:3007: checking for awk
configure:3023: found /usr/bin/awk
configure:3034: result: awk
configure:3045: checking whether make sets $(MAKE)
configure:3067: result: yes
configure:3096: checking whether make supports nested variables
configure:3113: result: yes
configure:3243: checking whether to enable maintainer-specific portions of Makefiles
configure:3252: result: no
configure:3279: checking for git
configure:3297: found /usr/local/bin/git
configure:3310: result: /usr/local/bin/git
configure:3391: checking for style of include used by make
configure:3419: result: GNU
configure:3490: checking for gcc
configure:3506: found /usr/bin/gcc
configure:3517: result: gcc
configure:3746: checking for C compiler version
configure:3755: gcc --version >&5
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:3766: $? = 0
configure:3755: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:3766: $? = 0
configure:3755: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3766: $? = 1
configure:3755: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3766: $? = 1
configure:3786: checking whether the C compiler works
configure:3808: gcc    conftest.c  >&5
configure:3812: $? = 0
configure:3860: result: yes
configure:3863: checking for C compiler default output file name
configure:3865: result: a.out
configure:3871: checking for suffix of executables
configure:3878: gcc -o conftest    conftest.c  >&5
configure:3882: $? = 0
configure:3904: result: 
configure:3926: checking whether we are cross compiling
configure:3934: gcc -o conftest    conftest.c  >&5
configure:3938: $? = 0
configure:3945: ./conftest
configure:3949: $? = 0
configure:3964: result: no
configure:3969: checking for suffix of object files
configure:3991: gcc -c   conftest.c >&5
configure:3995: $? = 0
configure:4016: result: o
configure:4020: checking whether we are using the GNU C compiler
configure:4039: gcc -c   conftest.c >&5
configure:4039: $? = 0
configure:4048: result: yes
configure:4057: checking whether gcc accepts -g
configure:4077: gcc -c -g  conftest.c >&5
configure:4077: $? = 0
configure:4118: result: yes
configure:4135: checking for gcc option to accept ISO C89
configure:4198: gcc  -c -g -O2  conftest.c >&5
configure:4198: $? = 0
configure:4211: result: none needed
configure:4236: checking whether gcc understands -c and -o together
configure:4258: gcc -c conftest.c -o conftest2.o
configure:4261: $? = 0
configure:4258: gcc -c conftest.c -o conftest2.o
configure:4261: $? = 0
configure:4273: result: yes
configure:4292: checking dependency style of gcc
configure:4403: result: gcc3
configure:4430: gcc -c -g -O2  conftest.c >&5
conftest.c:15:8: error: use of undeclared identifier '__s390__'
return __s390__
       ^
1 error generated.
configure:4430: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return __s390__
|   ;
|   return 0;
| }
configure:4451: gcc -c -g -O2  conftest.c >&5
conftest.c:15:8: error: use of undeclared identifier '__PPC64__'
return __PPC64__
       ^
1 error generated.
configure:4451: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return __PPC64__
|   ;
|   return 0;
| }
configure:4619: checking for g++
configure:4635: found /usr/bin/g++
configure:4646: result: g++
configure:4673: checking for C++ compiler version
configure:4682: g++ --version >&5
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:4693: $? = 0
configure:4682: g++ -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:4693: $? = 0
configure:4682: g++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4693: $? = 1
configure:4682: g++ -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:4693: $? = 1
configure:4697: checking whether we are using the GNU C++ compiler
configure:4716: g++ -c   conftest.cpp >&5
configure:4716: $? = 0
configure:4725: result: yes
configure:4734: checking whether g++ accepts -g
configure:4754: g++ -c -g  conftest.cpp >&5
configure:4754: $? = 0
configure:4795: result: yes
configure:4820: checking dependency style of g++
configure:4931: result: gcc3
configure:4994: checking for gcc
configure:5021: result: gcc
configure:5250: checking for C compiler version
configure:5259: gcc --version >&5
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:5270: $? = 0
configure:5259: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:5270: $? = 0
configure:5259: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:5270: $? = 1
configure:5259: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:5270: $? = 1
configure:5274: checking whether we are using the GNU C compiler
configure:5302: result: yes
configure:5311: checking whether gcc accepts -g
configure:5372: result: yes
configure:5389: checking for gcc option to accept ISO C89
configure:5465: result: none needed
configure:5490: checking whether gcc understands -c and -o together
configure:5527: result: yes
configure:5546: checking dependency style of gcc
configure:5657: result: gcc3
configure:5677: checking how to run the C preprocessor
configure:5708: gcc -E  conftest.c
configure:5708: $? = 0
configure:5722: gcc -E  conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:5722: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5747: result: gcc -E
configure:5767: gcc -E  conftest.c
configure:5767: $? = 0
configure:5781: gcc -E  conftest.c
conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:5781: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5863: checking for objcopy
configure:5893: result: no
configure:6001: checking how to print strings
configure:6028: result: printf
configure:6049: checking for a sed that does not truncate output
configure:6113: result: /usr/bin/sed
configure:6131: checking for grep that handles long lines and -e
configure:6189: result: /usr/bin/grep
configure:6194: checking for egrep
configure:6256: result: /usr/bin/grep -E
configure:6261: checking for fgrep
configure:6323: result: /usr/bin/grep -F
configure:6358: checking for ld used by gcc
configure:6425: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:6432: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:6447: result: no
configure:6459: checking for BSD- or MS-compatible name lister (nm)
configure:6513: result: /usr/bin/nm -B
configure:6643: checking the name lister (/usr/bin/nm -B) interface
configure:6650: gcc -c -g -O2  conftest.c >&5
configure:6653: /usr/bin/nm -B "conftest.o"
configure:6656: output
00000000000001ec S _some_variable
configure:6663: result: BSD nm
configure:6666: checking whether ln -s works
configure:6670: result: yes
configure:6678: checking the maximum length of command line arguments
configure:6809: result: 196608
configure:6857: checking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format
configure:6897: result: func_convert_file_noop
configure:6904: checking how to convert x86_64-apple-darwin15.6.0 file names to toolchain format
configure:6924: result: func_convert_file_noop
configure:6931: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
configure:6938: result: -r
configure:7012: checking for objdump
configure:7042: result: no
configure:7071: checking how to recognize dependent libraries
configure:7271: result: pass_all
configure:7356: checking for dlltool
configure:7386: result: no
configure:7416: checking how to associate runtime and link libraries
configure:7443: result: printf %s\n
configure:7503: checking for ar
configure:7519: found /usr/bin/ar
configure:7530: result: ar
configure:7567: checking for archiver @FILE support
configure:7584: gcc -c -g -O2  conftest.c >&5
configure:7584: $? = 0
configure:7587: ar cru libconftest.a @conftest.lst >&5
ar: @conftest.lst: No such file or directory
configure:7590: $? = 1
configure:7610: result: no
configure:7668: checking for strip
configure:7684: found /usr/bin/strip
configure:7695: result: strip
configure:7767: checking for ranlib
configure:7783: found /usr/bin/ranlib
configure:7794: result: ranlib
configure:7896: checking command to parse /usr/bin/nm -B output from gcc object
configure:8049: gcc -c -g -O2  conftest.c >&5
configure:8052: $? = 0
configure:8056: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:8059: $? = 0
cannot find nm_test_var in conftest.nm
configure:8049: gcc -c -g -O2  conftest.c >&5
configure:8052: $? = 0
configure:8056: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:8059: $? = 0
configure:8125: gcc -o conftest -g -O2   conftest.c conftstm.o >&5
warning: (x86_64)  could not find object file symbol for symbol _main
configure:8128: $? = 0
configure:8166: result: ok
configure:8213: checking for sysroot
configure:8243: result: no
configure:8250: checking for a working dd
configure:8288: result: /bin/dd
configure:8292: checking how to truncate binary pipes
configure:8307: result: /bin/dd bs=4096 count=1
configure:8636: checking for mt
configure:8666: result: no
configure:8686: checking if : is a manifest tool
configure:8692: : '-?'
configure:8700: result: no
configure:8756: checking for dsymutil
configure:8772: found /usr/bin/dsymutil
configure:8783: result: dsymutil
configure:8848: checking for nmedit
configure:8864: found /usr/bin/nmedit
configure:8875: result: nmedit
configure:8940: checking for lipo
configure:8956: found /usr/bin/lipo
configure:8967: result: lipo
configure:9032: checking for otool
configure:9048: found /usr/bin/otool
configure:9059: result: otool
configure:9124: checking for otool64
configure:9154: result: no
configure:9199: checking for -single_module linker flag
gcc -g -O2  -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:9232: result: yes
configure:9235: checking for -exported_symbols_list linker flag
configure:9255: gcc -o conftest -g -O2   -Wl,-exported_symbols_list,conftest.sym conftest.c  >&5
configure:9255: $? = 0
configure:9265: result: yes
configure:9268: checking for -force_load linker flag
gcc -g -O2 -c -o conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
gcc -g -O2  -o conftest conftest.c -Wl,-force_load,./libconftest.a
configure:9300: result: yes
configure:9373: checking for ANSI C header files
configure:9393: gcc -c -g -O2  conftest.c >&5
configure:9393: $? = 0
configure:9466: gcc -o conftest -g -O2   conftest.c  >&5
configure:9466: $? = 0
configure:9466: ./conftest
configure:9466: $? = 0
configure:9477: result: yes
configure:9490: checking for sys/types.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for sys/stat.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for stdlib.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for string.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for memory.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for strings.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for inttypes.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for stdint.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9490: checking for unistd.h
configure:9490: gcc -c -g -O2  conftest.c >&5
configure:9490: $? = 0
configure:9490: result: yes
configure:9504: checking for dlfcn.h
configure:9504: gcc -c -g -O2  conftest.c >&5
configure:9504: $? = 0
configure:9504: result: yes
configure:9771: checking for objdir
configure:9786: result: .libs
configure:10050: checking if gcc supports -fno-rtti -fno-exceptions
configure:10068: gcc -c -g -O2  -fno-rtti -fno-exceptions conftest.c >&5
configure:10072: $? = 0
configure:10085: result: yes
configure:10443: checking for gcc option to produce PIC
configure:10450: result: -fno-common -DPIC
configure:10458: checking if gcc PIC flag -fno-common -DPIC works
configure:10476: gcc -c -g -O2  -fno-common -DPIC -DPIC conftest.c >&5
configure:10480: $? = 0
configure:10493: result: yes
configure:10522: checking if gcc static flag -static works
configure:10550: result: no
configure:10565: checking if gcc supports -c -o file.o
configure:10586: gcc -c -g -O2  -o out/conftest2.o conftest.c >&5
configure:10590: $? = 0
configure:10612: result: yes
configure:10620: checking if gcc supports -c -o file.o
configure:10667: result: yes
configure:10700: checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:11959: result: yes
configure:12199: checking dynamic linker characteristics
configure:13017: result: darwin15.6.0 dyld
configure:13139: checking how to hardcode library paths into programs
configure:13164: result: immediate
configure:13712: checking whether stripping libraries is possible
configure:13726: result: yes
configure:13752: checking if libtool supports shared libraries
configure:13754: result: yes
configure:13757: checking whether to build shared libraries
configure:13782: result: yes
configure:13785: checking whether to build static libraries
configure:13789: result: yes
configure:13812: checking how to run the C++ preprocessor
configure:13839: g++ -E  conftest.cpp
configure:13839: $? = 0
configure:13853: g++ -E  conftest.cpp
conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:13853: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:13878: result: g++ -E
configure:13898: g++ -E  conftest.cpp
configure:13898: $? = 0
configure:13912: g++ -E  conftest.cpp
conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
         ^
1 error generated.
configure:13912: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:14074: checking for ld used by g++
configure:14141: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:14148: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:14163: result: no
configure:14218: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:15291: result: yes
configure:15327: g++ -c -g -O2  conftest.cpp >&5
configure:15330: $? = 0
configure:15811: checking for g++ option to produce PIC
configure:15818: result: -fno-common -DPIC
configure:15826: checking if g++ PIC flag -fno-common -DPIC works
configure:15844: g++ -c -g -O2  -fno-common -DPIC -DPIC conftest.cpp >&5
configure:15848: $? = 0
configure:15861: result: yes
configure:15884: checking if g++ static flag -static works
configure:15912: result: no
configure:15924: checking if g++ supports -c -o file.o
configure:15945: g++ -c -g -O2  -o out/conftest2.o conftest.cpp >&5
configure:15949: $? = 0
configure:15971: result: yes
configure:15976: checking if g++ supports -c -o file.o
configure:16023: result: yes
configure:16053: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries
configure:16093: result: yes
configure:16234: checking dynamic linker characteristics
configure:16979: result: darwin15.6.0 dyld
configure:17044: checking how to hardcode library paths into programs
configure:17069: result: immediate
configure:17131: checking for inline
configure:17147: gcc -c -g -O2  conftest.c >&5
configure:17147: $? = 0
configure:17155: result: inline
configure:17174: checking for __attribute__
configure:17193: gcc -c -g -O2  conftest.c >&5
configure:17193: $? = 0
configure:17207: result: yes
configure:17212: checking for ANSI C header files
configure:17316: result: yes
configure:17326: checking for __int64
configure:17326: gcc -c -g -O2  conftest.c >&5
conftest.c:61:13: error: use of undeclared identifier '__int64'
if (sizeof (__int64))
            ^
1 error generated.
configure:17326: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof (__int64))
| 	 return 0;
|   ;
|   return 0;
| }
configure:17326: result: no
configure:17336: checking for struct mallinfo
configure:17336: gcc -c -g -O2  conftest.c >&5
conftest.c:25:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^
1 error generated.
configure:17336: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <malloc.h>
| 
| int
| main ()
| {
| if (sizeof (struct mallinfo))
| 	 return 0;
|   ;
|   return 0;
| }
configure:17336: result: no
configure:17347: checking for Elf32_Versym
configure:17347: gcc -c -g -O2  conftest.c >&5
conftest.c:25:10: fatal error: 'elf.h' file not found
#include <elf.h>
         ^
1 error generated.
configure:17347: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <elf.h>
| 
| int
| main ()
| {
| if (sizeof (Elf32_Versym))
| 	 return 0;
|   ;
|   return 0;
| }
configure:17347: result: no
configure:17360: checking for sbrk
configure:17360: gcc -o conftest -g -O2   conftest.c  >&5
configure:17360: $? = 0
configure:17360: result: yes
configure:17371: checking for geteuid
configure:17371: gcc -o conftest -g -O2   conftest.c  >&5
configure:17371: $? = 0
configure:17371: result: yes
configure:17382: checking for fork
configure:17382: gcc -o conftest -g -O2   conftest.c  >&5
configure:17382: $? = 0
configure:17382: result: yes
configure:17393: checking features.h usability
configure:17393: gcc -c -g -O2  conftest.c >&5
conftest.c:61:10: fatal error: 'features.h' file not found
#include <features.h>
         ^
1 error generated.
configure:17393: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <features.h>
configure:17393: result: no
configure:17393: checking features.h presence
configure:17393: gcc -E  conftest.c
conftest.c:28:10: fatal error: 'features.h' file not found
#include <features.h>
         ^
1 error generated.
configure:17393: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| /* end confdefs.h.  */
| #include <features.h>
configure:17393: result: no
configure:17393: checking for features.h
configure:17393: result: no
configure:17405: checking malloc.h usability
configure:17405: gcc -c -g -O2  conftest.c >&5
conftest.c:61:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^
1 error generated.
configure:17405: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <malloc.h>
configure:17405: result: no
configure:17405: checking malloc.h presence
configure:17405: gcc -E  conftest.c
conftest.c:28:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^
1 error generated.
configure:17405: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| /* end confdefs.h.  */
| #include <malloc.h>
configure:17405: result: no
configure:17405: checking for malloc.h
configure:17405: result: no
configure:17417: checking glob.h usability
configure:17417: gcc -c -g -O2  conftest.c >&5
configure:17417: $? = 0
configure:17417: result: yes
configure:17417: checking glob.h presence
configure:17417: gcc -E  conftest.c
configure:17417: $? = 0
configure:17417: result: yes
configure:17417: checking for glob.h
configure:17417: result: yes
configure:17429: checking execinfo.h usability
configure:17429: gcc -c -g -O2  conftest.c >&5
configure:17429: $? = 0
configure:17429: result: yes
configure:17429: checking execinfo.h presence
configure:17429: gcc -E  conftest.c
configure:17429: $? = 0
configure:17429: result: yes
configure:17429: checking for execinfo.h
configure:17429: result: yes
configure:17441: checking unwind.h usability
configure:17441: gcc -c -g -O2  conftest.c >&5
configure:17441: $? = 0
configure:17441: result: yes
configure:17441: checking unwind.h presence
configure:17441: gcc -E  conftest.c
configure:17441: $? = 0
configure:17441: result: yes
configure:17441: checking for unwind.h
configure:17441: result: yes
configure:17453: checking sched.h usability
configure:17453: gcc -c -g -O2  conftest.c >&5
configure:17453: $? = 0
configure:17453: result: yes
configure:17453: checking sched.h presence
configure:17453: gcc -E  conftest.c
configure:17453: $? = 0
configure:17453: result: yes
configure:17453: checking for sched.h
configure:17453: result: yes
configure:17465: checking conflict-signal.h usability
configure:17465: gcc -c -g -O2  conftest.c >&5
conftest.c:65:10: fatal error: 'conflict-signal.h' file not found
#include <conflict-signal.h>
         ^
1 error generated.
configure:17465: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <conflict-signal.h>
configure:17465: result: no
configure:17465: checking conflict-signal.h presence
configure:17465: gcc -E  conftest.c
conftest.c:32:10: fatal error: 'conflict-signal.h' file not found
#include <conflict-signal.h>
         ^
1 error generated.
configure:17465: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <conflict-signal.h>
configure:17465: result: no
configure:17465: checking for conflict-signal.h
configure:17465: result: no
configure:17477: checking sys/prctl.h usability
configure:17477: gcc -c -g -O2  conftest.c >&5
conftest.c:65:10: fatal error: 'sys/prctl.h' file not found
#include <sys/prctl.h>
         ^
1 error generated.
configure:17477: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/prctl.h>
configure:17477: result: no
configure:17477: checking sys/prctl.h presence
configure:17477: gcc -E  conftest.c
conftest.c:32:10: fatal error: 'sys/prctl.h' file not found
#include <sys/prctl.h>
         ^
1 error generated.
configure:17477: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <sys/prctl.h>
configure:17477: result: no
configure:17477: checking for sys/prctl.h
configure:17477: result: no
configure:17489: checking linux/ptrace.h usability
configure:17489: gcc -c -g -O2  conftest.c >&5
conftest.c:65:10: fatal error: 'linux/ptrace.h' file not found
#include <linux/ptrace.h>
         ^
1 error generated.
configure:17489: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <linux/ptrace.h>
configure:17489: result: no
configure:17489: checking linux/ptrace.h presence
configure:17489: gcc -E  conftest.c
conftest.c:32:10: fatal error: 'linux/ptrace.h' file not found
#include <linux/ptrace.h>
         ^
1 error generated.
configure:17489: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| /* end confdefs.h.  */
| #include <linux/ptrace.h>
configure:17489: result: no
configure:17489: checking for linux/ptrace.h
configure:17489: result: no
configure:17501: checking sys/syscall.h usability
configure:17501: gcc -c -g -O2  conftest.c >&5
configure:17501: $? = 0
configure:17501: result: yes
configure:17501: checking sys/syscall.h presence
configure:17501: gcc -E  conftest.c
configure:17501: $? = 0
configure:17501: result: yes
configure:17501: checking for sys/syscall.h
configure:17501: result: yes
configure:17513: checking sys/socket.h usability
configure:17513: gcc -c -g -O2  conftest.c >&5
configure:17513: $? = 0
configure:17513: result: yes
configure:17513: checking sys/socket.h presence
configure:17513: gcc -E  conftest.c
configure:17513: $? = 0
configure:17513: result: yes
configure:17513: checking for sys/socket.h
configure:17513: result: yes
configure:17525: checking sys/wait.h usability
configure:17525: gcc -c -g -O2  conftest.c >&5
configure:17525: $? = 0
configure:17525: result: yes
configure:17525: checking sys/wait.h presence
configure:17525: gcc -E  conftest.c
configure:17525: $? = 0
configure:17525: result: yes
configure:17525: checking for sys/wait.h
configure:17525: result: yes
configure:17537: checking poll.h usability
configure:17537: gcc -c -g -O2  conftest.c >&5
configure:17537: $? = 0
configure:17537: result: yes
configure:17537: checking poll.h presence
configure:17537: gcc -E  conftest.c
configure:17537: $? = 0
configure:17537: result: yes
configure:17537: checking for poll.h
configure:17537: result: yes
configure:17549: checking fcntl.h usability
configure:17549: gcc -c -g -O2  conftest.c >&5
configure:17549: $? = 0
configure:17549: result: yes
configure:17549: checking fcntl.h presence
configure:17549: gcc -E  conftest.c
configure:17549: $? = 0
configure:17549: result: yes
configure:17549: checking for fcntl.h
configure:17549: result: yes
configure:17561: checking grp.h usability
configure:17561: gcc -c -g -O2  conftest.c >&5
configure:17561: $? = 0
configure:17561: result: yes
configure:17561: checking grp.h presence
configure:17561: gcc -E  conftest.c
configure:17561: $? = 0
configure:17561: result: yes
configure:17561: checking for grp.h
configure:17561: result: yes
configure:17573: checking pwd.h usability
configure:17573: gcc -c -g -O2  conftest.c >&5
configure:17573: $? = 0
configure:17573: result: yes
configure:17573: checking pwd.h presence
configure:17573: gcc -E  conftest.c
configure:17573: $? = 0
configure:17573: result: yes
configure:17573: checking for pwd.h
configure:17573: result: yes
configure:17585: checking sys/resource.h usability
configure:17585: gcc -c -g -O2  conftest.c >&5
configure:17585: $? = 0
configure:17585: result: yes
configure:17585: checking sys/resource.h presence
configure:17585: gcc -E  conftest.c
configure:17585: $? = 0
configure:17585: result: yes
configure:17585: checking for sys/resource.h
configure:17585: result: yes
configure:17597: checking valgrind.h usability
configure:17597: gcc -c -g -O2  conftest.c >&5
conftest.c:73:10: fatal error: 'valgrind.h' file not found
#include <valgrind.h>
         ^
1 error generated.
configure:17597: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <valgrind.h>
configure:17597: result: no
configure:17597: checking valgrind.h presence
configure:17597: gcc -E  conftest.c
conftest.c:40:10: fatal error: 'valgrind.h' file not found
#include <valgrind.h>
         ^
1 error generated.
configure:17597: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| /* end confdefs.h.  */
| #include <valgrind.h>
configure:17597: result: no
configure:17597: checking for valgrind.h
configure:17597: result: no
configure:17609: checking sys/cdefs.h usability
configure:17609: gcc -c -g -O2  conftest.c >&5
configure:17609: $? = 0
configure:17609: result: yes
configure:17609: checking sys/cdefs.h presence
configure:17609: gcc -E  conftest.c
configure:17609: $? = 0
configure:17609: result: yes
configure:17609: checking for sys/cdefs.h
configure:17609: result: yes
configure:17621: checking for features.h
configure:17621: result: no
configure:17636: checking whether cfree is declared
configure:17636: gcc -c -g -O2  conftest.c >&5
conftest.c:43:26: fatal error: 'malloc.h' file not found
                #include <malloc.h>
                         ^
1 error generated.
configure:17636: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| /* end confdefs.h.  */
| #define _XOPEN_SOURCE 600
|                 #include <stdlib.h>
|                 #include <malloc.h>
| 
| int
| main ()
| {
| #ifndef cfree
| #ifdef __cplusplus
|   (void) cfree;
| #else
|   (void) cfree;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:17636: result: no
configure:17649: checking whether posix_memalign is declared
configure:17649: gcc -c -g -O2  conftest.c >&5
conftest.c:44:26: fatal error: 'malloc.h' file not found
                #include <malloc.h>
                         ^
1 error generated.
configure:17649: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| /* end confdefs.h.  */
| #define _XOPEN_SOURCE 600
|                 #include <stdlib.h>
|                 #include <malloc.h>
| 
| int
| main ()
| {
| #ifndef posix_memalign
| #ifdef __cplusplus
|   (void) posix_memalign;
| #else
|   (void) posix_memalign;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:17649: result: no
configure:17662: checking whether memalign is declared
configure:17662: gcc -c -g -O2  conftest.c >&5
conftest.c:45:26: fatal error: 'malloc.h' file not found
                #include <malloc.h>
                         ^
1 error generated.
configure:17662: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| /* end confdefs.h.  */
| #define _XOPEN_SOURCE 600
|                 #include <stdlib.h>
|                 #include <malloc.h>
| 
| int
| main ()
| {
| #ifndef memalign
| #ifdef __cplusplus
|   (void) memalign;
| #else
|   (void) memalign;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:17662: result: no
configure:17675: checking whether valloc is declared
configure:17675: gcc -c -g -O2  conftest.c >&5
conftest.c:46:26: fatal error: 'malloc.h' file not found
                #include <malloc.h>
                         ^
1 error generated.
configure:17675: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| /* end confdefs.h.  */
| #define _XOPEN_SOURCE 600
|                 #include <stdlib.h>
|                 #include <malloc.h>
| 
| int
| main ()
| {
| #ifndef valloc
| #ifdef __cplusplus
|   (void) valloc;
| #else
|   (void) valloc;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:17675: result: no
configure:17688: checking whether pvalloc is declared
configure:17688: gcc -c -g -O2  conftest.c >&5
conftest.c:47:26: fatal error: 'malloc.h' file not found
                #include <malloc.h>
                         ^
1 error generated.
configure:17688: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| /* end confdefs.h.  */
| #define _XOPEN_SOURCE 600
|                 #include <stdlib.h>
|                 #include <malloc.h>
| 
| int
| main ()
| {
| #ifndef pvalloc
| #ifdef __cplusplus
|   (void) pvalloc;
| #else
|   (void) pvalloc;
| #endif
| #endif
| 
|   ;
|   return 0;
| }
configure:17688: result: no
configure:17737: checking for stdlib.h
configure:17737: result: yes
configure:17737: checking for unistd.h
configure:17737: result: yes
configure:17737: checking for sys/param.h
configure:17737: gcc -c -g -O2  conftest.c >&5
configure:17737: $? = 0
configure:17737: result: yes
configure:17757: checking for getpagesize
configure:17757: gcc -o conftest -g -O2   conftest.c  >&5
configure:17757: $? = 0
configure:17757: result: yes
configure:17766: checking for working mmap
configure:17913: gcc -o conftest -g -O2   conftest.c  >&5
configure:17913: $? = 0
configure:17913: ./conftest
configure:17913: $? = 0
configure:17923: result: yes
configure:17938: checking if int32_t is the same type as intptr_t
configure:17951: gcc -c -g -O2  conftest.c >&5
conftest.c:55:46: error: 'int32_t *' (aka 'int *') and 'intptr_t *' (aka 'long *') are not pointers to compatible types
int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
                                         ~~~ ^ ~~~
1 error generated.
configure:17951: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| /* end confdefs.h.  */
| #include <stdint.h>
| int
| main ()
| {
| int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
|   ;
|   return 0;
| }
configure:17958: result: no
configure:17972: checking ucontext.h usability
configure:17972: gcc -c -g -O2  conftest.c >&5
In file included from conftest.c:84:
/usr/include/ucontext.h:43:2: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined
#error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
 ^
1 error generated.
configure:17972: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <ucontext.h>
configure:17972: result: no
configure:17972: checking ucontext.h presence
configure:17972: gcc -E  conftest.c
In file included from conftest.c:51:
/usr/include/ucontext.h:43:2: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined
#error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
 ^
1 error generated.
configure:17972: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| /* end confdefs.h.  */
| #include <ucontext.h>
configure:17972: result: no
configure:17972: checking for ucontext.h
configure:17972: result: no
configure:17992: checking sys/ucontext.h usability
configure:17992: gcc -c -g -O2  conftest.c >&5
configure:17992: $? = 0
configure:17992: result: yes
configure:17992: checking sys/ucontext.h presence
configure:17992: gcc -E  conftest.c
configure:17992: $? = 0
configure:17992: result: yes
configure:17992: checking for sys/ucontext.h
configure:17992: result: yes
configure:18005: checking cygwin/signal.h usability
configure:18005: gcc -c -g -O2  conftest.c >&5
conftest.c:85:10: fatal error: 'cygwin/signal.h' file not found
#include <cygwin/signal.h>
         ^
1 error generated.
configure:18005: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <cygwin/signal.h>
configure:18005: result: no
configure:18005: checking cygwin/signal.h presence
configure:18005: gcc -E  conftest.c
conftest.c:52:10: fatal error: 'cygwin/signal.h' file not found
#include <cygwin/signal.h>
         ^
1 error generated.
configure:18005: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #include <cygwin/signal.h>
configure:18005: result: no
configure:18005: checking for cygwin/signal.h
configure:18005: result: no
configure:18015: checking how to access the program counter from a struct ucontext
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.gregs[REG_PC] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.gregs[REG_PC] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:42: error: use of undeclared identifier 'REG_PC'
ucontext_t u; return u.uc_mcontext.gregs[REG_PC] == 0;
                                         ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.gregs[REG_PC] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.gregs[REG_EIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.gregs[REG_EIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:42: error: use of undeclared identifier 'REG_EIP'
ucontext_t u; return u.uc_mcontext.gregs[REG_EIP] == 0;
                                         ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.gregs[REG_EIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.gregs[REG_RIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.gregs[REG_RIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:42: error: use of undeclared identifier 'REG_RIP'
ucontext_t u; return u.uc_mcontext.gregs[REG_RIP] == 0;
                                         ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.gregs[REG_RIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.sc_ip == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'sc_ip' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.sc_ip == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.sc_ip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.pc == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'pc' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.pc == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.pc == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.uc_regs->gregs[PT_NIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'uc_regs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.uc_regs->gregs[PT_NIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:51: error: use of undeclared identifier 'PT_NIP'
ucontext_t u; return u.uc_mcontext.uc_regs->gregs[PT_NIP] == 0;
                                                  ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.uc_regs->gregs[PT_NIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.psw.addr == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'psw' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.psw.addr == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.psw.addr == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.gregs[R15] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.gregs[R15] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:42: error: use of undeclared identifier 'R15'
ucontext_t u; return u.uc_mcontext.gregs[R15] == 0;
                                         ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.gregs[R15] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.arm_pc == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'arm_pc' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.arm_pc == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.arm_pc == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.gp_regs[PT_NIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'gp_regs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.gp_regs[PT_NIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:44: error: use of undeclared identifier 'PT_NIP'
ucontext_t u; return u.uc_mcontext.gp_regs[PT_NIP] == 0;
                                           ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.gp_regs[PT_NIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.mc_eip == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'mc_eip' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.mc_eip == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.mc_eip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.mc_rip == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named 'mc_rip' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.mc_rip == 0;
                     ~~~~~~~~~~~~~ ^
2 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.mc_rip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.__gregs[_REG_EIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named '__gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.__gregs[_REG_EIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:44: error: use of undeclared identifier '_REG_EIP'
ucontext_t u; return u.uc_mcontext.__gregs[_REG_EIP] == 0;
                                           ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.__gregs[_REG_EIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:35: error: member reference type 'struct __darwin_mcontext64 *' is a pointer; did you mean to use '->'?
ucontext_t u; return u.uc_mcontext.__gregs[_REG_RIP] == 0;
                     ~~~~~~~~~~~~~^
                                  ->
conftest.c:57:36: error: no member named '__gregs' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext.__gregs[_REG_RIP] == 0;
                     ~~~~~~~~~~~~~ ^
conftest.c:57:44: error: use of undeclared identifier '_REG_RIP'
ucontext_t u; return u.uc_mcontext.__gregs[_REG_RIP] == 0;
                                           ^
3 errors generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext.__gregs[_REG_RIP] == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:37: error: no member named 'ss' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext->ss.eip == 0;
                     ~~~~~~~~~~~~~  ^
1 error generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext->ss.eip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:42: error: no member named '__eip' in 'struct __darwin_x86_thread_state64'; did you mean '__rip'?
ucontext_t u; return u.uc_mcontext->__ss.__eip == 0;
                                         ^~~~~
                                         __rip
/usr/include/mach/i386/_structs.h:472:13: note: '__rip' declared here
        __uint64_t      __rip;
                        ^
1 error generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext->__ss.__eip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
conftest.c:57:37: error: no member named 'ss' in 'struct __darwin_mcontext64'
ucontext_t u; return u.uc_mcontext->ss.rip == 0;
                     ~~~~~~~~~~~~~  ^
1 error generated.
configure:18078: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| /* end confdefs.h.  */
| #define _GNU_SOURCE 1
|                          #include <sys/ucontext.h>
| int
| main ()
| {
| ucontext_t u; return u.uc_mcontext->ss.rip == 0;
|   ;
|   return 0;
| }
configure:18078: gcc -c -g -O2  conftest.c >&5
configure:18078: $? = 0
configure:18084: result: uc_mcontext->__ss.__rip
configure:18190: checking libunwind.h usability
configure:18190: gcc -c -g -O2  conftest.c >&5
configure:18190: $? = 0
configure:18190: result: yes
configure:18190: checking libunwind.h presence
configure:18190: gcc -E  conftest.c
configure:18190: $? = 0
configure:18190: result: yes
configure:18190: checking for libunwind.h
configure:18190: result: yes
configure:18200: checking for backtrace in -lunwind
configure:18225: gcc -o conftest -g -O2   conftest.c -lunwind   >&5
ld: library not found for -lunwind
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:18225: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char backtrace ();
| int
| main ()
| {
| return backtrace ();
|   ;
|   return 0;
| }
configure:18234: result: no
configure:18239: checking for backtrace in -lexecinfo
configure:18264: gcc -o conftest -g -O2   conftest.c -lexecinfo   >&5
ld: library not found for -lexecinfo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:18264: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char backtrace ();
| int
| main ()
| {
| return backtrace ();
|   ;
|   return 0;
| }
configure:18273: result: no
configure:18348: checking for x86 without frame pointers
configure:18363: gcc -c -g -O2  conftest.c >&5
configure:18363: $? = 0
configure:18384: gcc -c -g -O2 -S -O2 -o fp.s  conftest.c >&5
configure:18384: $? = 0
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| /* end confdefs.h.  */
| int f(int x) {return x;}
| int
| main ()
| {
| return f(0);
|   ;
|   return 0;
| }
configure:18404: result: no
configure:18421: gcc -c -g -O2  conftest.c >&5
conftest.c:58:8: error: use of undeclared identifier '__i386__'
return __i386__ == 1 ? 0 : 1
       ^
1 error generated.
configure:18421: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return __i386__ == 1 ? 0 : 1
|   ;
|   return 0;
| }
configure:18440: checking if the compiler supports -Wno-unused-result
configure:18467: gcc -c -g -O2 -Wno-error -Wunused-result  conftest.c >&5
conftest.c:58:9: warning: division by zero is undefined [-Wdivision-by-zero]
return 1/0
        ^~
1 warning generated.
configure:18467: $? = 0
configure:18475: result: yes
configure:18518: Will not build sized deallocation operators
configure:18523: checking if C++ compiler supports -fsized-deallocation
configure:18547: g++ -c -g -O2 -fsized-deallocation  conftest.cpp >&5
configure:18547: $? = 0
configure:18561: result: yes
configure:18573: checking if target has _Unwind_Backtrace
configure:18595: g++ -c -g -O2  conftest.cpp >&5
conftest.cpp:58:1: warning: expression result unused [-Wunused-value]
&_Unwind_Backtrace
^~~~~~~~~~~~~~~~~~
1 warning generated.
configure:18595: $? = 0
configure:18608: result: yes
configure:18634: gcc -c -g -O2  conftest.c >&5
conftest.c:59:8: error: use of undeclared identifier '__arm__'
return __arm__
       ^
1 error generated.
configure:18634: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return __arm__
|   ;
|   return 0;
| }
configure:18658: checking printf format code for printing a size_t and ssize_t
configure:18674: gcc -c -g -O2  conftest.c >&5
conftest.c:59:49: error: 'unsigned int *' and 'size_t *' (aka 'unsigned long *') are not pointers to compatible types
unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
                                            ~~~ ^ ~~~
1 error generated.
configure:18674: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| /* end confdefs.h.  */
| #include <stddef.h>
| int
| main ()
| {
| unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
|   ;
|   return 0;
| }
configure:18689: gcc -c -g -O2  conftest.c >&5
configure:18689: $? = 0
configure:18704: gcc -c -g -O2  conftest.c >&5
conftest.c:59:55: error: 'unsigned long long *' and 'size_t *' (aka 'unsigned long *') are not pointers to compatible types
unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
                                                  ~~~ ^ ~~~
1 error generated.
configure:18704: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| /* end confdefs.h.  */
| #include <stddef.h>
| int
| main ()
| {
| unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
|   ;
|   return 0;
| }
configure:18710: result: l
configure:18737: checking for __builtin_stack_pointer()
configure:18750: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:62:12: error: use of unknown builtin '__builtin_stack_pointer' [-Wimplicit-function-declaration]
void *sp = __builtin_stack_pointer()
           ^
conftest.c:62:7: warning: incompatible integer to pointer conversion initializing 'void *' with an expression of type 'int' [-Wint-conversion]
void *sp = __builtin_stack_pointer()
      ^    ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
configure:18750: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| void *sp = __builtin_stack_pointer()
|   ;
|   return 0;
| }
configure:18757: result: no
configure:18764: checking for __builtin_expect()
configure:18777: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:62:25: warning: comparison of function 'main' not equal to a null pointer is always true [-Wtautological-pointer-compare]
return __builtin_expect(main != 0, 1)
                        ^~~~    ~
conftest.c:62:25: note: prefix with the address-of operator to silence this warning
return __builtin_expect(main != 0, 1)
                        ^
                        &
conftest.c:62:25: note: suffix with parentheses to turn this into a function call
return __builtin_expect(main != 0, 1)
                        ^
                            ()
1 warning generated.
configure:18777: $? = 0
configure:18781: result: yes
configure:18791: checking for __environ
configure:18804: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:63:14: error: use of undeclared identifier '__environ'
char **env = __environ
             ^
1 error generated.
configure:18804: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| /* end confdefs.h.  */
| #include <unistd.h>
| int
| main ()
| {
| char **env = __environ
|   ;
|   return 0;
| }
configure:18811: result: no
configure:18828: checking for __thread
configure:18848: gcc -o conftest -g -O2   conftest.c  >&5
conftest.c:64:2: error: OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
#error OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
 ^
1 error generated.
configure:18848: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| /* end confdefs.h.  */
| #if defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
| #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
| #elif defined(__MINGW32__)
| #error mingw doesnt really support tls
| #elif defined(__APPLE__)
| #error OSX __thread support is known to call malloc which makes it unsafe to use from malloc replacement
| #endif
| 
| int
| main ()
| {
| static __thread int p = 0
|   ;
|   return 0;
| }
configure:18855: result: no
configure:18865: checking if nanosleep requires any libraries
configure:18888: gcc -o conftest -g -O2   conftest.c  >&5
configure:18888: $? = 0
configure:18921: result: no
configure:18944: checking whether uname is declared
configure:18944: gcc -c -g -O2  conftest.c >&5
configure:18944: $? = 0
configure:18944: result: yes
configure:19123: checking for the pthreads library -lpthreads
configure:19156: gcc -o conftest -g -O2    conftest.c -lpthreads  >&5
ld: library not found for -lpthreads
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19156: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
|                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
|                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
|   ;
|   return 0;
| }
configure:19165: result: no
configure:19068: checking whether pthreads work without any flags
configure:19156: gcc -o conftest -g -O2    conftest.c   >&5
configure:19156: $? = 0
configure:19165: result: yes
configure:19184: checking for joinable pthread attribute
configure:19199: gcc -o conftest -g -O2    conftest.c   >&5
configure:19199: $? = 0
configure:19205: result: PTHREAD_CREATE_JOINABLE
configure:19215: checking if more special flags are required for pthreads
configure:19222: result: -D_THREAD_SAFE
configure:19311: checking whether to check for GCC pthread/shared inconsistencies
configure:19324: gcc -o conftest -shared -fPIC -Wl,-z,defs -g -O2 -D_THREAD_SAFE    conftest.c   >&5
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19324: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:19333: result: no
configure:19452: checking whether what we have so far is sufficient with -nostdlib
configure:19470: gcc -o conftest -nostdlib -shared -fPIC -Wl,-z,defs -g -O2 -D_THREAD_SAFE    conftest.c   -lc >&5
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19470: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| 	       pthread_attr_init(0); pthread_cleanup_push(0, 0);
| 	       pthread_create(0,0,0,0); pthread_cleanup_pop(0);
|   ;
|   return 0;
| }
configure:19482: result: no
configure:19487: checking whether -lpthread saves the day
configure:19503: gcc -o conftest -nostdlib -shared -fPIC -Wl,-z,defs -g -O2 -D_THREAD_SAFE    conftest.c -lpthread   -lc >&5
ld: unknown option: -z
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19503: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th; pthread_join(th, 0);
| 	       pthread_attr_init(0); pthread_cleanup_push(0, 0);
| 	       pthread_create(0,0,0,0); pthread_cleanup_pop(0);
|   ;
|   return 0;
| }
configure:19516: result: no
configure:19518: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib
configure:19559: checking whether pthread symbols are available in C++ without including pthread.h
configure:19578: g++ -o conftest -g -O2   conftest.cpp  >&5
conftest.cpp:69:7: error: unknown type name 'pthread_t'
      pthread_t th; pthread_join(th, 0);
      ^
1 error generated.
configure:19578: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
| 
|       #include <string>
|       #include <vector>
| 
| int
| main ()
| {
| 
|       pthread_t th; pthread_join(th, 0);
| 
|   ;
|   return 0;
| }
configure:19590: result: no
configure:19609: checking whether the compiler implements namespaces
configure:19633: g++ -c -g -O2  conftest.cpp >&5
configure:19633: $? = 0
configure:19646: result: yes
configure:19653: checking what namespace STL code is in
configure:19677: g++ -c -g -O2  conftest.cpp >&5
conftest.cpp:66:1: error: no template named 'vector'; did you mean 'std::vector'?
vector<int> t; return 0;
^~~~~~
std::vector
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:457:29: note: 'std::vector' declared here
class _LIBCPP_TYPE_VIS_ONLY vector
                            ^
1 error generated.
configure:19677: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| #define HAVE_PTHREAD 1
| #define HAVE_NAMESPACES 1
| /* end confdefs.h.  */
| #include <vector>
| int
| main ()
| {
| vector<int> t; return 0;
|   ;
|   return 0;
| }
configure:19692: g++ -c -g -O2  conftest.cpp >&5
configure:19692: $? = 0
configure:19703: result: std
configure:19718: checking for program_invocation_name
configure:19734: gcc -o conftest -g -O2   conftest.c  >&5
Undefined symbols for architecture x86_64:
  "_program_invocation_name", referenced from:
      _main in conftest-d795ef.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:19734: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| #define HAVE_PTHREAD 1
| #define HAVE_NAMESPACES 1
| #define STL_NAMESPACE std
| /* end confdefs.h.  */
| extern char* program_invocation_name;
| int
| main ()
| {
| return *program_invocation_name;
|   ;
|   return 0;
| }
configure:19743: result: no
configure:19908: checking for Linux SIGEV_THREAD_ID
configure:19922: gcc -c -g -O2  conftest.c >&5
conftest.c:70:8: error: use of undeclared identifier 'SIGEV_THREAD_ID'
return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
       ^
conftest.c:70:27: error: use of undeclared identifier 'CLOCK_THREAD_CPUTIME_ID'
return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
                          ^
conftest.c:70:54: error: use of undeclared identifier '__linux'
return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
                                                     ^
3 errors generated.
configure:19922: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gperftools"
| #define PACKAGE_TARNAME "gperftools"
| #define PACKAGE_VERSION "2.5"
| #define PACKAGE_STRING "gperftools 2.5"
| #define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "gperftools"
| #define VERSION "2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE___ATTRIBUTE__ 1
| #define STDC_HEADERS 1
| #define HAVE_SBRK 1
| #define HAVE_GETEUID 1
| #define HAVE_FORK 1
| #define HAVE_GLOB_H 1
| #define HAVE_EXECINFO_H 1
| #define HAVE_UNWIND_H 1
| #define HAVE_SCHED_H 1
| #define HAVE_SYS_SYSCALL_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_POLL_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_PWD_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_SYS_CDEFS_H 1
| #define HAVE_DECL_CFREE 0
| #define HAVE_DECL_POSIX_MEMALIGN 0
| #define HAVE_DECL_MEMALIGN 0
| #define HAVE_DECL_VALLOC 0
| #define HAVE_DECL_PVALLOC 0
| #define HAVE_STDLIB_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_MMAP 1
| #define HAVE_SYS_UCONTEXT_H 1
| #define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
| #define HAVE_LIBUNWIND_H 1
| #define HAVE_UNWIND_BACKTRACE 1
| #define PRIuS "lu"
| #define PRIxS "lx"
| #define PRIdS "ld"
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_DECL_UNAME 1
| #define HAVE_PTHREAD 1
| #define HAVE_NAMESPACES 1
| #define STL_NAMESPACE std
| #define INSTALL_PREFIX "/usr/local"
| #define PERFTOOLS_DLL_DECL /**/
| /* end confdefs.h.  */
| #include <signal.h>
|                            #include <time.h>
| int
| main ()
| {
| return SIGEV_THREAD_ID || CLOCK_THREAD_CPUTIME_ID || __linux;
|   ;
|   return 0;
| }
configure:19930: result: no
configure:20047: checking that generated files are newer than configure
configure:20053: result: done
configure:20160: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by gperftools config.status 2.5, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on junon-C02R52QSG8WM

config.status:1272: creating Makefile
config.status:1272: creating src/gperftools/tcmalloc.h
config.status:1272: creating src/windows/gperftools/tcmalloc.h
config.status:1272: creating src/config.h
config.status:1501: executing depfiles commands
config.status:1501: executing libtool commands

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv___attribute__=yes
ac_cv_build=x86_64-apple-darwin15.6.0
ac_cv_c_compiler_gnu=yes
ac_cv_c_inline=inline
ac_cv_cxx_compiler_gnu=yes
ac_cv_cxx_namespaces=yes
ac_cv_cxx_stl_namespace=std
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_formatting_prius_prefix=l
ac_cv_func_fork=yes
ac_cv_func_geteuid=yes
ac_cv_func_getpagesize=yes
ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_sbrk=yes
ac_cv_have_decl_cfree=no
ac_cv_have_decl_memalign=no
ac_cv_have_decl_posix_memalign=no
ac_cv_have_decl_pvalloc=no
ac_cv_have_decl_uname=yes
ac_cv_have_decl_valloc=no
ac_cv_have_program_invocation_name=no
ac_cv_have_struct_mallinfo=0
ac_cv_header_conflict_signal_h=no
ac_cv_header_cygwin_signal_h=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_execinfo_h=yes
ac_cv_header_fcntl_h=yes
ac_cv_header_features_h=no
ac_cv_header_glob_h=yes
ac_cv_header_grp_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_libunwind_h=yes
ac_cv_header_linux_ptrace_h=no
ac_cv_header_malloc_h=no
ac_cv_header_memory_h=yes
ac_cv_header_poll_h=yes
ac_cv_header_pwd_h=yes
ac_cv_header_sched_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_cdefs_h=yes
ac_cv_header_sys_param_h=yes
ac_cv_header_sys_prctl_h=no
ac_cv_header_sys_resource_h=yes
ac_cv_header_sys_socket_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_syscall_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_sys_ucontext_h=yes
ac_cv_header_sys_wait_h=yes
ac_cv_header_ucontext_h=no
ac_cv_header_unistd_h=yes
ac_cv_header_unwind_h=yes
ac_cv_header_valgrind_h=no
ac_cv_host=x86_64-apple-darwin15.6.0
ac_cv_install_prefix=/usr/local
ac_cv_lib_execinfo_backtrace=no
ac_cv_lib_unwind_backtrace=no
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_FGREP='/usr/bin/grep -F'
ac_cv_path_GIT=/usr/local/bin/git
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_lt_DD=/bin/dd
ac_cv_prius_defined=1
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_DSYMUTIL=dsymutil
ac_cv_prog_ac_ct_LIPO=lipo
ac_cv_prog_ac_ct_NMEDIT=nmedit
ac_cv_prog_ac_ct_OTOOL=otool
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_prog_make_make_set=yes
ac_cv_type_Elf32_Versym=no
ac_cv_type___int64=no
ac_cv_type_struct_mallinfo=no
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3
am_cv_make_support_nested_variables=yes
am_cv_prog_cc_c_o=yes
gpt_cv_objcopy_weaken=no
lt_cv_apple_cc_single_mod=yes
lt_cv_ar_at_file=no
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file=
lt_cv_ld_exported_symbols_list=yes
lt_cv_ld_force_load=yes
lt_cv_ld_reload_flag=-r
lt_cv_nm_interface='BSD nm'
lt_cv_objdir=.libs
lt_cv_path_LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
lt_cv_path_LDCXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_mainfest_tool=no
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=yes
lt_cv_prog_compiler_pic='-fno-common -DPIC'
lt_cv_prog_compiler_pic_CXX='-fno-common -DPIC'
lt_cv_prog_compiler_pic_works=yes
lt_cv_prog_compiler_pic_works_CXX=yes
lt_cv_prog_compiler_rtti_exceptions=yes
lt_cv_prog_compiler_static_works=no
lt_cv_prog_compiler_static_works_CXX=no
lt_cv_prog_gnu_ld=no
lt_cv_prog_gnu_ldcxx=no
lt_cv_sharedlib_from_linklib_cmd='printf %s\n'
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[	 ]\([BCDEGRST][BCDEGRST]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p'\'' | sed '\''/ __gnu_lto/d'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/  {"\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \(.*\) .*$/  {"\1", (void *) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(lib.*\)$/  {"\1", (void *) \&\1},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/  {"lib\1", (void *) \&\1},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST]* .* \(.*\)$/extern char \1;/p'\'''
lt_cv_sys_global_symbol_to_import=
lt_cv_sys_max_cmd_len=196608
lt_cv_to_host_file_cmd=func_convert_file_noop
lt_cv_to_tool_file_cmd=func_convert_file_noop
lt_cv_truncate_bin='/bin/dd bs=4096 count=1'
perftools_cv_have_unwind_backtrace=yes
perftools_cv_sized_deallocation_result=yes
perftools_cv_w_no_unused_result=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##





		$(CHANGELOG_GIT_FLAGS) $(CHANGELOG_GIT_RANGE) \
		--git-dir=$(CHANGELOG_GIT_DIR) --work-tree=$(top_srcdir) log \
		| fmt --split-only >.ChangeLog.tmp; \
	$(AM_V_GEN)if $(GIT) \
	else rm -f .ChangeLog.tmp; exit 1; fi
	then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
#
#    (exclusive). (Default: include all commits)
#    ChangeLog. (Default: various)
#  - CHANGELOG_GIT_DIR: .git directory to use. (Default: $(top_srcdir)/.git)
#  - CHANGELOG_GIT_FLAGS: General flags to pass to git-log when generating the
#  - CHANGELOG_START: git commit ID or tag name to output changelogs from
# Generate ChangeLog
# Generate a ChangeLog in $(top_distdir)
# Optional:
# git-specific
'
.PHONY: dist-ChangeLog
ACLOCAL='${SHELL} /src/gperftools.gperftools/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR='ar'
AUTOCONF='${SHELL} /src/gperftools.gperftools/missing autoconf'
AUTOHEADER='${SHELL} /src/gperftools.gperftools/missing autoheader'
AUTOMAKE='${SHELL} /src/gperftools.gperftools/missing automake-1.15'
AWK='awk'
BUILD_EMERGENCY_MALLOC_FALSE=''
BUILD_EMERGENCY_MALLOC_TRUE='#'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CHANGELOG_GIT_DIR ?= $(top_srcdir)/.git
CHANGELOG_GIT_FLAGS ?= --stat -M -C --name-status --no-color
CHANGELOG_GIT_RANGE =
CHANGELOG_GIT_RANGE = $(CHANGELOG_START)..
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DLLTOOL='false'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
ENABLE_FRAME_POINTERS_FALSE=''
ENABLE_FRAME_POINTERS_TRUE='#'
ENABLE_STATIC_FALSE='#'
ENABLE_STATIC_TRUE=''
EXEEXT=''
FGREP='/usr/bin/grep -F'
GCC_FALSE='#'
GCC_TRUE=''
GENERATE_CHANGELOG_RULES='
GIT='/usr/local/bin/git'
GREP='/usr/bin/grep'
HAVE_OBJCOPY_WEAKEN_FALSE=''
HAVE_OBJCOPY_WEAKEN_TRUE='#'
HAVE_PTHREAD_DESPITE_ASKING_FOR_FALSE=''
HAVE_PTHREAD_DESPITE_ASKING_FOR_TRUE='#'
HAVE_SIZED_DEALLOCATION_FALSE='#'
HAVE_SIZED_DEALLOCATION_TRUE=''
HAVE_W_NO_UNUSED_RESULT_FALSE='#'
HAVE_W_NO_UNUSED_RESULT_TRUE=''
I386_FALSE=''
I386_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBSTDCXX_LA_LINKER_FLAG=''
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /src/gperftools.gperftools/missing makeinfo'
MANIFEST_TOOL=':'
MINGW_FALSE=''
MINGW_TRUE='#'
MKDIR_P='./install-sh -c -d'
NANOSLEEP_LIBS=''
NM='/usr/bin/nm -B'
NMEDIT='nmedit'
OBJCOPY=''
OBJDUMP='false'
OBJEXT='o'
OSX_FALSE='#'
OSX_TRUE=''
OTOOL64=':'
OTOOL='otool'
PACKAGE='gperftools'
PACKAGE_BUGREPORT='gperftools@googlegroups.com'
PACKAGE_NAME='gperftools'
PACKAGE_STRING='gperftools 2.5'
PACKAGE_TARNAME='gperftools'
PACKAGE_URL=''
PACKAGE_VERSION='2.5'
PATH_SEPARATOR=':'
PROFILER_SO_VERSION='4:8:4'
PTHREAD_CC='gcc'
PTHREAD_CFLAGS='-D_THREAD_SAFE '
PTHREAD_LIBS=''
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
TCMALLOC_SO_VERSION='7:0:3'
TC_VERSION_MAJOR='2'
TC_VERSION_MINOR='5'
TC_VERSION_PATCH=''
UNWIND_LIBS=''
VERSION='2.5'
WITH_CPU_PROFILER_FALSE='#'
WITH_CPU_PROFILER_TRUE=''
WITH_DEBUGALLOC_FALSE='#'
WITH_DEBUGALLOC_TRUE=''
WITH_HEAP_CHECKER_FALSE=''
WITH_HEAP_CHECKER_TRUE='#'
WITH_HEAP_PROFILER_FALSE='#'
WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
WITH_HEAP_PROFILER_OR_CHECKER_TRUE=''
WITH_HEAP_PROFILER_TRUE=''
WITH_STACK_TRACE_FALSE='#'
WITH_STACK_TRACE_TRUE=''
X86_64_AND_NO_FP_BY_DEFAULT_FALSE=''
X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_DUMPBIN=''
ac_cv_have_struct_mallinfo='0'
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin15.6.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin15.6.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dist-ChangeLog:
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
else
endif
exec_prefix='${prefix}'
host='x86_64-apple-darwin15.6.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin15.6.0'
host_vendor='apple'
htmldir='${docdir}'
ifeq ($(CHANGELOG_START),)
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /src/gperftools.gperftools/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "gperftools"
#define PACKAGE_TARNAME "gperftools"
#define PACKAGE_VERSION "2.5"
#define PACKAGE_STRING "gperftools 2.5"
#define PACKAGE_BUGREPORT "gperftools@googlegroups.com"
#define PACKAGE_URL ""
#define PACKAGE "gperftools"
#define VERSION "2.5"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define HAVE___ATTRIBUTE__ 1
#define STDC_HEADERS 1
#define HAVE_SBRK 1
#define HAVE_GETEUID 1
#define HAVE_FORK 1
#define HAVE_GLOB_H 1
#define HAVE_EXECINFO_H 1
#define HAVE_UNWIND_H 1
#define HAVE_SCHED_H 1
#define HAVE_SYS_SYSCALL_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_POLL_H 1
#define HAVE_FCNTL_H 1
#define HAVE_GRP_H 1
#define HAVE_PWD_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_CDEFS_H 1
#define HAVE_DECL_CFREE 0
#define HAVE_DECL_POSIX_MEMALIGN 0
#define HAVE_DECL_MEMALIGN 0
#define HAVE_DECL_VALLOC 0
#define HAVE_DECL_PVALLOC 0
#define HAVE_STDLIB_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_GETPAGESIZE 1
#define HAVE_MMAP 1
#define HAVE_SYS_UCONTEXT_H 1
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#define HAVE_LIBUNWIND_H 1
#define HAVE_UNWIND_BACKTRACE 1
#define PRIuS "lu"
#define PRIxS "lx"
#define PRIdS "ld"
#define HAVE_BUILTIN_EXPECT 1
#define HAVE_DECL_UNAME 1
#define HAVE_PTHREAD 1
#define HAVE_NAMESPACES 1
#define STL_NAMESPACE std
#define INSTALL_PREFIX "/usr/local"
#define PERFTOOLS_DLL_DECL /**/

configure: exit 0

@alk
Copy link
Contributor

alk commented Feb 20, 2017

Thanks. Can you try building with:

make CXXFLAGS='-O2 -fno-sized-deallocation'

and reporting if it fixes the issue ?

@Qix-
Copy link
Author

Qix- commented Feb 20, 2017

Compilation succeeded, but linking failed:

libtool: link: rm -fr .libs/libtcmalloc.lax
libtool: link: ( cd ".libs" && rm -f "libtcmalloc.la" && ln -s "../libtcmalloc.la" "libtcmalloc.la" )
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -g -D_THREAD_SAFE  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -Wno-unused-result -fsized-deallocation   -fno-builtin -O2 -fno-sized-deallocation -g -D_THREAD_SAFE    -o heap-profiler_debug_unittest src/tests/heap_profiler_debug_unittest-heap-profiler_unittest.o  libtcmalloc_debug.la
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/tcmalloc_and_profiler_unittest src/tests/tcmalloc_and_profiler_unittest-tcmalloc_unittest.o src/tests/tcmalloc_and_profiler_unittest-testutil.o -Wl,-bind_at_load  ./.libs/libtcmalloc_and_profiler.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/debugallocation_test src/tests/debugallocation_test-debugallocation_test.o -Wl,-bind_at_load  ./.libs/libtcmalloc_debug.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/binary_trees_shared benchmark/binary_trees_shared-binary_trees.o -Wl,-bind_at_load  ./.libs/libtcmalloc_minimal.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o binary_trees benchmark/binary_trees-binary_trees.o -Wl,-bind_at_load  ./.libs/libtcmalloc_minimal.a
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/malloc_bench_shared benchmark/malloc_bench_shared-malloc_bench.o -Wl,-bind_at_load  ./.libs/librun_benchmark.a ./.libs/libtcmalloc_minimal.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o malloc_bench benchmark/malloc_bench-malloc_bench.o -Wl,-bind_at_load  ./.libs/librun_benchmark.a ./.libs/libtcmalloc_minimal.a
libtool: link: g++ -g -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -O2 -fno-sized-deallocation -g -D_THREAD_SAFE -o .libs/sampling_debug_test src/tests/sampling_debug_test-sampling_test.o -Wl,-bind_at_load  ./.libs/libtcmalloc_debug.dylib
Undefined symbols for architecture x86_64:
  "_memalign", referenced from:
      testing::RunAllTests(int, char**) in tcmalloc_and_profiler_unittest-tcmalloc_unittest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -D_THREAD_SAFE  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -Wno-unused-result -fsized-deallocation   -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE    -o tcmalloc_minimal_unittest src/tests/tcmalloc_minimal_unittest-tcmalloc_unittest.o src/tests/tcmalloc_minimal_unittest-testutil.o libtcmalloc_minimal.la liblogging.la
make: *** [tcmalloc_and_profiler_unittest] Error 1
make: *** Waiting for unfinished jobs....
/bin/sh ./libtool  --tag=CXX   --mode=link g++ -D_THREAD_SAFE  -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc  -Wno-unused-result -fsized-deallocation   -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE    -o tcmalloc_minimal_large_unittest src/tests/tcmalloc_minimal_large_unittest-tcmalloc_large_unittest.o libtcmalloc_minimal.la
libtool: link: g++ -g -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -g -D_THREAD_SAFE -o .libs/heap-profiler_debug_unittest src/tests/heap_profiler_debug_unittest-heap-profiler_unittest.o -Wl,-bind_at_load  ./.libs/libtcmalloc_debug.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/tcmalloc_minimal_large_unittest src/tests/tcmalloc_minimal_large_unittest-tcmalloc_large_unittest.o -Wl,-bind_at_load  ./.libs/libtcmalloc_minimal.dylib
libtool: link: g++ -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posix_memalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fsized-deallocation -fno-builtin -O2 -fno-sized-deallocation -D_THREAD_SAFE -o .libs/tcmalloc_minimal_unittest src/tests/tcmalloc_minimal_unittest-tcmalloc_unittest.o src/tests/tcmalloc_minimal_unittest-testutil.o -Wl,-bind_at_load  ./.libs/libtcmalloc_minimal.dylib ./.libs/liblogging.a
Undefined symbols for architecture x86_64:
  "_memalign", referenced from:
      testing::RunAllTests(int, char**) in tcmalloc_minimal_unittest-tcmalloc_unittest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [tcmalloc_minimal_unittest] Error 1

EDIT: At first it was giving me an undefined reference to some operator delete but I realized I should probably make clean first. Did a make clean and then make CXXFLAGS='-O2 -fno-sized-deallocation' -j8 and got the above output.

@alk
Copy link
Contributor

alk commented Feb 20, 2017

If you do make clean and then repeat my instructions, I think it'll work.

@Qix-
Copy link
Author

Qix- commented Feb 20, 2017

@alk see my edit :) Caught that right after I posted, haha.

@alk
Copy link
Contributor

alk commented Feb 20, 2017

Ok. So _memalign is something else that we'll need fix as well. As for original issue, can you try this patch (on top of master branch):

diff --git a/configure.ac b/configure.ac
index 752e22a..a7f63f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -358,9 +358,11 @@ AC_CACHE_CHECK([if C++ compiler supports -fsized-deallocation],
                [AC_LANG_PUSH(C++)
                 OLD_CXXFLAGS="$CXXFLAGS"
                 CXXFLAGS="$CXXFLAGS -fsized-deallocation"
-                AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,)],
-                                  perftools_cv_sized_deallocation_result=yes,
-                                  perftools_cv_sized_deallocation_result=no)
+                AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+                    [[#include <new>]],
+                    [[(::operator delete)(0, 256)]])],
+                 perftools_cv_sized_deallocation_result=yes,
+                 perftools_cv_sized_deallocation_result=no)
                 CXXFLAGS="$OLD_CXXFLAGS"
                 AC_LANG_POP(C++)])

I think it should catch the "issue" of osx compiler allowing -fsized-deallocation yet then barking on it's actual use. (You will need to run ./autogen.sh)

alk added a commit that referenced this issue Feb 20, 2017
OSX and windows have issues with memalign. So test against tc_memalign
instead.

This should fix _memalign linker-time part of issue #870.
@alk
Copy link
Contributor

alk commented Feb 20, 2017

I've uploaded fix for memalign issue. Thanks for catching it.

@Qix-
Copy link
Author

Qix- commented Feb 20, 2017

No problem!

Do you want me to still test that patch? If so, could you wrap it in a code block?

@alk
Copy link
Contributor

alk commented Feb 20, 2017

Yes, please test it. And yes I've already wrapped it up.

@Qix-
Copy link
Author

Qix- commented Feb 20, 2017

$ ./autogen.sh && ./configure && make -j8  && echo $?
0

Looks like that worked after pulling master (5618ef7)

alk added a commit that referenced this issue Feb 21, 2017
Weirdly, some OSX compiler does allow -fsized-deallocation, yet barks
on any attempt to actually use it at compile time (!). So lets detect
this as well in configure and opt out as necessary.

Should fix issue #870.
@alk
Copy link
Contributor

alk commented Feb 21, 2017

Thanks a lot. I've uploaded a fix and we should be done here.

@alk alk closed this as completed Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants