[libvirt-users] trouble compile libvirt on slackware 13.37
Eric Blake
eblake at redhat.com
Mon Feb 6 20:47:57 UTC 2012
[when reporting an unrelated issue, please start a new thread rather
than replying to an unrelated post]
On 02/06/2012 07:06 AM, Umberto Carrara wrote:
> Hi,
> I'm trying to compile libvirt on slackware 13.37 with kernel 3.0
>
>
> I think the problem is that i used wrong rpc lib
>
> i have used portablexdr-4.9.1 e libtirpc-0.2.2
>
>
> this is the error :
>
>
> CCLD libvirt_driver_test.la
> CC libvirt_driver_remote_la-remote_driver.lo
> In file included from ../src/rpc/virnetprotocol.h:9:0,
> from ../src/rpc/virnetmessage.h:24,
> from ../src/rpc/virnetclient.h:27,
> from remote/remote_driver.c:31:
> /usr/include/tirpc/rpc/rpc.h:84:12: warning: redundant redeclaration of
> 'bindresvport' [-Wredundant-decls]
> /usr/include/netinet/in.h:440:12: note: previous declaration of 'bindresvport'
> was here
That's a bug in your rpc.h header, and not in libvirt proper. Slackware
is not the only platform with this problem; compiling libvirt on cygwin
hits the same issue.
The message is only a warning, so you may safely ignore it.
> CC libvirt_driver_remote_la-remote_protocol.lo
> In file included from ./remote/remote_protocol.h:9:0,
> from ./remote/remote_protocol.c:7:
> /usr/include/tirpc/rpc/rpc.h:84:12: warning: redundant redeclaration of
> 'bindresvport' [-Wredundant-decls]
> /usr/include/netinet/in.h:440:12: note: previous declaration of 'bindresvport'
> was here
> ./remote/remote_protocol.c: In function 'xdr_remote_vcpu_info':
> ./remote/remote_protocol.c:256:10: warning: implicit declaration of function
> 'xdr_uint64_t' [-Wimplicit-function-declaration]
That's a bit tougher. I thought we had code in place to try to
guarantee that we could find a 64-bit unsigned converter across the
various flavors of RPC, but apparently we aren't configuring it
correctly. Can you look in your /usr/include/rpc/xdr.h, and see what
functions might be available? For example, other known spellings have
been xdr_u_hyper, xdr_u_quad_t, or xdr_u_int64_t; if we can determine
what name to check for in configure.ac (we're currently checking for
xdr_u_int64_t), then we can patch src/remote/remote_protocol.x to honor
that alternate spelling.
--
Eric Blake eblake at 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: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120206/7b7f4c78/attachment.sig>
More information about the libvirt-users
mailing list