http://www.annexia.org/tmp/xdr-4.0-mingw2-rwmj1.tar.gzStatus: everything compiles. Final link fails because of some problem with the binary GnuTLS library which I got yesterday.
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
? log.configure.txt ? log.make.txt ? gnulib/lib/.deps ? gnulib/lib/.libs ? gnulib/lib/Makefile ? gnulib/lib/Makefile.in ? gnulib/lib/arpa ? gnulib/lib/asnprintf.lo ? gnulib/lib/asprintf.lo ? gnulib/lib/dummy.lo ? gnulib/lib/fseeko.lo ? gnulib/lib/getaddrinfo.lo ? gnulib/lib/getdelim.lo ? gnulib/lib/getline.lo ? gnulib/lib/getpass.lo ? gnulib/lib/inet_ntop.lo ? gnulib/lib/libgnu.la ? gnulib/lib/lseek.lo ? gnulib/lib/malloc.lo ? gnulib/lib/netinet ? gnulib/lib/physmem.lo ? gnulib/lib/poll.lo ? gnulib/lib/printf-args.lo ? gnulib/lib/printf-parse.lo ? gnulib/lib/realloc.lo ? gnulib/lib/strndup.lo ? gnulib/lib/strnlen.lo ? gnulib/lib/strsep.lo ? gnulib/lib/sys ? gnulib/lib/vasnprintf.lo ? gnulib/lib/vasprintf.lo ? gnulib/tests/Makefile ? gnulib/tests/Makefile.in Index: bootstrap =================================================================== RCS file: /data/cvs/libvirt/bootstrap,v retrieving revision 1.1 diff -u -r1.1 bootstrap --- bootstrap 5 Dec 2007 21:31:07 -0000 1.1 +++ bootstrap 6 Dec 2007 19:16:00 -0000 @@ -95,6 +95,11 @@ --avoid=snprintf-tests --avoid=vasnprintf-tests --avoid=alloca-opt-tests + --avoid=vasprintf-tests + --avoid=fseeko-tests + --avoid=getdelim-tests + --avoid=getline-tests + --avoid=lseek-tests ' $gnulib_tool \ @@ -104,7 +109,9 @@ --m4-base=gnulib/m4 \ --source-base=gnulib/lib \ --tests-base=gnulib/tests \ - --import physmem getaddrinfo + --import physmem getaddrinfo \ + sys_stat vasprintf strndup \ + strsep poll gettext getpass rm -f \ .gitignore \ Index: configure.in =================================================================== RCS file: /data/cvs/libvirt/configure.in,v retrieving revision 1.111 diff -u -r1.111 configure.in --- configure.in 6 Dec 2007 16:34:48 -0000 1.111 +++ configure.in 6 Dec 2007 19:16:00 -0000 @@ -60,10 +60,10 @@ LIBVIRT_COMPILE_WARNINGS(maximum) dnl Availability of various common functions (non-fatal if missing). -AC_CHECK_FUNCS([regexec cfmakeraw]) +AC_CHECK_FUNCS([cfmakeraw regexec uname]) dnl Availability of various common headers (non-fatal if missing). -AC_CHECK_HEADERS([paths.h sys/syslimits.h]) +AC_CHECK_HEADERS(pwd.h paths.h sys/syslimits.h sys/utsname.h sys/wait.h winsock2.h) dnl Need -lrpc? (Cygwin needs this) AC_SEARCH_LIBS(xdrmem_create,rpc) Index: gnulib/lib/.cvsignore =================================================================== RCS file: /data/cvs/libvirt/gnulib/lib/.cvsignore,v retrieving revision 1.1 diff -u -r1.1 .cvsignore --- gnulib/lib/.cvsignore 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/lib/.cvsignore 6 Dec 2007 19:16:00 -0000 @@ -1,11 +1,33 @@ alloca.h +asprintf.c float.h +fseeko.c +getdelim.c +getline.c +getpass.c +getpass.h +lseek.c netinet_in.h +poll.c +poll.h +poll.in.h +realloc.c stdbool.h stdint.h stdio.h stdlib.h string.h +strndup.c +strnlen.c +strpbrk.c +strsep.c +sys_select.h +sys_select.in.h sys_socket.h +sys_stat.h +sys_stat.in.h +sys_time.h +sys_time.in.h unistd.h +vasprintf.c wchar.h Index: gnulib/lib/Makefile.am =================================================================== RCS file: /data/cvs/libvirt/gnulib/lib/Makefile.am,v retrieving revision 1.1 diff -u -r1.1 Makefile.am --- gnulib/lib/Makefile.am 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/lib/Makefile.am 6 Dec 2007 19:16:01 -0000 @@ -9,7 +9,7 @@ # the same distribution terms as the rest of that program. # # Generated by gnulib-tool. -# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --avoid=alloca-opt-tests --avoid=snprintf-tests --avoid=vasnprintf-tests --lgpl --libtool --macro-prefix=gl getaddrinfo physmem +# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --avoid=alloca-opt-tests --avoid=fseeko-tests --avoid=getdelim-tests --avoid=getline-tests --avoid=lseek-tests --avoid=snprintf-tests --avoid=vasnprintf-tests --avoid=vasprintf-tests --lgpl --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf AUTOMAKE_OPTIONS = 1.5 gnits @@ -99,6 +99,15 @@ ## end gnulib module float +## begin gnulib module fseeko + + +EXTRA_DIST += fseeko.c + +EXTRA_libgnu_la_SOURCES += fseeko.c + +## end gnulib module fseeko + ## begin gnulib module getaddrinfo @@ -108,12 +117,62 @@ ## end gnulib module getaddrinfo +## begin gnulib module getdelim + + +EXTRA_DIST += getdelim.c + +EXTRA_libgnu_la_SOURCES += getdelim.c + +## end gnulib module getdelim + +## begin gnulib module getline + + +EXTRA_DIST += getline.c + +EXTRA_libgnu_la_SOURCES += getline.c + +## end gnulib module getline + +## begin gnulib module getpass + + +EXTRA_DIST += getpass.c getpass.h + +EXTRA_libgnu_la_SOURCES += getpass.c + +## end gnulib module getpass + +## begin gnulib module gettext + +# This is for those projects which use "gettextize --intl" to put a source-code +# copy of libintl into their package. In such projects, every Makefile.am needs +# -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory. +# For the Makefile.ams in other directories it is the maintainer's +# responsibility; for the one from gnulib we do it here. +# This option has no effect when the user disables NLS (because then the intl +# directory contains no libintl.h file) or when the project does not use +# "gettextize --intl". +AM_CPPFLAGS += -I$(top_builddir)/intl + +EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath + +## end gnulib module gettext + ## begin gnulib module gettext-h libgnu_la_SOURCES += gettext.h ## end gnulib module gettext-h +## begin gnulib module havelib + + +EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath + +## end gnulib module havelib + ## begin gnulib module inet_ntop @@ -138,6 +197,15 @@ ## end gnulib module link-warning +## begin gnulib module lseek + + +EXTRA_DIST += lseek.c + +EXTRA_libgnu_la_SOURCES += lseek.c + +## end gnulib module lseek + ## begin gnulib module malloc-posix @@ -179,6 +247,34 @@ ## end gnulib module physmem +## begin gnulib module poll + +BUILT_SOURCES += $(POLL_H) + +# We need the following in order to create <poll.h> when the system +# doesn't have one. +poll.h: poll.in.h + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + cat $(srcdir)/poll.in.h; \ + } > $@-t + mv -f $@-t $@ +MOSTLYCLEANFILES += poll.h poll.h-t + +EXTRA_DIST += poll.c poll.in.h + +EXTRA_libgnu_la_SOURCES += poll.c + +## end gnulib module poll + +## begin gnulib module realloc-posix + + +EXTRA_DIST += realloc.c + +EXTRA_libgnu_la_SOURCES += realloc.c + +## end gnulib module realloc-posix + ## begin gnulib module size_max libgnu_la_SOURCES += size_max.h @@ -422,6 +518,65 @@ ## end gnulib module string +## begin gnulib module strndup + + +EXTRA_DIST += strndup.c + +EXTRA_libgnu_la_SOURCES += strndup.c + +## end gnulib module strndup + +## begin gnulib module strnlen + + +EXTRA_DIST += strnlen.c + +EXTRA_libgnu_la_SOURCES += strnlen.c + +## end gnulib module strnlen + +## begin gnulib module strpbrk + + +EXTRA_DIST += strpbrk.c + +EXTRA_libgnu_la_SOURCES += strpbrk.c + +## end gnulib module strpbrk + +## begin gnulib module strsep + + +EXTRA_DIST += strsep.c + +EXTRA_libgnu_la_SOURCES += strsep.c + +## end gnulib module strsep + +## begin gnulib module sys_select + +BUILT_SOURCES += $(SYS_SELECT_H) + +# We need the following in order to create <sys/select.h> when the system +# doesn't have one that works with the given compiler. +sys/select.h: sys_select.in.h + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ + -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ + < $(srcdir)/sys_select.in.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += sys/select.h sys/select.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_select.in.h + +## end gnulib module sys_select + ## begin gnulib module sys_socket BUILT_SOURCES += $(SYS_SOCKET_H) @@ -446,6 +601,55 @@ ## end gnulib module sys_socket +## begin gnulib module sys_stat + +BUILT_SOURCES += $(SYS_STAT_H) + +# We need the following in order to create <sys/stat.h> when the system +# has one that is incomplete. +sys/stat.h: sys_stat.in.h + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \ + -e 's|@''HAVE_IO_H''@|$(HAVE_IO_H)|g' \ + -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \ + -e 's|@''HAVE_DECL_MKDIR''@|$(HAVE_DECL_MKDIR)|g' \ + < $(srcdir)/sys_stat.in.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t +MOSTLYCLEANDIRS += sys + +EXTRA_DIST += sys_stat.in.h + +## end gnulib module sys_stat + +## begin gnulib module sys_time + +BUILT_SOURCES += $(SYS_TIME_H) + +# We need the following in order to create <sys/time.h> when the system +# doesn't have one that works with the given compiler. +sys/time.h: sys_time.in.h + @MKDIR_P@ sys + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \ + -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \ + -e 's/@''REPLACE_GETTIMEOFDAY''@/$(REPLACE_GETTIMEOFDAY)/g' \ + -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \ + < $(srcdir)/sys_time.in.h; \ + } > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += sys/time.h sys/time.h-t + +EXTRA_DIST += sys_time.in.h + +## end gnulib module sys_time + ## begin gnulib module unistd BUILT_SOURCES += unistd.h @@ -500,6 +704,15 @@ ## end gnulib module vasnprintf +## begin gnulib module vasprintf + + +EXTRA_DIST += asprintf.c vasprintf.c + +EXTRA_libgnu_la_SOURCES += asprintf.c vasprintf.c + +## end gnulib module vasprintf + ## begin gnulib module verify libgnu_la_SOURCES += verify.h Index: gnulib/m4/.cvsignore =================================================================== RCS file: gnulib/m4/.cvsignore diff -N gnulib/m4/.cvsignore --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gnulib/m4/.cvsignore 6 Dec 2007 19:16:01 -0000 @@ -0,0 +1,39 @@ +.deps +.dirstamp +poll.m4 +strndup.m4 +strnlen.m4 +strpbrk.m4 +strsep.m4 +sys_select_h.m4 +sys_stat_h.m4 +sys_time_h.m4 +vasprintf.m4 +codeset.m4 +gettext.m4 +glibc2.m4 +glibc21.m4 +iconv.m4 +intdiv0.m4 +intl.m4 +intldir.m4 +intlmacosx.m4 +intmax.m4 +inttypes-pri.m4 +lcmessage.m4 +lib-ld.m4 +lib-link.m4 +lib-prefix.m4 +lock.m4 +nls.m4 +po.m4 +printf-posix.m4 +progtest.m4 +uintmax_t.m4 +visibility.m4 +fseeko.m4 +getdelim.m4 +getline.m4 +getpass.m4 +lseek.m4 +realloc.m4 Index: gnulib/m4/gnulib-cache.m4 =================================================================== RCS file: /data/cvs/libvirt/gnulib/m4/gnulib-cache.m4,v retrieving revision 1.1 diff -u -r1.1 gnulib-cache.m4 --- gnulib/m4/gnulib-cache.m4 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/m4/gnulib-cache.m4 6 Dec 2007 19:16:01 -0000 @@ -15,12 +15,12 @@ # Specification in the form of a command-line invocation: -# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --avoid=alloca-opt-tests --avoid=snprintf-tests --avoid=vasnprintf-tests --lgpl --libtool --macro-prefix=gl getaddrinfo physmem +# gnulib-tool --import --dir=. --lib=libgnu --source-base=gnulib/lib --m4-base=gnulib/m4 --doc-base=doc --aux-dir=build-aux --with-tests --avoid=alloca-opt-tests --avoid=fseeko-tests --avoid=getdelim-tests --avoid=getline-tests --avoid=lseek-tests --avoid=snprintf-tests --avoid=vasnprintf-tests --avoid=vasprintf-tests --lgpl --libtool --macro-prefix=gl getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf # Specification in the form of a few gnulib-tool.m4 macro invocations: gl_LOCAL_DIR([]) -gl_MODULES([getaddrinfo physmem]) -gl_AVOID([alloca-opt-tests snprintf-tests vasnprintf-tests]) +gl_MODULES([getaddrinfo getpass gettext physmem poll strndup strsep sys_stat vasprintf]) +gl_AVOID([alloca-opt-tests fseeko-tests getdelim-tests getline-tests lseek-tests snprintf-tests vasnprintf-tests vasprintf-tests]) gl_SOURCE_BASE([gnulib/lib]) gl_M4_BASE([gnulib/m4]) gl_PO_BASE([]) Index: gnulib/m4/gnulib-comp.m4 =================================================================== RCS file: /data/cvs/libvirt/gnulib/m4/gnulib-comp.m4,v retrieving revision 1.1 diff -u -r1.1 gnulib-comp.m4 --- gnulib/m4/gnulib-comp.m4 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/m4/gnulib-comp.m4 6 Dec 2007 19:16:01 -0000 @@ -25,7 +25,9 @@ m4_pattern_allow([^gl_LIBOBJS$])dnl a variable m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable AC_REQUIRE([AC_PROG_RANLIB]) + AC_REQUIRE([AC_GNU_SOURCE]) AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_REQUIRE([AC_FUNC_FSEEKO]) ]) # This macro should be invoked from ./configure.in, in the section @@ -42,15 +44,29 @@ gl_HEADER_ARPA_INET AC_PROG_MKDIR_P gl_FLOAT_H + gl_FUNC_FSEEKO + gl_STDIO_MODULE_INDICATOR([fseeko]) gl_GETADDRINFO + gl_FUNC_GETDELIM + gl_STDIO_MODULE_INDICATOR([getdelim]) + gl_FUNC_GETLINE + gl_STDIO_MODULE_INDICATOR([getline]) + gl_FUNC_GETPASS + dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. + AM_GNU_GETTEXT_VERSION([0.17]) AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) gl_INET_NTOP + gl_FUNC_LSEEK + gl_UNISTD_MODULE_INDICATOR([lseek]) gl_FUNC_MALLOC_POSIX gl_STDLIB_MODULE_INDICATOR([malloc-posix]) gl_HEADER_NETINET_IN AC_PROG_MKDIR_P gl_PHYSMEM + gl_FUNC_POLL + gl_FUNC_REALLOC_POSIX + gl_STDLIB_MODULE_INDICATOR([realloc-posix]) gl_SIZE_MAX gl_FUNC_SNPRINTF gl_STDIO_MODULE_INDICATOR([snprintf]) @@ -64,11 +80,30 @@ gl_FUNC_STRDUP gl_STRING_MODULE_INDICATOR([strdup]) gl_HEADER_STRING_H + gl_FUNC_STRNDUP + gl_STRING_MODULE_INDICATOR([strndup]) + gl_FUNC_STRNLEN + gl_STRING_MODULE_INDICATOR([strnlen]) + gl_FUNC_STRPBRK + gl_STRING_MODULE_INDICATOR([strpbrk]) + gl_FUNC_STRSEP + gl_STRING_MODULE_INDICATOR([strsep]) + gl_HEADER_SYS_SELECT + AC_PROG_MKDIR_P gl_HEADER_SYS_SOCKET AC_PROG_MKDIR_P AC_CHECK_FUNCS([shutdown]) + gl_HEADER_SYS_STAT_H + AC_PROG_MKDIR_P + gl_HEADER_SYS_TIME_H + AC_PROG_MKDIR_P gl_UNISTD_H gl_FUNC_VASNPRINTF + gl_FUNC_VASPRINTF + gl_STDIO_MODULE_INDICATOR([vasprintf]) + m4_ifdef([AM_XGETTEXT_OPTION], + [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format]) + AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])]) gl_WCHAR_H gl_XSIZE m4_popdef([AC_LIBSOURCES]) @@ -121,27 +156,38 @@ # This macro records the list of files which have been installed by # gnulib-tool and may be removed by future gnulib-tool invocations. AC_DEFUN([gl_FILE_LIST], [ + build-aux/config.rpath build-aux/link-warning.h lib/alloca.in.h lib/asnprintf.c + lib/asprintf.c lib/dummy.c lib/float+.h lib/float.in.h + lib/fseeko.c lib/gai_strerror.c lib/getaddrinfo.c lib/getaddrinfo.h + lib/getdelim.c + lib/getline.c + lib/getpass.c + lib/getpass.h lib/gettext.h lib/inet_ntop.c lib/inet_ntop.h lib/intprops.h + lib/lseek.c lib/malloc.c lib/netinet_in.in.h lib/physmem.c lib/physmem.h + lib/poll.c + lib/poll.in.h lib/printf-args.c lib/printf-args.h lib/printf-parse.c lib/printf-parse.h + lib/realloc.c lib/size_max.h lib/snprintf.c lib/stdbool.in.h @@ -150,30 +196,65 @@ lib/stdlib.in.h lib/strdup.c lib/string.in.h + lib/strndup.c + lib/strnlen.c + lib/strpbrk.c + lib/strsep.c + lib/sys_select.in.h lib/sys_socket.in.h + lib/sys_stat.in.h + lib/sys_time.in.h lib/unistd.in.h lib/vasnprintf.c lib/vasnprintf.h + lib/vasprintf.c lib/verify.h lib/wchar.in.h lib/xsize.h m4/absolute-header.m4 m4/alloca.m4 m4/arpa_inet_h.m4 + m4/codeset.m4 m4/eoverflow.m4 m4/extensions.m4 m4/float_h.m4 + m4/fseeko.m4 m4/getaddrinfo.m4 + m4/getdelim.m4 + m4/getline.m4 + m4/getpass.m4 + m4/gettext.m4 + m4/glibc2.m4 + m4/glibc21.m4 m4/gnulib-common.m4 + m4/iconv.m4 m4/include_next.m4 m4/inet_ntop.m4 + m4/intdiv0.m4 + m4/intl.m4 + m4/intldir.m4 + m4/intlmacosx.m4 + m4/intmax.m4 m4/intmax_t.m4 + m4/inttypes-pri.m4 m4/inttypes_h.m4 + m4/lcmessage.m4 + m4/lib-ld.m4 + m4/lib-link.m4 + m4/lib-prefix.m4 + m4/lock.m4 m4/longlong.m4 + m4/lseek.m4 m4/malloc.m4 m4/netinet_in_h.m4 + m4/nls.m4 m4/onceonly_2_57.m4 m4/physmem.m4 + m4/po.m4 + m4/poll.m4 + m4/printf-posix.m4 + m4/progtest.m4 + m4/realloc.m4 m4/size_max.m4 m4/snprintf.m4 m4/socklen.m4 @@ -185,9 +266,19 @@ m4/stdlib_h.m4 m4/strdup.m4 m4/string_h.m4 + m4/strndup.m4 + m4/strnlen.m4 + m4/strpbrk.m4 + m4/strsep.m4 + m4/sys_select_h.m4 m4/sys_socket_h.m4 + m4/sys_stat_h.m4 + m4/sys_time_h.m4 + m4/uintmax_t.m4 m4/unistd_h.m4 m4/vasnprintf.m4 + m4/vasprintf.m4 + m4/visibility.m4 m4/wchar.m4 m4/wchar_t.m4 m4/wint_t.m4 @@ -200,7 +291,10 @@ tests/test-stdio.c tests/test-stdlib.c tests/test-string.c + tests/test-sys_select.c tests/test-sys_socket.c + tests/test-sys_stat.c + tests/test-sys_time.c tests/test-unistd.c tests/test-wchar.c ]) Index: gnulib/m4/stdio_h.m4 =================================================================== RCS file: /data/cvs/libvirt/gnulib/m4/stdio_h.m4,v retrieving revision 1.1 diff -u -r1.1 stdio_h.m4 --- gnulib/m4/stdio_h.m4 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/m4/stdio_h.m4 6 Dec 2007 19:16:01 -0000 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 8 +# stdio_h.m4 serial 9 dnl Copyright (C) 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -73,13 +73,10 @@ [AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [#if defined __SL64 && defined __SCLE /* cygwin */ /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making - fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, at the - same time that cygwin fixed the declaration of "long timezone" to no - longer be a macro, so we use that as a compile-time test for - cross-compiles rather than building a runtime test. */ -# define timezonevar -# include <sys/time.h> -# ifdef timezone + fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and + it is easier to do a version check than building a runtime test. */ +# include <cygwin/version.h> +# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) choke me # endif #endif])], Index: gnulib/tests/.cvsignore =================================================================== RCS file: gnulib/tests/.cvsignore diff -N gnulib/tests/.cvsignore --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ gnulib/tests/.cvsignore 6 Dec 2007 19:16:01 -0000 @@ -0,0 +1,5 @@ +.deps +.dirstamp +test-sys_select.c +test-sys_stat.c +test-sys_time.c Index: gnulib/tests/Makefile.am =================================================================== RCS file: /data/cvs/libvirt/gnulib/tests/Makefile.am,v retrieving revision 1.1 diff -u -r1.1 Makefile.am --- gnulib/tests/Makefile.am 5 Dec 2007 21:35:32 -0000 1.1 +++ gnulib/tests/Makefile.am 6 Dec 2007 19:16:01 -0000 @@ -108,6 +108,15 @@ ## end gnulib module string-tests +## begin gnulib module sys_select-tests + +TESTS += test-sys_select +check_PROGRAMS += test-sys_select + +EXTRA_DIST += test-sys_select.c + +## end gnulib module sys_select-tests + ## begin gnulib module sys_socket-tests TESTS += test-sys_socket @@ -117,6 +126,24 @@ ## end gnulib module sys_socket-tests +## begin gnulib module sys_stat-tests + +TESTS += test-sys_stat +check_PROGRAMS += test-sys_stat + +EXTRA_DIST += test-sys_stat.c + +## end gnulib module sys_stat-tests + +## begin gnulib module sys_time-tests + +TESTS += test-sys_time +check_PROGRAMS += test-sys_time + +EXTRA_DIST += test-sys_time.c + +## end gnulib module sys_time-tests + ## begin gnulib module unistd-tests TESTS += test-unistd Index: proxy/libvirt_proxy.c =================================================================== RCS file: /data/cvs/libvirt/proxy/libvirt_proxy.c,v retrieving revision 1.21 diff -u -r1.21 libvirt_proxy.c --- proxy/libvirt_proxy.c 5 Dec 2007 18:28:05 -0000 1.21 +++ proxy/libvirt_proxy.c 6 Dec 2007 19:16:02 -0000 @@ -9,6 +9,10 @@ * Daniel Veillard <veillard@xxxxxxxxxx> */ +#include "config.h" + +#ifdef WITH_XEN + #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -18,9 +22,9 @@ #include <sys/socket.h> #include <sys/un.h> #include <locale.h> + #include "internal.h" -#ifdef WITH_XEN #include "proxy_internal.h" #include "xen_internal.h" #include "xend_internal.h" Index: src/.cvsignore =================================================================== RCS file: /data/cvs/libvirt/src/.cvsignore,v retrieving revision 1.3 diff -u -r1.3 .cvsignore --- src/.cvsignore 23 Feb 2007 17:15:42 -0000 1.3 +++ src/.cvsignore 6 Dec 2007 19:16:02 -0000 @@ -3,6 +3,7 @@ .deps .libs *.lo +*.loT *.la virsh *.gcda Index: src/console.c =================================================================== RCS file: /data/cvs/libvirt/src/console.c,v retrieving revision 1.3 diff -u -r1.3 console.c --- src/console.c 26 Nov 2007 12:14:32 -0000 1.3 +++ src/console.c 6 Dec 2007 19:16:02 -0000 @@ -22,6 +22,8 @@ #include "config.h" +#ifndef __MINGW32__ + #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> @@ -193,6 +195,8 @@ return ret; } +#endif /* !__MINGW32__ */ + /* * Local variables: * indent-tabs-mode: nil Index: src/console.h =================================================================== RCS file: /data/cvs/libvirt/src/console.h,v retrieving revision 1.2 diff -u -r1.2 console.h --- src/console.h 28 Jan 2007 19:47:36 -0000 1.2 +++ src/console.h 6 Dec 2007 19:16:02 -0000 @@ -23,6 +23,8 @@ #ifndef __VIR_CONSOLE_H__ #define __VIR_CONSOLE_H__ +#ifndef __MINGW32__ + #ifdef __cplusplus extern "C" { #endif @@ -33,6 +35,8 @@ } #endif +#endif /* !__MINGW32__ */ + #endif /* __VIR_CONSOLE_H__ */ /* Index: src/internal.h =================================================================== RCS file: /data/cvs/libvirt/src/internal.h,v retrieving revision 1.57 diff -u -r1.57 internal.h --- src/internal.h 5 Dec 2007 18:55:04 -0000 1.57 +++ src/internal.h 6 Dec 2007 19:16:02 -0000 @@ -12,11 +12,12 @@ #include <sys/syslimits.h> #endif +#include "gettext.h" + #include "hash.h" #include "libvirt/libvirt.h" #include "libvirt/virterror.h" #include "driver.h" -#include <libintl.h> #ifdef __cplusplus extern "C" { @@ -36,9 +37,12 @@ #define IF_NAMESIZE 16 #endif +#ifndef INET_ADDRSTRLEN +#define INET_ADDRSTRLEN 16 +#endif + #define _(str) dgettext(GETTEXT_PACKAGE, (str)) #define N_(str) dgettext(GETTEXT_PACKAGE, (str)) -#define gettext_noop(str) (str) /* String equality tests, suggested by Jim Meyering. */ #define STREQ(a,b) (strcmp((a),(b)) == 0) Index: src/iptables.c =================================================================== RCS file: /data/cvs/libvirt/src/iptables.c,v retrieving revision 1.3 diff -u -r1.3 iptables.c --- src/iptables.c 1 Dec 2007 15:45:25 -0000 1.3 +++ src/iptables.c 6 Dec 2007 19:16:03 -0000 @@ -19,9 +19,9 @@ * Mark McLoughlin <markmc@xxxxxxxxxx> */ -#include <config.h> +#include "config.h" -#include "iptables.h" +#if WITH_QEMU #include <stdio.h> #include <stdlib.h> @@ -31,12 +31,19 @@ #include <limits.h> #include <unistd.h> #include <fcntl.h> -#include <paths.h> #include <sys/types.h> #include <sys/stat.h> + +#ifdef HAVE_SYS_WAIT_H #include <sys/wait.h> +#endif + +#ifdef HAVE_PATHS_H +#include <paths.h> +#endif #include "internal.h" +#include "iptables.h" #define qemudLog(level, msg...) fprintf(stderr, msg) @@ -1092,6 +1099,8 @@ return iptablesForwardMasquerade(ctx, network, physdev, REMOVE); } +#endif /* WITH_QEMU */ + /* * Local variables: * indent-tabs-mode: nil Index: src/iptables.h =================================================================== RCS file: /data/cvs/libvirt/src/iptables.h,v retrieving revision 1.1 diff -u -r1.1 iptables.h --- src/iptables.h 27 Jun 2007 00:12:29 -0000 1.1 +++ src/iptables.h 6 Dec 2007 19:16:03 -0000 @@ -22,6 +22,8 @@ #ifndef __QEMUD_IPTABLES_H__ #define __QEMUD_IPTABLES_H__ +#if WITH_QEMU + typedef struct _iptablesContext iptablesContext; iptablesContext *iptablesContextNew (void); @@ -83,6 +85,8 @@ const char *network, const char *physdev); +#endif /* WITH_QEMU */ + #endif /* __QEMUD_IPTABLES_H__ */ /* Index: src/libvirt.c =================================================================== RCS file: /data/cvs/libvirt/src/libvirt.c,v retrieving revision 1.108 diff -u -r1.108 libvirt.c --- src/libvirt.c 5 Dec 2007 18:55:04 -0000 1.108 +++ src/libvirt.c 6 Dec 2007 19:16:05 -0000 @@ -23,6 +23,7 @@ #include <libxml/parser.h> #include <libxml/xpath.h> #include <libxml/uri.h> +#include "getpass.h" #include "internal.h" #include "driver.h" Index: src/nodeinfo.c =================================================================== RCS file: /data/cvs/libvirt/src/nodeinfo.c,v retrieving revision 1.4 diff -u -r1.4 nodeinfo.c --- src/nodeinfo.c 5 Dec 2007 21:40:15 -0000 1.4 +++ src/nodeinfo.c 6 Dec 2007 19:16:05 -0000 @@ -26,10 +26,13 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> -#include <sys/utsname.h> #include <errno.h> #include <ctype.h> +#ifdef HAVE_SYS_UTSNAME_H +#include <sys/utsname.h> +#endif + #include "nodeinfo.h" #include "physmem.h" @@ -120,6 +123,7 @@ int virNodeInfoPopulate(virConnectPtr conn, virNodeInfoPtr nodeinfo) { +#ifdef HAVE_UNAME struct utsname info; if (uname(&info) < 0) { @@ -128,10 +132,15 @@ "cannot extract machine type %s", strerror(errno)); return -1; } - strncpy(nodeinfo->model, info.machine, sizeof(nodeinfo->model)-1); nodeinfo->model[sizeof(nodeinfo->model)-1] = '\0'; +#else /* !HAVE_UNAME */ + + nodeinfo->model[0] = '\0'; + +#endif /* !HAVE_UNAME */ + #ifdef __linux__ { int ret; Index: src/proxy_internal.c =================================================================== RCS file: /data/cvs/libvirt/src/proxy_internal.c,v retrieving revision 1.39 diff -u -r1.39 proxy_internal.c --- src/proxy_internal.c 5 Dec 2007 21:40:15 -0000 1.39 +++ src/proxy_internal.c 6 Dec 2007 19:16:05 -0000 @@ -8,6 +8,8 @@ * Daniel Veillard <veillard@xxxxxxxxxx> */ +#ifdef WITH_XEN + #include "config.h" #include <stdio.h> @@ -1111,6 +1113,8 @@ return(ostype); } +#endif /* WITH_XEN */ + /* * vim: set tabstop=4: * vim: set shiftwidth=4: Index: src/qemu_driver.c =================================================================== RCS file: /data/cvs/libvirt/src/qemu_driver.c,v retrieving revision 1.42 diff -u -r1.42 qemu_driver.c --- src/qemu_driver.c 5 Dec 2007 21:31:07 -0000 1.42 +++ src/qemu_driver.c 6 Dec 2007 19:16:07 -0000 @@ -47,6 +47,10 @@ #include <sys/wait.h> #include <libxml/uri.h> +#ifdef __MINGW32__ +#include <basetyps.h> +#endif + #include "libvirt/virterror.h" #include "event.h" Index: src/remote_internal.c =================================================================== RCS file: /data/cvs/libvirt/src/remote_internal.c,v retrieving revision 1.44 diff -u -r1.44 remote_internal.c --- src/remote_internal.c 6 Dec 2007 12:05:35 -0000 1.44 +++ src/remote_internal.c 6 Dec 2007 19:16:10 -0000 @@ -31,15 +31,29 @@ #include <errno.h> #include <signal.h> #include <sys/types.h> -#include <sys/socket.h> #include <sys/stat.h> -#include <sys/wait.h> #include <fcntl.h> + +#ifdef HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif + +#ifdef HAVE_PWD_H +#include <pwd.h> +#endif + +#ifdef HAVE_PATHS_H #include <paths.h> +#endif + +#ifndef HAVE_WINSOCK2_H +#include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <netinet/tcp.h> -#include <pwd.h> +#else +#include <winsock2.h> +#endif #include <rpc/types.h> #include <rpc/xdr.h> @@ -51,6 +65,12 @@ #endif #include <libxml/uri.h> +#ifdef __MINGW32__ +#include <basetyps.h> +#endif + +#include "getaddrinfo.h" + #include "internal.h" #include "driver.h" #include "getaddrinfo.h" @@ -207,6 +227,7 @@ return NULL; } +#ifndef WIN32 /** * qemuForkDaemon: * @@ -286,7 +307,7 @@ return (0); } - +#endif enum virDrvOpenRemoteFlags { VIR_DRV_OPEN_REMOTE_RO = (1 << 0), @@ -492,7 +513,9 @@ struct addrinfo hints; memset (&hints, 0, sizeof hints); hints.ai_socktype = SOCK_STREAM; +#ifdef AI_ADDRCONFIG hints.ai_flags = AI_ADDRCONFIG; +#endif int e = getaddrinfo (priv->hostname, port, &hints, &res); if (e != 0) { error (conn, VIR_ERR_INVALID_ARG, gai_strerror (e)); @@ -554,6 +577,7 @@ break; } +#ifndef WIN32 case trans_unix: { if (!sockname) { if (flags & VIR_DRV_OPEN_REMOTE_USER) { @@ -720,6 +744,16 @@ priv->sock = sv[0]; priv->pid = pid; } +#else /* WIN32 */ + + case trans_unix: + case trans_ssh: + case trans_ext: + error (conn, VIR_ERR_INVALID_ARG, + _("transport methods unix, ssh and ext are not supported under Windows")); + +#endif /* WIN32 */ + } /* switch (transport) */ @@ -769,6 +803,7 @@ gnutls_deinit (priv->session); } close (priv->sock); +#ifndef WIN32 if (priv->pid > 0) { pid_t reap; do { @@ -777,6 +812,7 @@ continue; } while (reap != -1 && reap != priv->pid); } +#endif } if (priv->hostname) { @@ -808,6 +844,7 @@ if (flags & VIR_CONNECT_RO) rflags |= VIR_DRV_OPEN_REMOTE_RO; +#if WITH_QEMU if (uri && uri->scheme && STREQ (uri->scheme, "qemu") && (!uri->server || STREQ (uri->server, "")) && @@ -822,6 +859,7 @@ } } } +#endif memset(priv, 0, sizeof(struct private_data)); priv->magic = DEAD; @@ -1306,6 +1344,7 @@ #endif close (priv->sock); +#ifndef WIN32 if (priv->pid > 0) { pid_t reap; do { @@ -1314,6 +1353,7 @@ continue; } while (reap != -1 && reap != priv->pid); } +#endif /* Free hostname copy */ if (priv->hostname) free (priv->hostname); Index: src/sexpr.c =================================================================== RCS file: /data/cvs/libvirt/src/sexpr.c,v retrieving revision 1.10 diff -u -r1.10 sexpr.c --- src/sexpr.c 5 Dec 2007 21:31:07 -0000 1.10 +++ src/sexpr.c 6 Dec 2007 19:16:11 -0000 @@ -12,15 +12,15 @@ #include "config.h" -#include "sexpr.h" -#include "internal.h" - +#include <stdio.h> #include <malloc.h> #include <string.h> -#include <stdio.h> #include <ctype.h> #include <errno.h> +#include "internal.h" +#include "sexpr.h" + /** * virSexprError: * @conn: the connection if available Index: src/test.c =================================================================== RCS file: /data/cvs/libvirt/src/test.c,v retrieving revision 1.54 diff -u -r1.54 test.c --- src/test.c 5 Dec 2007 21:31:07 -0000 1.54 +++ src/test.c 6 Dec 2007 19:16:12 -0000 @@ -35,8 +35,14 @@ #include <libxml/uri.h> #include <fcntl.h> #include <unistd.h> +#include <sys/stat.h> + +#ifndef HAVE_WINSOCK2_H #include <net/if.h> #include <netinet/in.h> +#else +#include <winsock2.h> +#endif #include "internal.h" #include "test.h" Index: src/util.c =================================================================== RCS file: /data/cvs/libvirt/src/util.c,v retrieving revision 1.9 diff -u -r1.9 util.c --- src/util.c 5 Dec 2007 13:56:22 -0000 1.9 +++ src/util.c 6 Dec 2007 19:16:12 -0000 @@ -30,12 +30,15 @@ #include <stdarg.h> #include <unistd.h> #include <fcntl.h> -#include <paths.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> +#ifdef HAVE_PATHS_H +#include <paths.h> +#endif + #include "libvirt/virterror.h" #include "internal.h" #include "event.h" @@ -65,6 +68,8 @@ NULL, NULL, NULL, -1, -1, "%s", errorMessage); } +#ifndef __MINGW32__ + static int virSetCloseExec(int fd) { int flags; if ((flags = fcntl(fd, F_GETFD)) < 0) @@ -198,6 +203,34 @@ return(_virExec(conn, argv, retpid, infd, outfd, errfd, 1)); } +#else /* __MINGW32__ */ + +int +virExec(virConnectPtr conn, + char **argv ATTRIBUTE_UNUSED, + int *retpid ATTRIBUTE_UNUSED, + int infd ATTRIBUTE_UNUSED, + int *outfd ATTRIBUTE_UNUSED, + int *errfd ATTRIBUTE_UNUSED) +{ + ReportError (conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, __FUNCTION__); + return -1; +} + +int +virExecNonBlock(virConnectPtr conn, + char **argv ATTRIBUTE_UNUSED, + int *retpid ATTRIBUTE_UNUSED, + int infd ATTRIBUTE_UNUSED, + int *outfd ATTRIBUTE_UNUSED, + int *errfd ATTRIBUTE_UNUSED) +{ + ReportError (conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, __FUNCTION__); + return -1; +} + +#endif /* __MINGW32__ */ + /* Like read(), but restarts after EINTR */ int saferead(int fd, void *buf, size_t count) { @@ -313,6 +346,7 @@ return strcmp(str + len - suffixlen, suffix) == 0; } +#ifndef __MINGW32__ int virFileLinkPointsTo(const char *checkLink, const char *checkDest) @@ -397,6 +431,22 @@ return 1; } +#else /* !__MINGW32__ */ + +/* Gnulib has an implementation of readlink which could be used + * to implement this, but it requires LGPLv3. + */ + +int +virFileLinkPointsTo (const char *checkLink ATTRIBUTE_UNUSED, + const char *checkDest ATTRIBUTE_UNUSED) +{ + virLog ("%s: not implemented", __FUNCTION__); + return 0; +} + +#endif /*! __MINGW32__ */ + int virFileMakePath(const char *path) { struct stat st; Index: src/uuid.c =================================================================== RCS file: /data/cvs/libvirt/src/uuid.c,v retrieving revision 1.3 diff -u -r1.3 uuid.c --- src/uuid.c 9 Aug 2007 20:19:12 -0000 1.3 +++ src/uuid.c 6 Dec 2007 19:16:12 -0000 @@ -36,6 +36,10 @@ #define qemudLog(level, msg...) fprintf(stderr, msg) +#ifndef ENODATA +#define ENODATA EIO +#endif + static int virUUIDGenerateRandomBytes(unsigned char *buf, int buflen) Index: src/virsh.c =================================================================== RCS file: /data/cvs/libvirt/src/virsh.c,v retrieving revision 1.118 diff -u -r1.118 virsh.c --- src/virsh.c 6 Dec 2007 16:36:21 -0000 1.118 +++ src/virsh.c 6 Dec 2007 19:16:15 -0000 @@ -202,7 +202,9 @@ virConnectPtr conn; /* connection to hypervisor (MAY BE NULL) */ vshCmd *cmd; /* the current command */ char *cmdstr; /* string with command */ +#ifndef __MINGW32__ uid_t uid; /* process owner */ +#endif /* __MINGW32__ */ int imode; /* interactive mode? */ int quiet; /* quiet mode */ int debug; /* print debug messages? */ @@ -457,6 +459,8 @@ {NULL, 0, 0, NULL} }; +#ifndef __MINGW32__ + static int cmdConsole(vshControl * ctl, vshCmd * cmd) { @@ -506,6 +510,17 @@ return ret; } +#else /* __MINGW32__ */ + +static int +cmdConsole(vshControl * ctl, vshCmd * cmd ATTRIBUTE_UNUSED) +{ + vshError (ctl, FALSE, _("console not implemented on Win32")); + return FALSE; +} + +#endif /* __MINGW32__ */ + /* * "list" command */ @@ -4508,17 +4523,21 @@ if (ctl->conn) return FALSE; +#ifndef __MINGW32__ ctl->uid = getuid(); +#endif vshOpenLogFile(ctl); /* set up the library error handler */ virSetErrorFunc(NULL, virshErrorHandler); +#ifndef __MINGW32__ /* Force a non-root, Xen connection to readonly */ if ((ctl->name == NULL || !strcasecmp(ctl->name, "xen")) && ctl->uid != 0) ctl->readonly = 1; +#endif ctl->conn = virConnectOpenAuth(ctl->name, virConnectAuthPtrDefault, @@ -4537,6 +4556,12 @@ return TRUE; } +#ifndef __MINGW32__ +#define LOGFILE_FLAGS (O_WRONLY | O_APPEND | O_CREAT | O_SYNC) +#else +#define LOGFILE_FLAGS (O_WRONLY | O_APPEND | O_CREAT) +#endif + /** * vshOpenLogFile: * @@ -4566,7 +4591,7 @@ } /* log file open */ - if ((ctl->log_fd = open(ctl->logfile, O_WRONLY | O_APPEND | O_CREAT | O_SYNC, FILE_MODE)) < 0) { + if ((ctl->log_fd = open(ctl->logfile, LOGFILE_FLAGS, FILE_MODE)) < 0) { vshError(ctl, TRUE, _("failed to open the log file. check the log file path")); } } Index: src/xen_unified.h =================================================================== RCS file: /data/cvs/libvirt/src/xen_unified.h,v retrieving revision 1.10 diff -u -r1.10 xen_unified.h --- src/xen_unified.h 5 Dec 2007 13:56:22 -0000 1.10 +++ src/xen_unified.h 6 Dec 2007 19:16:15 -0000 @@ -13,8 +13,12 @@ #include "internal.h" +#ifndef HAVE_WINSOCK2_H #include <sys/un.h> #include <netinet/in.h> +#else +#include <winsock2.h> +#endif #ifdef __cplusplus extern "C" { Index: tests/reconnect.c =================================================================== RCS file: /data/cvs/libvirt/tests/reconnect.c,v retrieving revision 1.4 diff -u -r1.4 reconnect.c --- tests/reconnect.c 5 Dec 2007 13:56:22 -0000 1.4 +++ tests/reconnect.c 6 Dec 2007 19:16:15 -0000 @@ -1,5 +1,8 @@ +#include "config.h" + #include <stdio.h> #include <stdlib.h> + #include "libvirt/libvirt.h" #include "libvirt/virterror.h" #include "internal.h"
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list