GNOME Bugzilla – Bug 722525
#include <glib.h> is missing in src/tracker-ioprio.h
Last modified: 2014-01-21 08:46:43 UTC
src/tracker-ioprio.h use G_BEGIN_DECLS and G_END_DECLS, so glib.h should be included.
Created attachment 266643 [details] [review] Add #include <glib.h>
The file is copied from tracker and we do not want to maintain a fork of it. Reassigning, so that the original source is fixed. Does cause a build failure in FreeBSD?
This does cause a build failure in FreeBSD. This does not cause problem in tracker because tracker-ioprio.c includes libtracker-common/tracker-log.h, which includes glib.h. However, this include is removed in gnome-online-miners, so including glib.h is required.
(In reply to comment #1) > Created an attachment (id=266643) [details] [review] > Add #include <glib.h> Patch looks good to me. (In reply to comment #3) > This does cause a build failure in FreeBSD. > > This does not cause problem in tracker because tracker-ioprio.c includes > libtracker-common/tracker-log.h, which includes glib.h. However, this include > is removed in gnome-online-miners, so including glib.h is required. It's unclear to me if you're saying we should or shouldn't use this patch. In one line you say it causes a build failure on FreeBSD, on another you say it's not a problem in Tracker?
This bug report is moved from gnome-online-miners to tracker because it is related to the file copy from trakcer. The file does not cause error in tracker, but it cause error in gnome-online-miners. I think we should use this patch.
Created attachment 266719 [details] [review] tracker-ioprio: Fix includes I think this is the right fix.
Created attachment 266720 [details] [review] tracker-ioprio, tracker-sched: Fix includes ... and tracker-sched also.
Comment on attachment 266720 [details] [review] tracker-ioprio, tracker-sched: Fix includes Thanks for the patch rishi :)
It would be nice if someone with knowledge of FreeBSD could implement the non-Linux code paths in those files. Otherwise performance would be pretty dire with anything that uses Tracker.
*** Bug 722628 has been marked as a duplicate of this bug. ***