GNOME Bugzilla – Bug 608976
build error with tracker 0.7.18
Last modified: 2010-03-08 11:09:51 UTC
It looks like tracker deprecated some functions, and this broke the support for tracker in nautilus: CC nautilus-search-engine-tracker.lo cc1: warnings being treated as errors nautilus-search-engine-tracker.c: In function 'finalize': nautilus-search-engine-tracker.c:65: error: 'tracker_disconnect' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:168) nautilus-search-engine-tracker.c: In function 'nautilus_search_engine_tracker_start': nautilus-search-engine-tracker.c:169: error: 'tracker_search_metadata_by_text_and_mime_and_location_async' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:184) nautilus-search-engine-tracker.c:175: error: 'tracker_search_metadata_by_text_and_mime_async' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:179) nautilus-search-engine-tracker.c:186: error: 'tracker_search_metadata_by_text_and_location_async' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:174) nautilus-search-engine-tracker.c:193: error: 'tracker_search_metadata_by_text_async' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:170) nautilus-search-engine-tracker.c: In function 'nautilus_search_engine_tracker_new': nautilus-search-engine-tracker.c:275: error: 'tracker_connect' is deprecated (declared at /home/jhbuild/sid-ia32/build/include/tracker-0.7/libtracker-client/tracker.h:166)
I was able to complete compilation by removing the -Werror from the Makefile, but a proper fix should be done, I guess
I'm working on it (at least as a part of bug 589345). I'll probably reuse pieces of code from tracker sources directly. Newer versions can be built with TRACKER_DISABLE_DEPRECATED so we should adapt on that.
Per discussion over irc I've committed the patch in bug 589345 which includes support for the new tracker API. Nautilus now loads tracker and beagle dynamically which effectively fixes this bug.