Re: [Tracker] status of GIO regarding TST



Ivan Frade wrote:
Hi,

El vie, 23-01-2009 a las 13:02 +0200, ext Tshepang Lekhonkhobe escribiÃ:
On Fri, Jan 23, 2009 at 1:01 PM, Cosimo Cecchi <cosimoc gnome org> wrote:
On Fri, 2009-01-23 at 12:56 +0200, Tshepang Lekhonkhobe wrote:
Hi,

Using lsof revealed that TST still uses gnome-vfs. Last I checked we
moved to GIO so me wonders what going on?

here's the relevant output:

$ tracker-s 14844        wena  mem       REG        8,3      57328
606773 /usr/lib/libgvfscommon.so.0.0.0
GVfs is not gnome-vfs, it's a set of extensions for GIO, supporting
other backends than local files.
Sorry, that was a bit careless. I meant to attach the following piece:
tracker-s 14844        wena  mem       REG        8,3     368128
423102 /usr/lib/libgnomevfs-2.so.0.2200.0

 I did a quick check into tracker-search-tool code, and we are not using
gnome_vfs functions anywhere. Indeed we dont have a gnome-vfs dependency
in the configure.ac...
I guess we are linking with libgnomeui and that library links to
libgnomevfs and other useless components (for us) like libbonoboui.

I tend to agree with Ivan here.

To see if we link with a library, you should really use ldd:

$ ldd /usr/bin/tracker-search-tool |grep -i gio
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f75abaa0000)
$ ldd /usr/bin/tracker-search-tool |grep -i gnomevfs
        libgnomevfs-2.so.0 => /usr/lib/libgnomevfs-2.so.0 (0x00007f79b6366000)

To see if we use any GnomeVFS or other library functions, you can use nm or objdump:

$ nm /usr/bin/tracker-search-tool |grep -i g_file_new_for_path
                 U g_file_new_for_pat
$ nm /usr/bin/tracker-search-tool |grep -i gnome_vfs
$

--
Regards,
Martyn



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