Ticket #21504 (closed defect: fixed)
google-perftools does not build/install libprofiler on Snow Leopard
| Reported by: | lminder@… | Owned by: | brett@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.0 |
| Keywords: | Cc: | ||
| Port: | google-perftools |
Description
On Snow Leopard, google-perftools does not install the libprofiler library, so the package can't be used for profiling.
One problem here is that it tries to include /usr/include/ucontext.h, which no longer works without -D_XOPEN_SOURCE.
I tried adding -D_XOPEN_SOURCE to both cflags and cxxflags, and then the library is built and installed, but crashes when I try to actually use it (as CPU-profiler, at least).
Change History
Note: See
TracTickets for help on using
tickets.

