[libvirt] libvirt 'xdr_u_int64_t' undeclared error

appzer0 appzer0 at free.fr
Fri May 3 14:50:08 UTC 2013


Le 03/05/2013 14:26, Eric Blake a écrit :
> 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?
Thanks for taking a look at my problem.

eglibc is 2.14.1 with RPC obsolete headers installed
libtirpc is 0.2.3


> ---
> + 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.
The system is not that exotic, just a x86_64 eglibc-based toolchain with 
32-bits capabilities ("multilib capable"), i686.
>
>>    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?
$ 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 *);

Take a look at my build scripts here to exactly know what is installed. 
I can show you the packages' installed files list if you need it.

eglibc : see line 24 for the headers install step 
http://git.tuxfamily.org/0linux/0linux-native.git?p=0linux/0linux-native.git;a=blob;f=base/eglibc/eglibc.recette
libtirpc : 
http://git.tuxfamily.org/0linux/0linux-native.git?p=0linux/0linux-native.git;a=blob;f=base/libtirpc/libtirpc.recette

Thanks!


appzer0




More information about the libvir-list mailing list