[libvirt] [PATCH] Fix test case qemuagenttest compilation.

Daniel P. Berrange berrange at redhat.com
Thu Aug 1 08:01:24 UTC 2013


On Wed, Jul 31, 2013 at 11:50:18PM -0400, Jincheng Miao wrote:
> On 08/01/2013 05:48 AM, Eric Blake wrote:
> >> When compiling qemuagenttest, a link error occurs like:
> >> ./.libs/libqemumonitortestutils.a(qemumonitortestutils.o): In function `qemuMonitorTestFree':
> >> libvirt/tests/qemumonitortestutils.c:346: undefined reference to `qemuMonitorClose'
> >> ./.libs/libqemumonitortestutils.a(qemumonitortestutils.o): In function `qemuMonitorTestNew':
> >> libvirt/tests/qemumonitortestutils.c:870: undefined reference to `qemuMonitorOpen'
> >> collect2: error: ld returned 1 exit status
> >
> > What platform was this on?  Some distros are set up to be tolerant of
> > lazy resolution, which masks issues like this (hence, I'm _not_ seeing
> > this error on Fedora).
> 
> 
> Actually I am using fedora 19 too.
> And the toolchain is:
> gcc-4.8.1-1.fc19.x86_64
> libtool-2.4.2-16.fc19.x86_64

Did you ask to disable shared libraries when you built libvirt ? That's
the only reason I can imagine why you'd see this kind of error.

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 :|




More information about the libvir-list mailing list