[libvirt] libvirt 0.8.7 msys and xdr weirdness

Eric Blake eblake at redhat.com
Fri Jan 7 23:42:57 UTC 2011


> At first I wanted to say works for me, as I had tested the 0.8.7 RC1
> successfully, but then I checked the local diff in my tree and saw
> that I had fixed a problem in portablexdr that I hadn't converted in a
> proper patch yet.
> 
> The problem was that libvirt's configure script recently started to
> check explicitly for rpc/rpc.h. This header just contains this three
> lines
> 
> #include "config.h"

That's a bug in portablexdr.  No public header should _EVER_ include a
private header, especially not "config.h".

> #include <rpc/types.h>
> #include <rpc/xdr.h>
> 
> This is totally fine when included in libvirt, but in the configure
> conftest code the include for config.h fails making the whole check
> for portablexdr fail. That's what you're seeing in this line from
> configure
> 
> checking for xdrmem_create in -lportablexdr... no

Meanwhile, should libvirt work around the problem by checking instead
for rpc/types.h and rpc/xdr.h, or does rpc/rpc.h provide something extra
on other platforms where we cannot solve things by just going for the
constituent headers?  Or just wait for the fixed portablexdr to
percolate to anyone interested in building libvirt?

> 
> I've fixed this now and pushed a patch for this to the github repo.

I'm assuming you meant the portablexdr github repo?

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110107/8dca194a/attachment-0001.sig>


More information about the libvir-list mailing list