On Mon, Mar 26, 2012 at 11:45:19AM +0200, Alban Browaeys wrote:
link conn_test againt in tree libvirt-gconfig
Description of problem:
CCLD conn-test
../libvirt-gobject/.libs/libvirt-gobject-1.0.so: undefined reference to
`gvir_config_domain_interface_get_ifname(a)LIBVIRT_GCONFIG_0.0.4'
Attach patch add ../libvirt-gconfig/libvirt-gconfig-1.0.la \
to the conn_test_LDADD to fix this issue.
>From b62413c4b888b140ad6d7214d2163ce06f57ff19 Mon Sep 17 00:00:00 2001
From: Alban Browaeys <prahal(a)yahoo.com>
Date: Tue, 6 Mar 2012 20:55:14 +0100
Subject: [PATCH] examples: test not linked against in tree libvirt-gconfig
CCLD conn-test
../libvirt-gobject/.libs/libvirt-gobject-1.0.so: undefined reference to
`gvir_config_domain_interface_get_ifname(a)LIBVIRT_GCONFIG_0.0.4'
---
examples/Makefile.am | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/examples/Makefile.am b/examples/Makefile.am
index b77076d..09843e5 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -24,6 +24,7 @@ conn_test_CFLAGS = \
conn_test_SOURCES = \
conn-test.c
conn_test_LDADD = \
+ ../libvirt-gconfig/libvirt-gconfig-1.0.la \
../libvirt-gobject/libvirt-gobject-1.0.la \
$(LIBVIRT_LIBS) \
$(GLIB2_LIBS) \
This should not be required, since libvirt-gconfig-1.0.la is a
dependancy of libvirt-gobject-1.0.la and libtool already knows
that.
$ grep dependency libvirt-gobject-1.0.la
# Linker flags that can not go in dependency_libs.
dependency_libs=' -lgio-2.0 -lgmodule-2.0
/home/berrange/src/virt/libvirt-glib/libvirt-glib/libvirt-glib-1.0.la -lvirt -ldl
/home/berrange/src/virt/libvirt-glib/libvirt-gconfig/libvirt-gconfig-1.0.la -lgobject-2.0
-lgthread-2.0 -lrt -lglib-2.0 -lxml2'
So I suspect there must be some other kind of problem in your build
env.
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|