[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] libvirt 'xdr_u_int64_t' undeclared error

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

Attachment: signature.asc
Description: OpenPGP digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]