qchbai / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

make problem,tcmalloc_minimal_unittest error #440

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I try to build gperftools on a 64 bit system on linux

./configure --enable-minimal

make

What is the expected output? What do you see instead?

libtool: link: g++ -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 -DNO_FRAME_POINTER -g -O2 -o 
.libs/tcmalloc_minimal_unittest -pthread 
tcmalloc_minimal_unittest-tcmalloc_unittest.o 
tcmalloc_minimal_unittest-testutil.o  ./.libs/libtcmalloc_minimal.so 
./.libs/liblogging.a -lpthread -pthread -Wl,-rpath -Wl,/usr/local/lib
./.libs/libtcmalloc_minimal.so: undefined reference to 
`tcmalloc::DumpProcSelfMaps(int)'
./.libs/libtcmalloc_minimal.so: undefined reference to 
`AtomicOps_Internalx86CPUFeatures'
./.libs/libtcmalloc_minimal.so: undefined reference to `SpinLock::SlowLock()'
./.libs/libtcmalloc_minimal.so: undefined reference to 
`tcmalloc::FillProcSelfMaps(char*, int, bool*)'
./.libs/libtcmalloc_minimal.so: undefined reference to 
`SpinLock::SlowUnlock(unsigned long)'
collect2: ld returned 1 exit status
make: *** [tcmalloc_minimal_unittest] error 1

What version of the product are you using? On what operating system?

libunwind-0.99-beta google-perftools-1.9.1

CentOs x86_64

Please provide any additional information below.

Please help me.

Original issue reported on code.google.com by wgw...@gmail.com on 26 Jun 2012 at 3:15

GoogleCodeExporter commented 9 years ago
I am CentOS x86_64 also encountered the same problem, the corresponding version 
gperftools-2.0, libunwind-0.99-beta

./configure --disable-cpu-profiler --disable-heap-profiler 
--disable-heap-checker --enable-minimal --disable-dependency-tracking 
--enable-frame-pointers

./.libs/libtcmalloc_minimal.so: undefined reference to `tcmalloc:: 
DumpProcSelfMaps ( int ) . '

./.libs/libtcmalloc_minimal.so: undefined reference to 
`AtomicOps_Internalx86CPUFeatures'

./.libs/libtcmalloc_minimal.so: undefined reference to `SpinLock:: SlowLock ( ) 
'

./.libs/libtcmalloc_minimal.so: undefined reference to `tcmalloc:: 
FillProcSelfMaps ( char*, int, bool* ) . '

./.libs/libtcmalloc_minimal.so: undefined reference to `SpinLock:: SlowUnlock ( 
unsigned long ) . '

Collect2: LD returned 1 exit status

Original comment by xfyan...@gmail.com on 2 Dec 2012 at 7:42

GoogleCodeExporter commented 9 years ago
os:centos5.4

Original comment by xfyan...@gmail.com on 2 Dec 2012 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by chapp...@gmail.com on 23 Dec 2012 at 2:48

GoogleCodeExporter commented 9 years ago
not seeing this problem on latest code

Original comment by alkondratenko on 14 Sep 2013 at 8:31