[libvirt] [PATCH] [Build-breaker : 1.2.12] Suppress compilation without dbus headers

Prerna Saxena prerna at linux.vnet.ibm.com
Mon Jan 26 09:53:56 UTC 2015


On Monday 26 January 2015 02:47 PM, Daniel P. Berrange wrote:
> On Sun, Jan 25, 2015 at 05:56:25PM +0530, Prerna Saxena wrote:
>> Hi,
>> While testing 1.2.12 rc2 on Powerpc, Fedora 21, I hit a bunch of build failures in absence of dbus-devel :
>>
>> src/util/virsystemd.c:284:17: note: in expansion of macro 'STREQ_NULLABLE'
>>              if (STREQ_NULLABLE("org.freedesktop.DBus.Error.UnknownMethod",
>>                  ^
>> ....
>> src/util/virsystemd.c:288:17: error: implicit declaration of function 'dbus_error_free' [-Werror=implicit-function-declaration]
>>                  dbus_error_free(&error);
>>
>>
>> Found that this was because commit 318df5a05 needs Dbus libraries for compilation, and configure didnt mark "with_dbus" to be mandatory. In this case, the compilation itself failed in a much uglier
>> fashion on my system where dbus-devel was absent.
>>
>> The following patch introduces a compile error when dbus-devel is absent, so that the build itself proceeds later without cryptic errors.
>>
>> This has also been reported on the list : https://www.redhat.com/archives/libvir-list/2015-January/msg00641.html
> I've already posted a fix for this problem
>
> https://www.redhat.com/archives/libvir-list/2015-January/msg00869.html
>
>
Oh ! I had probably missed this fix on the list.
Thanks,

-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India




More information about the libvir-list mailing list