Some functions inside of domain_logcontext.c call virLogManager
APIs. But that one is available only when remote driver is
enabled. Therefore, make domain_logcontext.c conditional, just
like log_manager.c is: if config.has('WITH_REMOTE').
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/842
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
'domain_cgroup.c',
'domain_driver.c',
'domain_interface.c',
- 'domain_logcontext.c',
'virclosecallbacks.c',
'virhostdev.c',
]
+if conf.has('WITH_REMOTE')
+ hypervisor_sources += [
+ 'domain_logcontext.c'
+ ]
+endif
+
stateful_driver_source_files += files(hypervisor_sources)
hypervisor_lib = static_library(
#
+# hypervisor/domain_logcontext.h
+domainLogContextGetWriteFD;
+domainLogContextMarkPosition;
+domainLogContextNew;
+domainLogContextReadFiltered;
+domainLogContextWrite;
+
# logging/log_manager.h
virLogManagerDomainAppendMessage;
virLogManagerDomainGetLogFilePosition;
virDomainInterfaceStopDevices;
virDomainInterfaceVportRemove;
-# hypervisor/domain_logcontext.h
-domainLogContextGetWriteFD;
-domainLogContextMarkPosition;
-domainLogContextNew;
-domainLogContextReadFiltered;
-domainLogContextWrite;
-
# hypervisor/virclosecallbacks.h
virCloseCallbacksDomainAdd;
virCloseCallbacksDomainAlloc;