Need Help Compiling MemProf 0.6 on Ubuntu

Archives Forums/Linux Discussion/Need Help Compiling MemProf 0.6 on Ubuntu

SebHoll(Posted 2008) [#1]
Arrggghhh! I've been trying to get this working for an hour now, and I can't see what I'm doing wrong.

I'm trying to install MemProf so that I can track down some memory leaks in FLTKMaxGUI. After searching for a prebuilt package from Synaptic, I found an old version 0.51 which although installed great, it apparently doesn't work with the latest libc library. :-(

So I downloaded the latest v0.6 source from the site, extracted it, cd'd into the directory, typed:

./configure
This finished a few minutes later... I then typed:

make
And I get the following error almost immediately:

sebholl@...$ make
make all-recursive
make[1]: Entering directory `/home/sebholl/Desktop/memprof-0.6'
Making all in po
make[2]: Entering directory `/home/sebholl/Desktop/memprof-0.6/po'
file=`echo am | sed 's,.*/,,'`.gmo \
&& rm -f $file && -o $file am.po
/bin/sh: -o: not found
make[2]: *** [am.gmo] Error 127
make[2]: Leaving directory `/home/sebholl/Desktop/memprof-0.6/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sebholl/Desktop/memprof-0.6'
make: *** [all] Error 2


Anyone know what's going wrong? Better still, can anyone send me a compiled version? :-p

Thanks


Brucey(Posted 2008) [#2]
even 0.6 looks a bit old, with a 2006 timestamp.

Is this the best tool you could find?


SebHoll(Posted 2008) [#3]
I had a look and couldn't find anything else with a GUI front end that wouldn't mean having to recompile with additional libraries imported, and that would allow me to get memory dumps of the running process.

Do you know of a better one?


Brucey(Posted 2008) [#4]
*The* memory profiling app is called Valgrind - http://valgrind.org/

It appears you can get different UIs for it.


SebHoll(Posted 2008) [#5]
Cheers Brucey! I managed to install it, got it attached to the process, but couldn't work out for the life of me how to get a memory dump from any of the GUIs.

After another hour of Google searches, I found out that most Linux distros have a package you can use to dump processes using terminal...

gcore -o "filename.tmp" PID
Easy! It dumps a process's current memory to disk, which I can then examine using a regular hex editor.

Thanks anyway Brucey.