GNOME Bugzilla – Bug 759665
Update mail ops after change in libcamel
Last modified: 2016-01-11 18:42:37 UTC
The following commit in evolution-data-server broke the Evolution build: https://git.gnome.org/browse/evolution-data-server/commit/?id=a06c602777c34e9da55d7b8361605a908d74e1ce with the following error: ../../libemail-engine/mail-ops.c: In function 'mail_fetch_mail': ../../libemail-engine/mail-ops.c:526:52: warning: passing argument 2 of 'camel_filter_driver_set_status_func' from incompatible pointer type camel_filter_driver_set_status_func (fm->driver, status, status_data); ^ In file included from /usr/include/evolution-data-server/camel/camel-session.h:29:0, from /usr/include/evolution-data-server/camel/camel-cipher-context.h:28, from /usr/include/evolution-data-server/camel/camel.h:30, from /usr/include/evolution-data-server/libedataserver/e-source-camel.h:25, from /usr/include/evolution-data-server/libedataserver/libedataserver.h:52, from ../../libemail-engine/mail-ops.c:36: /usr/include/evolution-data-server/camel/camel-filter-driver.h:92:6: note: expected 'CamelFilterStatusFunc' but argument is of type 'void (**)(struct CamelFilterDriver *, enum camel_filter_status_t, gint, const gchar *, void *)' void camel_filter_driver_set_status_func (CamelFilterDriver *d, CamelFilterStatusFunc func, gpointer data); ^ ../../libemail-engine/mail-ops.c: In function 'report_status': ../../libemail-engine/mail-ops.c:935:3: error: called object is not a function or function pointer m->status (m->driver, status, pc, str, m->status_data); ^ Makefile:793: recipe for target 'libemail_engine_la-mail-ops.lo' failed
Created attachment 317669 [details] [review] Update mail ops after change in libcamel Commit a06c602777c34e9da55d7b8361605a908d74e1ce in e-d-s changed the typedef of various delegate functions, and it broke the build of Evolution.
I've tagged evolution-data-server in GNOME Continuous; will revert once Evolution gets fixed.
*** Bug 759716 has been marked as a duplicate of this bug. ***
Thanks for a bug report and a patch. Weird, I'm pretty sure I tried the build of all the evolution parts, but I didn't face the issue. I do face it too now. To be on a safe side I bumped the libcamel soname version within bug #759214 and committed your fix. Created commit 46b706c in evo master (3.19.4+)