hi DB,
in my fc19 build log, I see ../src/.libs/libvirt.so, maybe it tells that no disable shared
libraries.
----- Original Message -----
From: "Jincheng Miao" <jmiao(a)redhat.com>
To: "Daniel P. Berrange" <berrange(a)redhat.com>
Cc: libvir-list(a)redhat.com
Sent: Thursday, August 1, 2013 4:08:49 PM
Subject: Re: [libvirt] [PATCH] Fix test case qemuagenttest compilation.
Hi DB,
I do not disable shared libs explicit in my memory, I think that is all default.
My fc19 computer is in my home. So I will check it when I get home as soon as possible.
----- Original Message -----
From: "Daniel P. Berrange" <berrange(a)redhat.com>
To: "Jincheng Miao" <jmiao(a)redhat.com>
Cc: "Eric Blake" <eblake(a)redhat.com>, libvir-list(a)redhat.com
Sent: Thursday, August 1, 2013 4:01:24 PM
Subject: Re: [libvirt] [PATCH] Fix test case qemuagenttest compilation.
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 :|
--
libvir-list mailing list
libvir-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list