Re: Testing for memory leaks in GTK



Paul Davis wrote:

> On Thu, Jan 7, 2010 at 4:10 PM, Erik de Castro Lopo
> <mle+gtk mega-nerd com> wrote:
> > Simon McVittie wrote:
> >
> >> Debian's GLib packages compile GLib twice; the normal copy with
> >> the recommended hidden-visibility settings ends up in /usr/lib in the normal
> >> libglib2.0-0 binary package (which other packages depend on), but the package
> >> also builds extra copy that is refdbg'able, and installs it in
> >> /usr/lib/refdbg, in an additional libglib2.0-0-refdbg binary package
> >
> > Yep, found and installed it. I now have:
> >
> >    $ ls -l /usr/lib/refdbg/
> >    -rw-r--r--   1 root root 767414 Dec  4 00:54 libgobject-2.0.so
> >    -rw-r--r--   1 root root 767414 Dec  4 00:54 libgobject-2.0.so.0
> >    -rw-r--r--   1 root root 767414 Dec  4 00:54 libgobject-2.0.so.0.2200.3
> >
> > but I'm still not able to configure refdbg. I'm doing this:
> >
> >    export LD_LIBRARY_PATH=/usr/lib/refdbg:$LD_LIBRARY_PATH
> >    ./configure --prefix=$HOME/Local
> 
> you may well need to set PKG_CONFIG_PATH too. the autocrap files will
> be looking for glib-2.0.pc or something like that, and there's a good
> chance that they are finding the wrong one.

Is thats righ? I'm not sure. The library:

     /usr/lib/refdbg/libgobject-2.0.so.0.2200.3

should be a drop in replacement for /usr/lib/libgobject-2.0.so.0.2200.3
and pkg-config should be finding the pkg-config file for that ok while
the LD_LIBRARY_PATH setting should be replacing the /usr/lib/ version
with the /usr/lib/refdbg version.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]