__func__ and __PRETTY_FUNCTION__ are not supported by sun compiler,
add this patch to make it build.
Index: src/libtracker/tracker.h =================================================================== --- src/libtracker/tracker.h (revision 2471) +++ src/libtracker/tracker.h (working copy) @@ -20,6 +20,10 @@ #ifndef TRACKER_H #define TRACKER_H +#ifndef __FUNCTION__ +#define __FUNCTION__ __func__ +#endif + G_BEGIN_DECLS #include <dbus/dbus.h> Index: src/trackerd/tracker-files.c =================================================================== --- src/trackerd/tracker-files.c (revision 2471) +++ src/trackerd/tracker-files.c (working copy) @@ -480,7 +480,7 @@ tracker_dbus_request_failed (request_id, &actual_error, "%s not implemented yet", - __PRETTY_FUNCTION__); + G_GNUC_PRETTY_FUNCTION); dbus_g_method_return_error (context, actual_error); g_error_free (actual_error); } Index: src/libtracker-db/tracker-db-index.c =================================================================== --- src/libtracker-db/tracker-db-index.c (revision 2471) +++ src/libtracker-db/tracker-db-index.c (working copy) @@ -29,6 +29,7 @@ #include <glib/gstdio.h> #include <libtracker-common/tracker-log.h> +#include <libtracker-common/tracker-config.h> #include <libtracker-common/tracker-file-utils.h> #include <libtracker-db/tracker-db-manager.h> Index: src/libtracker-common/tracker-config.h =================================================================== --- src/libtracker-common/tracker-config.h (revision 2471) +++ src/libtracker-common/tracker-config.h (working copy) @@ -23,6 +23,9 @@ #ifndef __LIBTRACKER_COMMON_CONFIG_H__ #define __LIBTRACKER_COMMON_CONFIG_H__ +#ifndef __FUNCTION__ +#define __FUNCTION__ __func__ +#endif #include <glib-object.h> G_BEGIN_DECLS
_______________________________________________ tracker-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/tracker-list
