#51739: google-perftools @2.4_0 does not auto build/install libprofiler on osx EI Capitan 10.11.5 -------------------------------+-------------------------------- Reporter: zhangdai1992@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: google-perftools | -------------------------------+-------------------------------- Changes (by ryandesign@…): * keywords: google-perftools pprof libprofiler => * port: google-perftools @2.4_0 => google-perftools Old description:
When compiling with '-lprofiler' pops error below:
```ld: library not found for -lprofiler```
-------------------------------------------
Other information that maybe useful:
1. gcc version is 5.4.0 (MacPorts gcc5 5.4.0_0)
2. cannot find libprofiler library in /usr/lib or /usr/local/lib and so on
New description: When compiling with '-lprofiler' pops error below: ```ld: library not found for -lprofiler``` ------------------------------------------- Other information that maybe useful: 1. gcc version is 5.4.0 (MacPorts gcc5 5.4.0_0) 2. cannot find libprofiler library in /usr/lib or /usr/local/lib and so on -- Comment: 1. What version of MacPorts gcc you have installed is immaterial; most ports, including google-perftools, use the compilers they specify, which is most often the version of clang provided by Xcode. 2. MacPorts does not install files in /usr/lib or /usr/local/lib; it installs in its own prefix, which is usually /opt/local. However, I can confirm that the port does not install libprofiler.dylib in /opt/local/lib. I do see this output from the configure phase: {{{ checking how to access the program counter from a struct ucontext... configure: WARNING: Could not find the PC. Will not try to compile libprofiler... }}} I don't know how to work around that problem. We should try updating the port to version 2.5 which is now available from https://github.com/gperftools/gperftools/releases -- Ticket URL: <https://trac.macports.org/ticket/51739#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X