From: Vincent T. <vt...@un...> - 2011-03-18 11:01:31
|
On Fri, 18 Mar 2011, Michael T. wrote: > >> OK. Got mpatrol to build with the static lib, as well as an example >> program. Many thanks. >> >> BTW: Irritatingly, the makefile does not have an 'install' target - >> copying has to be done manually - and there is no 'check' target to >> exercise the multitude of supplied test programs. Assuming I get on with >> mpatrol, would a patch to the mingw32 makefile be appropriate? >> >> P. > > What version did you manage to build? > I tried to build the AUTOTOOLed version produced by Vincent, but got stuck and my posts on this list haven't > been answered, yet. > I also tried to build several other versions from the mpatrol svn repository with the mingw makefile, but always got stuck > only with libmatrol.a and several .o files. > I also tried the binary 1.4.8 version buid for mingw, managed to make it work, however the basic example .log file > was wrong and I found an explanation on the mpatrol mailing list archives - that one should use the same comipler for compiling mpatrol and his code. So downloading mpatrol binaries doesn't seem to be a good solution. > I tried to to compile with my old mingw installation as well as with a fresh automated (complete) installation, using gcc 4.5.2 with no success. > > I understand I am not posting any particular outputs. I tried to do it with the autotooled version which seemed to me the most *almost successful* attempt. > I also tried these steps http://old.nabble.com/Re%3A-Building-mpatrol-p30610701.html > with no success. It seems to me that those dependencies (mentioned by Keith) are already included in the latest automated installer, however I installed them anyway (Am I right that by installing those particular packages is meant simply copying them to appropriate directories?) modified the makefile and still got the undefined reference to libintl_.... > > I've been working for several years with libraries like gtk, gtkdatabox, goocanvas, most recently OpenCV. > I always managed to compile them and make them work with my MinGW installation, but I can't make the mpatrol library work. Perhaps I'm doing some silly mistake, I don't know. But as far as I'm concerned mpatrol is the best memory checker for windows available and I really need to make it work :). > > Please help, I can't seem to make this on my own. about the autotooled version of mpatrol, I compile it with a patch (with my current binutils version, unfortunately, libbfd depends on libintl, which was not the case when I wrote the autotooled version of mpatrol). I use gcc 4.5. For a quick hack : line 73 of configure.ac, replace MPATROL_LIBS="${MPATROL_LIBS} -lbfd -limagehlp -liberty" by MPATROL_LIBS="${MPATROL_LIBS} -lbfd -lintl -limagehlp -liberty" To configure and build it: autoreconf -f -i ./configure make About your problem, i don't know. It's compiling on my system (windows xp, mingw 4.5.0, a recent binutils package). I just did it from a fresh check out of the repository with the hack above. I see a lots of stuff to improve in the autotooled version (i was young and naive, in these days. I'm still is, but less :) ). I'll try to take some time for mpatrol in the next week regards Vincent |