[PATCH 8/8] build: fix driver module build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* src/libvirt_xenxs.syms: New file.
* src/Makefile.am (USED_SYM_FILES, EXTRA_DIST): Add new file.
* src/libvirt_private.syms (domain_conf.h): Add missing exports.
* tests/Makefile.am (xml2sexprtest_LDADD, sexpr2xmltest_LDADD)
(xmconfigtest_LDADD, xencapstest_LDADD): Add missing library.
(LDADDS): Globally include libvirt_util.la as needed.  Don't
include WARN_CFLAGS; INCLUDES already does that.
---

Original post:
https://www.redhat.com/archives/libvir-list/2011-March/msg01041.html

Definitely needs to interact with proposed libxenlight use of xenxs:
https://www.redhat.com/archives/libvir-list/2011-March/msg01141.html

 src/Makefile.am          |    9 +++++++--
 src/libvirt_private.syms |   20 ++++++++++++++++++++
 src/libvirt_xenxs.syms   |   22 ++++++++++++++++++++++
 tests/Makefile.am        |   30 +++++++++++++++++-------------
 4 files changed, 66 insertions(+), 15 deletions(-)
 create mode 100644 src/libvirt_xenxs.syms

diff --git a/src/Makefile.am b/src/Makefile.am
index 4f2f08f..ae66887 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1119,6 +1119,10 @@ if WITH_VMX
 USED_SYM_FILES += libvirt_vmx.syms
 endif

+if WITH_XEN
+USED_SYM_FILES += libvirt_xenxs.syms
+endif
+
 EXTRA_DIST += \
   libvirt_public.syms		\
   libvirt_private.syms		\
@@ -1127,8 +1131,9 @@ EXTRA_DIST += \
   libvirt_linux.syms		\
   libvirt_macvtap.syms		\
   libvirt_daemon.syms		\
-  libvirt_nwfilter.syms	\
-  libvirt_vmx.syms
+  libvirt_nwfilter.syms		\
+  libvirt_vmx.syms		\
+  libvirt_xenxs.syms

 BUILT_SOURCES += libvirt.syms libvirt.def libvirt_qemu.def

diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 11fd5c7..5f58970 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -312,6 +312,8 @@ virDomainSoundModelTypeFromString;
 virDomainSoundModelTypeToString;
 virDomainStateTypeFromString;
 virDomainStateTypeToString;
+virDomainSysinfoTypeFromString;
+virDomainSysinfoTypeToString;
 virDomainTimerModeTypeFromString;
 virDomainTimerModeTypeToString;
 virDomainTimerNameTypeFromString;
@@ -758,6 +760,24 @@ virSecurityManagerSetSocketLabel;
 virSecurityManagerVerify;


+# sexpr.h
+sexpr2string;
+sexpr_append;
+sexpr_cons;
+sexpr_float;
+sexpr_fmt_node;
+sexpr_free;
+sexpr_has;
+sexpr_int;
+sexpr_lookup;
+sexpr_nil;
+sexpr_node;
+sexpr_node_copy;
+sexpr_string;
+sexpr_u64;
+string2sexpr;
+
+
 # storage_conf.h
 virStoragePartedFsTypeTypeToString;
 virStoragePoolDefFormat;
diff --git a/src/libvirt_xenxs.syms b/src/libvirt_xenxs.syms
new file mode 100644
index 0000000..2f7caf4
--- /dev/null
+++ b/src/libvirt_xenxs.syms
@@ -0,0 +1,22 @@
+#
+# These symbols are currently dependent upon WITH_XEN (configure --with-xen),
+# and will soon also impact WITH_LIBXL (--with-libxl).
+#
+
+# xen_sxpr.h
+xenFormatSxpr;
+xenFormatSxprChr;
+xenFormatSxprDisk;
+xenFormatSxprNet;
+xenFormatSxprOnePCI;
+xenFormatSxprSound;
+xenGetDomIdFromSxpr;
+xenGetDomIdFromSxprString;
+xenParseSxpr;
+xenParseSxprChar;
+xenParseSxprSound;
+xenParseSxprString;
+
+# xen_xm.h
+xenFormatXM;
+xenParseXM;
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 5896442..89d879c 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -14,8 +14,8 @@ INCLUDES = \
 	$(SASL_CFLAGS) \
 	$(SELINUX_CFLAGS) \
 	$(APPARMOR_CFLAGS) \
-         $(COVERAGE_CFLAGS) \
-         $(WARN_CFLAGS)
+	$(COVERAGE_CFLAGS) \
+	$(WARN_CFLAGS)

 if WITH_DRIVER_MODULES
 INCLUDES += \
@@ -25,15 +25,15 @@ endif
 LDADDS = \
 	$(STATIC_BINARIES) \
 	$(LIBXML_LIBS) \
-        $(GNUTLS_LIBS) \
-        $(SASL_LIBS) \
-        $(SELINUX_LIBS) \
-        $(APPARMOR_LIBS) \
-        $(WARN_CFLAGS) \
+	$(GNUTLS_LIBS) \
+	$(SASL_LIBS) \
+	$(SELINUX_LIBS) \
+	$(APPARMOR_LIBS) \
 	../src/libvirt_test.la \
+	../src/libvirt_util.la \
 	../gnulib/lib/libgnu.la \
 	$(LIBSOCKET) \
-        $(COVERAGE_LDFLAGS)
+	$(COVERAGE_LDFLAGS)

 EXTRA_DIST =		\
 	capabilityschemadata \
@@ -222,27 +222,31 @@ valgrind:
 sockettest_SOURCES = \
 	sockettest.c \
 	testutils.c testutils.h
-sockettest_LDADD = ../src/libvirt_util.la $(LDADDS)
+sockettest_LDADD = $(LDADDS)

 if WITH_XEN
 xml2sexprtest_SOURCES = \
 	xml2sexprtest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-xml2sexprtest_LDADD = ../src/libvirt_driver_xen.la $(LDADDS)
+xml2sexprtest_LDADD = ../src/libvirt_xenxs.la \
+	../src/libvirt_driver_xen.la $(LDADDS)

 sexpr2xmltest_SOURCES = \
 	sexpr2xmltest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-sexpr2xmltest_LDADD = ../src/libvirt_driver_xen.la $(LDADDS)
+sexpr2xmltest_LDADD = ../src/libvirt_xenxs.la \
+	../src/libvirt_driver_xen.la $(LDADDS)

 xmconfigtest_SOURCES = \
 	xmconfigtest.c testutilsxen.c testutilsxen.h \
 	testutils.c testutils.h
-xmconfigtest_LDADD = ../src/libvirt_driver_xen.la $(LDADDS)
+xmconfigtest_LDADD = ../src/libvirt_xenxs.la \
+	../src/libvirt_driver_xen.la $(LDADDS)

 xencapstest_SOURCES = \
 	xencapstest.c testutils.h testutils.c
-xencapstest_LDADD = ../src/libvirt_driver_xen.la $(LDADDS)
+xencapstest_LDADD = ../src/libvirt_xenxs.la \
+	../src/libvirt_driver_xen.la $(LDADDS)

 reconnect_SOURCES = \
 	reconnect.c
-- 
1.7.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]