Hi xfce4 folks, when I build xfce4-session-4.13.0 from source, I get this error. `` source/xfce4-session/xfsm-global.h:30:10: fatal error: dbus/dbus.h: No such file or directory #include <dbus/dbus.h> `` I hope you can help me with this. Best David
*** Bug 14387 has been marked as a duplicate of this bug. ***
The problem is the pkg-config file of libxfce4ui-2. On Debian Sid/unstable, where xfce4-session 4.13.0 builds the D-Bus include paths are present. $ pkg-config --cflags libxfce4ui-2 -pthread -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/xfce4 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include In our distribution they are not. $ pkg-config --cflags libxfce4ui-2 -pthread -I/usr/include/xfce4/libxfce4ui-2 -I/usr/include/gtk-3.0 -I/usr/include/xfce4 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/libpng15
As Xfce4-session uses D-Bus now, it should explicitly list these dependencies and not depend on implicit inclusion. In Debian Sid/unstable the D-Bus includes come for example from atk-bridge-2.0. $ pkg-config --cflags atk-bridge-2.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
I am seeing this on Gentoo ppc64 as well. It's not using the correct include path. It looks to me like the d-bus direct depenencies were actually taken out in 91860af3a38080d45fef68ea623624ef25d7d9ec, but the #include <dbus/dbus.h> in xfce4-session/xfsm-global.h and the #include <dbus/dbus-glib.h> line in xfsm-error.c got left in accidentally. I tried commenting these two lines out and got a successful build.
Created attachment 7909 fix build failure when dbus is not in the system include path And here's a patch.
Brandon Bergren referenced this bugreport in commit 3bddf152b902d8a1e0f674b792577b2cca635c4b fix build failure when dbus is not in the system include path (Bug #14386) https://git.xfce.org/xfce/xfce4-session/commit?id=3bddf152b902d8a1e0f674b792577b2cca635c4b
Pushed to master, thanks!