Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#67472 closed defect (fixed)

gperftools @2.10: Undefined symbols operator delete, operator new

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gperftools

Description

gperftools fails to build on Lion:

https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/145220/steps/install-port/logs/stdio

libtool: link: /opt/local/bin/clang++-mp-15 -std=gnu++11 -g -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -Wno-unused-result -DNO_FRAME_POINTER -pipe -Os -stdlib=libc++ -arch x86_64 -Wl,-headerpad_max_install_names -arch x86_64 -o addressmap_unittest src/tests/addressmap_unittest-addressmap_unittest.o  -L/opt/local/lib ./.libs/liblogging.a
Undefined symbols for architecture x86_64:
  "operator delete(void*, std::align_val_t)", referenced from:
      __ZN7testingL11RunAllTestsEiPPc in tcm_min_asserts_unittest-tcmalloc_unittest.o
  "operator delete(void*, std::align_val_t, std::nothrow_t const&)", referenced from:
      __ZN7testingL11RunAllTestsEiPPc in tcm_min_asserts_unittest-tcmalloc_unittest.o
  "operator new(unsigned long, std::align_val_t)", referenced from:
      __ZN7testingL11RunAllTestsEiPPc in tcm_min_asserts_unittest-tcmalloc_unittest.o
  "operator new(unsigned long, std::align_val_t, std::nothrow_t const&)", referenced from:
      __ZN7testingL11RunAllTestsEiPPc in tcm_min_asserts_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: *** [tcm_min_asserts_unittest] Error 1
make: *** Waiting for unfinished jobs....

Change History (3)

comment:1 Changed 18 months ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:2 Changed 18 months ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 7375653e34deb7d53d4223fcb81cf1aaadf8f963/macports-ports (master):

gperftools: use cmake; add variants benchmark, tests
Fixes: #67472

comment:3 Changed 18 months ago by mascguy (Christopher Nielsen)

Queued builds for gperftools rdependents, on 10.7

Note: See TracTickets for help on using tickets.