[PATCH] Fix build with --with-driver-modules enabled

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

 



Export a bunch of missing symbols and link the remote driver to gnulib.
---
 src/Makefile.am          |    8 +++++++-
 src/libvirt_private.syms |    3 +++
 src/libvirt_xenxs.syms   |   21 +++++++++++++++++++++
 3 files changed, 31 insertions(+), 1 deletions(-)
 create mode 100644 src/libvirt_xenxs.syms

diff --git a/src/Makefile.am b/src/Makefile.am
index c3d3102..02d53ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -553,6 +553,7 @@ libvirt_driver_remote_la_CFLAGS =				\
 libvirt_driver_remote_la_LDFLAGS = $(AM_LDFLAGS)
 libvirt_driver_remote_la_LIBADD = $(GNUTLS_LIBS) $(SASL_LIBS)
 if WITH_DRIVER_MODULES
+libvirt_driver_remote_la_LIBADD += ../gnulib/lib/libgnu.la
 libvirt_driver_remote_la_LDFLAGS += -module -avoid-version
 endif
 libvirt_driver_remote_la_SOURCES = $(REMOTE_DRIVER_SOURCES)
@@ -1077,6 +1078,10 @@ if WITH_VMX
 USED_SYM_FILES += libvirt_vmx.syms
 endif
 
+if WITH_XENXS
+USED_SYM_FILES += libvirt_xenxs.syms
+endif
+
 EXTRA_DIST += \
   libvirt_public.syms		\
   libvirt_private.syms		\
@@ -1086,7 +1091,8 @@ EXTRA_DIST += \
   libvirt_macvtap.syms		\
   libvirt_daemon.syms		\
   libvirt_nwfilter.syms	\
-  libvirt_vmx.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 4cb8dda..2088f38 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -929,6 +929,7 @@ virEventRemoveHandle;
 virExec;
 virExecWithHook;
 virFileAbsPath;
+virFileBuildPath;
 virFileDeletePid;
 virFileExists;
 virFileFindMountPoint;
@@ -1017,6 +1018,8 @@ virStrerror;
 
 
 # xml.h
+virXMLParseFileHelper;
+virXMLParseHelper;
 virXMLParseStrHelper;
 virXMLPropString;
 virXPathBoolean;
diff --git a/src/libvirt_xenxs.syms b/src/libvirt_xenxs.syms
new file mode 100644
index 0000000..3d794d6
--- /dev/null
+++ b/src/libvirt_xenxs.syms
@@ -0,0 +1,21 @@
+#
+# These symbols are dependent upon --with-xen via WITH_XEN or --with-libxl via WITH_LIBXL.
+#
+
+# xen_sxpr.h
+xenFormatSxpr;
+xenFormatSxprChr;
+xenFormatSxprDisk;
+xenFormatSxprNet;
+xenFormatSxprOnePCI;
+xenFormatSxprSound;
+xenGetDomIdFromSxpr;
+xenGetDomIdFromSxprString;
+xenParseSxpr;
+xenParseSxprChar;
+xenParseSxprSound;
+xenParseSxprString;
+
+# xen_xm.h
+xenFormatXM;
+xenParseXM;
-- 
1.7.0.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]