Jim Meyering wrote:
"Richard W.M. Jones" <rjones(a)redhat.com> wrote:
> Updated patch attached. Instructions are the same as before, except
> that I've switched over to a slightly more reliable XDR implementation
> which you can download here:
>
>
http://www.annexia.org/tmp/xdr-4.0-mingw2-rwmj1.tar.gz
>
> Status: everything compiles. Final link fails because of some problem
> with the binary GnuTLS library which I got yesterday.
Nice.
+1 with one suggestion:
Thanks, I've made the suggested change.
Once I fixed the linking problem, I've got down to the final few link
errors due to some symbols not getting included/exported in the xdr
library. I'll fix tomorrow morning. Nothing serious, so looks like
virsh.exe is very close to working, and we'll hopefully have a native
libvirt.dll/libvirtmod.dll which can be imported into Win32 Python.
Rich.
--
Emerging Technologies, Red Hat -
http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x420): undefined
reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x4eb): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x50d): undefined
reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x6c4): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x7d2): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x8ff): undefined
reference to `IXDR_PUT_INT32'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x914): undefined
reference to `IXDR_PUT_INT32'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x929): undefined
reference to `IXDR_PUT_INT32'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x93e): undefined
reference to `IXDR_PUT_INT32'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x953): undefined
reference to `IXDR_PUT_INT32'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x968): more
undefined references to `IXDR_PUT_INT32' follow
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x9d1): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xafa): undefined
reference to `ntohl'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xb13): undefined
reference to `ntohl'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xb2c): undefined
reference to `ntohl'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xb45): undefined
reference to `ntohl'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xb5e): undefined
reference to `ntohl'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xb73): more
undefined references to `ntohl' follow
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xbd6): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xf0b): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xf30): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xf52): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xf74): undefined
reference to `xdr_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0xf96): more
undefined references to `xdr_quad_t' follow
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x1554):
undefined reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x15a7):
undefined reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x15fa):
undefined reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x1681):
undefined reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x16a3):
undefined reference to `xdr_u_quad_t'
./.libs/libvirt.a(libvirt_la-remote_protocol.o):remote_protocol.c:(.text+0x16e7): more
undefined references to `xdr_u_quad_t' follow
z:/d/xdr-4.0-mingw2/librpc.a(xdr_stdio.o):xdr_stdio.c:(.text+0x80): undefined reference to
`ntohl'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_stdio.o):xdr_stdio.c:(.text+0xa4): undefined reference to
`htonl'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_mem.o):xdr_mem.c:(.text+0x5f): undefined reference to
`ntohl'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_mem.o):xdr_mem.c:(.text+0xbf): undefined reference to
`htonl'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_mem.o):xdr_mem.c:(.text+0x124): undefined reference to
`bcopy'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_mem.o):xdr_mem.c:(.text+0x186): undefined reference to
`bcopy'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_array.o):xdr_array.c:(.text+0xf7): undefined reference to
`bzero'
z:/d/xdr-4.0-mingw2/librpc.a(xdr_reference.o):xdr_reference.c:(.text+0x95): undefined
reference to `bzero'
collect2: ld returned 1 exit status