]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix linker errors in proxy
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 31 Mar 2010 20:29:42 +0000 (22:29 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 31 Mar 2010 21:21:34 +0000 (23:21 +0200)
domain_conf.c:494: undefined reference to 'virNWFilterHashTableFree'
domain_conf.c:5107: undefined reference to 'virNWFilterFormatParamAttributes'

Add missing source to the proxy and disable XML parsing code in
nwfilter_params.c for a proxy build.

proxy/Makefile.am
src/conf/nwfilter_params.c

index aef11caa39520334900a8e058255434c48282d17..9ea91d8f0b87f4c77864a74d69ba514dff243019 100644 (file)
@@ -15,6 +15,7 @@ libexec_PROGRAMS = libvirt_proxy
 
 libvirt_proxy_SOURCES = libvirt_proxy.c \
             @top_srcdir@/src/util/buf.c \
+            @top_srcdir@/src/util/hash.c \
            @top_srcdir@/src/util/logging.c \
             @top_srcdir@/src/util/memory.c \
             @top_srcdir@/src/util/network.c \
@@ -26,6 +27,7 @@ libvirt_proxy_SOURCES = libvirt_proxy.c \
             @top_srcdir@/src/conf/storage_encryption_conf.c \
             @top_srcdir@/src/conf/domain_conf.c \
             @top_srcdir@/src/conf/cpu_conf.c \
+            @top_srcdir@/src/conf/nwfilter_params.c \
             @top_srcdir@/src/xen/xend_internal.c \
            @top_srcdir@/src/xen/xen_hypervisor.c \
            @top_srcdir@/src/xen/sexpr.c  \
index 38a51c9603fb346d1a879298f429fb89707f0bff..286c5ef1bfe5dfa7fd3554b1c5b10c82106f043a 100644 (file)
@@ -214,6 +214,7 @@ err_exit:
 }
 
 
+#ifndef PROXY
 virNWFilterHashTablePtr
 virNWFilterParseParamAttributes(xmlNodePtr cur)
 {
@@ -254,6 +255,7 @@ skip_entry:
     }
     return table;
 }
+#endif
 
 
 struct formatterParam {