GNOME Bugzilla – Bug 414266
Fails to build when srcdir != builddir
Last modified: 2008-09-01 18:42:18 UTC
Hi, When building ekiga out of tree it fails with: Making all in gmcontacts make[4]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/lib/gmcontacts » /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts -DG_LOG_DOMAIN=\"Ekiga\" -DSHARE_DIR=\"/home/lool/jhbuild-gnome-2.18/prefix/share/ekiga\" -I../gmconf/ -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptlib -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptclib -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/opal -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAS_SDL -DPTRACING -DNDEBUG -Wall -Os -g -fno-exceptions -felide-constructors -D_REENTRANT -g -O2 -MT gmcontacts-remote.lo -MD -MP -MF .deps/gmcontacts-remote.Tpo -c -o gmcontacts-remote.lo /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp g++ -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts -DG_LOG_DOMAIN=\"Ekiga\" -DSHARE_DIR=\"/home/lool/jhbuild-gnome-2.18/prefix/share/ekiga\" -I../gmconf/ -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptlib -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptclib -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/opal -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAS_SDL -DPTRACING -DNDEBUG -Wall -Os -g -fno-exceptions -felide-constructors -D_REENTRANT -g -O2 -MT gmcontacts-remote.lo -MD -MP -MF .deps/gmcontacts-remote.Tpo -c /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp -fPIC -DPIC -o .libs/gmcontacts-remote.o /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp:47:20: error: gmconf.h: No such file or directory /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp: In function 'gboolean gnomemeeting_remote_addressbook_add(GmAddressbook*)': /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp:122: error: 'gm_conf_get_string_list' was not declared in this scope /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts/gmcontacts-remote.cpp:132: error: 'gm_conf_set_string_list' was not declared in this scope ... This is due to the use of "-I../gmconf" as include specifier, but this will resolve to the buildir when srcdir != builddir, but gmconf.h is below srcdir, not builddir. I'll attach a patch which uses $(top_srcdir) to compute the -I flag. Bye,
Created attachment 83819 [details] [review] Include gmconf/ via $(srcdir)
Created attachment 83821 [details] [review] Include gmconf/ via $(srcdir) (take 2) The build subsequently fails with: make[5]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/lib/gui » /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui -DDATA_DIR=\""/home/lool/jhbuild-gnome-2.18/prefix/share"\" -DG_LOG_DOMAIN=\"Ekiga\" -DSHARE_DIR=\"/home/lool/jhbuild-gnome-2.18/prefix/share/ekiga\" -I../gmconf -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -Os -MT gmconfwidgets.lo -MD -MP -MF .deps/gmconfwidgets.Tpo -c -o gmconfwidgets.lo /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.c gcc -DHAVE_CONFIG_H -I. -I../.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui -DDATA_DIR=\"/home/lool/jhbuild-gnome-2.18/prefix/share\" -DG_LOG_DOMAIN=\"Ekiga\" -DSHARE_DIR=\"/home/lool/jhbuild-gnome-2.18/prefix/share/ekiga\" -I../gmconf -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -Os -MT gmconfwidgets.lo -MD -MP -MF .deps/gmconfwidgets.Tpo -c /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.c -fPIC -DPIC -o .libs/gmconfwidgets.o In file included from /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.c:38: /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.h:52:20: error: gmconf.h: No such file or directory In file included from /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.c:38: /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.h:88: error: expected declaration specifiers or '...' before 'GmConfEntry' /home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui/gmconfwidgets.h:111: error: expected declaration specifiers or '...' before 'GmConfEntry' This is the same problem in a different dir which this second patch fixes as well.
Created attachment 83822 [details] [review] Fix relative include in accounts.cpp The build subsequently fails with: make[2]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/src » make all-am make[3]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/src » g++ -DHAVE_CONFIG_H -I. -I.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src -Iclients/ -Icomponents/ -Idevices/ -Iendpoints/ -Igui/ -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmconf -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/xdap -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptlib -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptclib -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/opal -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAS_SDL -DPTRACING -DNDEBUG -Wall -Os -g -fno-exceptions -felide-constructors -D_REENTRANT -DDATA_DIR=\""/home/lool/jhbuild-gnome-2.18/prefix/share"\" -DSCHEMA_AGE=60 -g -O2 -MT accounts.o -MD -MP -MF .deps/accounts.Tpo -c -o accounts.o `test -f 'gui/accounts.cpp' || echo '/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/'`gui/accounts.cpp /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:39:26: error: ../../config.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:48:21: error: manager.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:49:17: error: sip.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:50:18: error: h323.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:51:19: error: ekiga.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp: In function ‘void account_toggled_cb(GtkCellRendererToggle*, gchar*, void*)’: This is due to the include being a relative path to the source file but not to Makefile.am, which the attached patch fixes.
Created attachment 83823 [details] [review] Include endpoints/ via $(srcdir) The build subsequently fails with: make[2]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/src » make all-am make[3]: entrant dans le répertoire « /home/lool/jhbuild-gnome-2.18/build/ekiga/src » g++ -DHAVE_CONFIG_H -I. -I.. -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src -Iclients/ -Icomponents/ -Idevices/ -Iendpoints/ -Igui/ -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmconf -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gmcontacts -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/gui -I/home/lool/jhbuild-gnome-2.18/checkout/ekiga/lib/xdap -pthread -DORBIT2=1 -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/pango-1.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 -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/libgnome-2.0 -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/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/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/usr/include/freetype2 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libxml2 -I/usr/include/libpng12 -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/libbonobo-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/libgnome-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/orbit-2.0 -I/home/lool/jhbuild-gnome-2.18/prefix/include/bonobo-activation-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/libxml2 -D_REENTRANT -I/home/lool/jhbuild-gnome-2.18/prefix/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 -DHAS_AVAHI -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptlib -I/home/lool/jhbuild-gnome-2.18/prefix/include/ptclib -I/home/lool/jhbuild-gnome-2.18/prefix/include -I/home/lool/jhbuild-gnome-2.18/prefix/include/opal -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DHAS_SDL -DPTRACING -DNDEBUG -Wall -Os -g -fno-exceptions -felide-constructors -D_REENTRANT -DDATA_DIR=\""/home/lool/jhbuild-gnome-2.18/prefix/share"\" -DSCHEMA_AGE=60 -g -O2 -MT accounts.o -MD -MP -MF .deps/accounts.Tpo -c -o accounts.o `test -f 'gui/accounts.cpp' || echo '/home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/'`gui/accounts.cpp /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:48:21: error: manager.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:49:17: error: sip.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:50:18: error: h323.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp:51:19: error: ekiga.h: Aucun fichier ou répertoire de ce type /home/lool/jhbuild-gnome-2.18/checkout/ekiga/src/gui/accounts.cpp: In function ‘void account_toggled_cb(GtkCellRendererToggle*, gchar*, void*)’: This is due to an include path being unspecified and hence relative to builddir instead of srcdir; the attached patch fixes this.
Created attachment 83824 [details] [review] Fix relative config.h includes The ../../config.h and -I problems are repeated a couple of times, so here's a cumulative patch for the ../../config.h -> ../config.h move. I think you shouldn't keep a config.h in SVN.
Created attachment 83825 [details] [review] Fix a bunch of includes to be relative to srcdir The same goes for other instances of -I flags, cumulative patch for these failures attached.
Created attachment 83826 [details] [review] Fix relative config.h includes (take 2) Final bunch of config.h include fixes.
Created attachment 83827 [details] [review] Fix a bunch of includes to be relative to srcdir (take 2) Final bunch of -I fixes. With these patches, ekiga now builds with srcdir != builddir for me.
Hmmmm... don't we have *two* config.h ?
Right; since the includes were of the form ../../config.h, these could only be aimed at including the top-level one, but since the build happens from src/Makefile.am and not src/*/Makefile.am, the ../.. seems incorrect. It seems terribly risky to have two config.h if you ask me.
Well, it's not risky unless someone tries to play with include paths ;-)
Well, your call. If you change your mind on having two config.h files, we can discuss renaming of the autotools config.h file (the AM_CONFIG_HEADER()'ed one) in a new bug; but this is orthogonal to fixing the -I flags.
Eh... it's true another name for this file would be nice. It's a good occasion to get rid of this! autotools-config.h ?
Loïc, against which branch is that patch? HEAD? J.
It was against EKIGA_2_0_5 back then.
Should I make it a gnome-love bug? That looks so stupid to be stuck this long for such a thing :-/
What's the difference between the two patches, by the way?
Hmmm... months went by, we have changed quite a few things... assigning to myself, but perhaps this bug is already dead.
Uh... if it's assigned but not to myself, I can't see it :-( This time really assigning to myself... don't know when I'll have the time to look at it though.
I worked on it : I have problems with the dbus service files. I should find another project with the same problem and see how they do.
I hadn't even look at the patches : they bitrotted since long ; sorry :-(