After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 414195 - Fails to build when srcdir != builddir
Fails to build when srcdir != builddir
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.10.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Loïc Minier
Evolution QA team
Depends on:
Blocks: 414139
 
 
Reported: 2007-03-03 11:40 UTC by Loïc Minier
Modified: 2013-09-13 00:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add missing -I flag to locate Editor.h when building the bbdb plugin out of tree (352 bytes, patch)
2007-03-03 11:40 UTC, Loïc Minier
accepted-commit_now Details | Review
Add missing -I flag to locate Editor.h when building the new-mail-notify plugin out of tree (608 bytes, patch)
2007-03-03 11:56 UTC, Loïc Minier
accepted-commit_now Details | Review

Description Loïc Minier 2007-03-03 11:40:04 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,
Comment 1 Loïc Minier 2007-03-03 11:40:41 UTC
Created attachment 83805 [details] [review]
Add missing -I flag to locate Editor.h when building the bbdb plugin out of tree
Comment 2 Loïc Minier 2007-03-03 11:56:39 UTC
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.
Comment 3 Thorsten Leemhuis 2007-03-11 12:48:00 UTC
I not a gnome developer, but I suppose the real fix would be to fix Bug 400241?
Comment 4 Loïc Minier 2007-03-11 13:00:19 UTC
I don't think so, this seems like a problem with the build of evolution alone, which can be fixed as shown.
Comment 5 Sankar P 2007-05-11 06:15:47 UTC
Patches looks good. Commit to both Trunk and stable branch.
Comment 6 Srinivasa Ragavan 2007-05-14 04:12:52 UTC
Committed to head.
Comment 7 Loïc Minier 2007-05-22 13:15:11 UTC
Thanks for the commit!  Closing.