[libvirt] libvirt 'xdr_u_int64_t' undeclared error

Eric Blake eblake at redhat.com
Fri May 3 12:26:16 UTC 2013


On 05/03/2013 01:51 AM, appzer0 wrote:
> Hello list,
> 
> 
> I don't know if I should file a bug so I'm asking here: I got problems
> building libvirt with obsolete headers from glibc + libtirpc headers.

Which versions of glibc and libtirpc?

> 
> I met the "'xdr_u_int64_t' undeclared" error as it seems XDR_CFLAGS are
> never taken into account, no matter I "export" them, tweaks CFLAGS or
> add -I/usr/include/tirpc flags.
> 
> Building on x86_64, libvirt 1.0.4 and 1.0.5 have the same behaviour here.
> 
> Header is present:
> 
> $ grep xdr_u_int64_t $(find /usr/include) 2>/dev/null
> /usr/include/tirpc/rpc/xdr.h:extern bool_t    xdr_u_int64_t(XDR *,
> u_int64_t *);
> 
> Here is the log. Please notice the empty "xdr:" line in the configure's
> summary :
> 
> ---
> + CFLAGS='-O2 -fPIC -pipe'
> + CXXFLAGS='-O2 -fPIC -pipe'
> + LDFLAGS=-I/usr/include/tirpc
> + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> --libdir=/usr/lib64 --libexecdir=/usr/lib64/libvirt --mandir=/usr/man
> --infodir=/usr/info --docdir=/usr/doc/libvirt-1.0.5
> --with-init-script=systemd --with-interface --with-storage-lvm
> --with-udev --build=x86_64-0-linux-gnu

x86_64-0-linux-gnu is an unusual target triple.

>   CC     libvirt_driver_remote_la-remote_protocol.lo
> ./remote/remote_protocol.c: In function 'xdr_remote_vcpu_info':
> ./remote/remote_protocol.c:257:10: warning: implicit declaration of
> function 'xdr_u_int64_t' [-Wimplicit-function-declaration]
> ./remote/remote_protocol.c:257:10: warning: nested extern declaration of
> 'xdr_u_int64_t' [-Wnested-externs]

If I can figure out how to reproduce this, I'd probably be in better
shape to help fix it.  Is there ANY 64-bit xdr_ conversion function in
the rpc setup your system has, or are we going to have to break down and
write our own on systems that lack a native 64-bit support?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list