From: Prasad Joshi <prasadjoshi.linux(a)gmail.com>
When the libvirt is configured with numactl, the virt-aa-helper
compilation fails with following errors
CCLD virt-aa-helper
libvirt_util.a(...): In function `virNumaSetupMemoryPolicy':
virnuma.c:109: undefined reference to `numa_available'
virnuma.c:115: undefined reference to `numa_max_node'
libvirt_util.a(libvirt_util_la-virnuma.o): .. `nodemask_zero_compat':
/usr/include/numa.h:80: undefined reference to `numa_bitmask_clearall'
/libvirt_util.a(libvirt_util_la-virnuma.o): `virNumaSetupMemoryPolicy':
virnuma.c:136: undefined reference to `numa_set_bind_policy'
libvirt_util.a(libvirt_util_la-virnuma.o): `numa_set_membind_compat':
/usr/include/numa.h:360: undefined reference to `numa_set_membind'
libvirt_util.a(libvirt_util_la-virnuma.o): `virNumaSetupMemoryPolicy':
virnuma.c:138: undefined reference to `numa_set_bind_policy'
libvirt_util.a(): `numa_set_interleave_mask_compat':
/usr/include/numa.h:330: undefined reference to `numa_set_interleave_mask'
libvirt_util.a(libvirt_util_la-virnuma.o): `virNumaSetupMemoryPolicy':
virnuma.c:155: undefined reference to `numa_set_bind_policy'
virnuma.c:156: undefined reference to `numa_set_preferred'
collect2: error: ld returned 1 exit status
make[3]: *** [virt-aa-helper] Error 1
make[3]: Leaving directory `/home/prasad/KVM/libvirt/src'
The patch fixes this problem by adding numa library to the list of
libraries to be linked with libvirt_util
Signed-off-by: Prasad Joshi <prasadjoshi.linux(a)gmail.com>
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 21f8882..5e8e062 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -772,7 +772,7 @@ libvirt_util_la_CFLAGS = $(CAPNG_CFLAGS) $(YAJL_CFLAGS)
$(LIBNL_CFLAGS) \
libvirt_util_la_LIBADD = $(CAPNG_LIBS) $(YAJL_LIBS) $(LIBNL_LIBS) \
$(THREAD_LIBS) $(AUDIT_LIBS) $(DEVMAPPER_LIBS) \
$(LIB_CLOCK_GETTIME) $(DBUS_LIBS) $(MSCOM_LIBS) $(LIBXML_LIBS) \
- $(SECDRIVER_LIBS)
+ $(SECDRIVER_LIBS) $(NUMACTL_LIBS)
noinst_LTLIBRARIES += libvirt_conf.la
--
1.7.10.4