[libvirt] [PATCH] virnetdevbandwidthtest: Link with libxml2
Christophe Fergeau
cfergeau at redhat.com
Mon Feb 3 17:10:58 UTC 2014
ACK
Christophe
On Mon, Feb 03, 2014 at 05:59:37PM +0100, Michal Privoznik wrote:
> I've received a notice over IRC that on some systems, the
> virnetdevbandwidthtest is not linked with libxml:
>
> /usr/bin/ld: virnetdevbandwidthtest.o: undefined reference to symbol 'xmlStrEqual@@LIBXML2_2.4.30'
> /usr/lib/x86_64-linux-gnu/libxml2.so.2: error adding symbols: DSO missing from command line
>
> Trivial way avoiding this is to add LIBXML_LIBS to
> virnetdevbandwidthtest_LDADD.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> tests/Makefile.am | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index cfc0905..91c385e 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -658,7 +658,7 @@ commandhelper_LDFLAGS = -static
>
> virnetdevbandwidthtest_SOURCES = \
> virnetdevbandwidthtest.c testutils.h testutils.c
> -virnetdevbandwidthtest_LDADD = $(LDADDS)
> +virnetdevbandwidthtest_LDADD = $(LDADDS) $(LIBXML_LIBS)
>
> if WITH_LIBVIRTD
> libvirtdconftest_SOURCES = \
> --
> 1.8.5.2
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140203/a96170a3/attachment-0001.sig>
More information about the libvir-list
mailing list