Red Hat Bugzilla – Bug 126799
Header file dbus-arch-deps.h is installed in weird location
Last modified: 2016-10-24 09:29:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Gecko/20040518 Firefox/0.8 StumbleUpon/1.906
Description of problem:
The dbus.h file includes all the other dbus header files including one
called dbus-arch-deps.h. That file is installed in
/usr/lib/dbus-1.0/include/dbus instead of /usr/include/dbus-1.0/dbus.
That seems to be a mistake.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Try to #include <dbus.h> with only -I/usr/include/dbus-1.0 on your
Actual Results: header fiel dbus-arch-deps.h isn't found
Expected Results: It should compile.
Adding -I/usr/lib/dbus-1.0/include will work around the problem.
You should be using pkg-config to get include paths. For example:
pkg-config --libs --cflags dbus-1
This correctly puts both -I/usr/include/dbus-1.0 and
-I/usr/lib/dbus-1.0/include in your argument list.
As for the location of header files I suggest filing a bug upstream or
asking why about this on the dbus mailing list.