GNOME Bugzilla – Bug 414195
Fails to build when srcdir != builddir
Last modified: 2013-09-13 00:51:55 UTC
Hi, When building evolution out of tree it fails with: make all-am make[4]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/evolution/plugins/bbdb » /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb -I/home/lool/jhbuild-gnome-2.18/checkout/evolution -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-module-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nss -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nspr -I/usr/include/libpng12 -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/usr/include/libpng12 -Os -Wall -Wmissing-prototypes -Wno-sign-compare -MT bbdb.lo -MD -MP -MF .deps/bbdb.Tpo -c -o bbdb.lo /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb/bbdb.c gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb -I/home/lool/jhbuild-gnome-2.18/checkout/evolution -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-module-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nss -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nspr -I/usr/include/libpng12 -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/usr/include/libpng12 -Os -Wall -Wmissing-prototypes -Wno-sign-compare -MT bbdb.lo -MD -MP -MF .deps/bbdb.Tpo -c /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb/bbdb.c -fPIC -DPIC -o .libs/bbdb.o In file included from /home/lool/jhbuild-gnome-2.18/checkout/evolution/mail/em-event.h:29, from /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/bbdb/bbdb.c:47: /home/lool/jhbuild-gnome-2.18/checkout/evolution/composer/e-msg-composer.h:35:20: error: Editor.h: No such file or directory make[4]: *** [bbdb.lo] Erreur 1 make[4]: quittant le répertoire « /home/lool/jhbuild-gnome-2.18/build/evolution/plugins/bbdb » make[3]: *** [all] Erreur 2 This is due to a missing -I flag to locate Editor.h which is in $(top_builddir)/composer. I'll attach a patch adding this -I flag. Cheers,
Created attachment 83805 [details] [review] Add missing -I flag to locate Editor.h when building the bbdb plugin out of tree
Created attachment 83808 [details] [review] Add missing -I flag to locate Editor.h when building the new-mail-notify plugin out of tree The build subsequently fails with: make[3]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/evolution/plugins/new-mail-notify » make all-am make[4]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/evolution/plugins/new-mail-notify » /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/new-mail-notify -I/home/lool/jhbuild-gnome-2.18/checkout/evolution -DDBUS_API_SUBJECT_TO_CHANGE=1 -DDBUS_VERSION=1000 -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-module-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nss -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nspr -I/usr/include/libpng12 -I/home/lool/jhbuild-gnome-2.18/prefix/include/dbus-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/dbus-1.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -Os -Wall -Wmissing-prototypes -Wno-sign-compare -MT new-mail-notify.lo -MD -MP -MF .deps/new-mail-notify.Tpo -c -o new-mail-notify.lo /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/new-mail-notify/new-mail-notify.c gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/new-mail-notify -I/home/lool/jhbuild-gnome-2.18/checkout/evolution -DDBUS_API_SUBJECT_TO_CHANGE=1 -DDBUS_VERSION=1000 -DORBIT2=1 -pthread -I/home/lool/jhbuild-gnome-2.18/prefix/include/evolution-data-server-1.10 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gconf/2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gnome-vfs-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomecanvas-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libart-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libbonoboui-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-keyring-1 -I/home/lool/jhbuild-gnome-2.18/prefix/include/pango-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/gtk-2.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/atk-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/cairo -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libglade-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gnome-vfs-module-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprint-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnomeprintui-2.2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgtkhtml-3.8 -I/home/lool/jhbuild-gnome-2.18/prefix/include/gtk-unix-print-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nss -I/home/lool/jhbuild-gnome-2.18/prefix/include/xulrunner-1.8.1.2pre/nspr -I/usr/include/libpng12 -I/home/lool/jhbuild-gnome-2.18/prefix/include/dbus-1.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/dbus-1.0/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/glib-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/lib/glib-2.0/include -Os -Wall -Wmissing-prototypes -Wno-sign-compare -MT new-mail-notify.lo -MD -MP -MF .deps/new-mail-notify.Tpo -c /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/new-mail-notify/new-mail-notify.c -fPIC -DPIC -o .libs/new-mail-notify.o In file included from /home/lool/jhbuild-gnome-2.18/checkout/evolution/mail/em-event.h:29, from /home/lool/jhbuild-gnome-2.18/checkout/evolution/plugins/new-mail-notify/new-mail-notify.c:31: /home/lool/jhbuild-gnome-2.18/checkout/evolution/composer/e-msg-composer.h:35:20: error: Editor.h: No such file or directory make[4]: *** [new-mail-notify.lo] Erreur 1 This is the same problem in the new-mail-notify plugin which this second patch fixes.
I not a gnome developer, but I suppose the real fix would be to fix Bug 400241?
I don't think so, this seems like a problem with the build of evolution alone, which can be fixed as shown.
Patches looks good. Commit to both Trunk and stable branch.
Committed to head.
Thanks for the commit! Closing.