GNOME Bugzilla – Bug 563706
Tracker plugin fails to build against trunk
Last modified: 2009-03-14 20:24:17 UTC
tracker-client.h no longer exist in trunk To fix the build (don't yet checked at runtime) you need: --- src/plugins/tracker/totem-tracker-widget.c (revisione 5829) +++ src/plugins/tracker/totem-tracker-widget.c (copia locale) @@ -28,10 +28,10 @@ #include <stdio.h> #include <stdlib.h> #include <libintl.h> -#include <tracker.h> -#include <tracker-client.h> #include <glib/gi18n-lib.h> #include <gio/gio.h> +#include <dbus/dbus.h> +#include <tracker.h> #include "totem-tracker-widget.h" This, of course, will break the build against released tracker 0.6.6 :) Please note that #include order and additional dbus.h count as per this[1] ml thread. [1] http://mail.gnome.org/archives/tracker-list/2008-December/msg00048.html
(In reply to comment #0) > tracker-client.h no longer exist in trunk > > To fix the build (don't yet checked at runtime) you need: > --- src/plugins/tracker/totem-tracker-widget.c (revisione 5829) > +++ src/plugins/tracker/totem-tracker-widget.c (copia locale) > @@ -28,10 +28,10 @@ > #include <stdio.h> > #include <stdlib.h> > #include <libintl.h> > -#include <tracker.h> > -#include <tracker-client.h> > #include <glib/gi18n-lib.h> > #include <gio/gio.h> > +#include <dbus/dbus.h> > +#include <tracker.h> > > #include "totem-tracker-widget.h" > > This, of course, will break the build against released tracker 0.6.6 :) It seemed to work just fine against 0.6.6 with the changes you made. > Please note that #include order and additional dbus.h count as per this[1] ml > thread. > > [1] http://mail.gnome.org/archives/tracker-list/2008-December/msg00048.html That's a bug in tracker.h. It should include any headers it actually uses...
Created attachment 124191 [details] [review] totem-new-tracker.patch In case my commit will break older older versions of Tracker.
2008-12-08 Bastien Nocera <hadess@hadess.net> * src/plugins/tracker/totem-tracker-widget.c: Fix building with newer versions of tracker (Closes: #563706)
I have fixed the #include situation in <tracker.h>(In reply to comment #1) > (In reply to comment #0) > > Please note that #include order and additional dbus.h count as per this[1] ml > > thread. > > > > [1] http://mail.gnome.org/archives/tracker-list/2008-December/msg00048.html > > That's a bug in tracker.h. It should include any headers it actually uses... Hi Bastien. I have fixed this. It was including the lower level DBus #includes but not glib before that, the fix includes: -#include <dbus/dbus.h> -#include <dbus/dbus-glib-lowlevel.h> -#include <dbus/dbus-glib.h> +#include <dbus/dbus-glib-bindings.h> The .c file simply includes tracker.h now too. Note, the dbus/dbus-glib-bindings.h file actually includes glib.h for us.
*** Bug 575341 has been marked as a duplicate of this bug. ***