Have someone link Percona with TCMalloc statically ?

57 views
Skip to first unread message

彭立勋

unread,
Mar 29, 2011, 6:38:49 AM3/29/11
to Percona Discussion
Have someone link Percona with TCMalloc statically ?
I test Percona+tcmalloc and Percona+tcmalloc_minimal,but compile error like these:

malloc_extension.cc:(.text+0xad6): undefined reference to `std::allocator<char>::~allocator()'
malloc_extension.cc:(.text+0xae6): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char const*)'
malloc_extension.cc:(.text+0xaef): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
/usr/local/lib/libtcmalloc_minimal.a(libtcmalloc_minimal_internal_la-malloc_extension.o):(.data.rel.ro._ZTI15MallocExtension[typeinfo for MallocExtension]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
collect2: ld returned 1 exit status

Anyone can help me slove it ?
And Percona can provide Percona binary with tcmalloc?

--
Best Wishes

Lixun Peng (P.Linux)

Gtalk: penglixun(at)gmail.com
Twitter: http://www.twitter.com/plinux
Blog: http://www.penglixun.com

MARK CALLAGHAN

unread,
Mar 29, 2011, 8:25:38 AM3/29/11
to percona-d...@googlegroups.com, 彭立勋
I used tcmalloc a few years back and you might need to link with
libstdc++ (-lstdc++).

> --
> You received this message because you are subscribed to the Google Groups
> "Percona Discussion" group.
> To post to this group, send email to percona-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> percona-discuss...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/percona-discussion?hl=en.
>

--
Mark Callaghan
mdca...@gmail.com

Reply all
Reply to author
Forward
0 new messages