Closed GoogleCodeExporter closed 9 years ago
What platform are you on?
This is me trying to be too clever, when creating the .a files (to let you link
in
both libprofiler.a and libtcmalloc.a). I don't know why the symbols are
disappearing
-- that shouldn't be. In any case, next release i'm back to a more normal
setup so
this problem will go away.
In the meantime, you can edit the Makefile to comment out the rule(s) about
libprofiler.o. That should keep it from doing the overwriting.
Original comment by csilv...@gmail.com
on 30 May 2009 at 7:01
I was seeing this issue on OSX Leopard. I checked the output of `nm
libprofiler.a | grep ProfilerStart` before and
after the libtool command and the symbols were definitely being lost. I was
able to remove the --disable-
shared and successfully build a modified static libprofiler to link into a ruby
extension.
If you're interested, I've released the ruby specific profiler at
http://github.com/tmm1/perftools.rb
Original comment by themaste...@gmail.com
on 31 May 2009 at 6:27
Removing the make target for libprofiler.o worked great. Thanks!
Original comment by themaste...@gmail.com
on 1 Jun 2009 at 7:36
Hmm, I tried it on 3 varieties of OS X, and I thought the tests all passed, but
maybe
I missed a problem. Anyway, I'm glad the workaround worked.
The ruby profiler looks like a great idea! Best of luck with that project.
Original comment by csilv...@gmail.com
on 1 Jun 2009 at 11:00
This should be fixed in perftools 1.3, just released. (I've removed all that
libprofiler.o stuff.)
Original comment by csilv...@gmail.com
on 10 Jun 2009 at 2:05
Original issue reported on code.google.com by
themaste...@gmail.com
on 30 May 2009 at 6:32