[libvirt] [PATCH] build: more mingw fixes

Eric Blake eblake at redhat.com
Fri Feb 15 22:40:36 UTC 2013


More mingw build failures:

  CCLD     libvirt-lxc.la
/usr/lib64/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld: cannot find libvirt_lxc.def: No such file or directory

  CC       virportallocatortest-virportallocatortest.o
../../tests/virportallocatortest.c: In function 'main':
../../tests/virportallocatortest.c:195:1: error: implicit declaration of function 'setenv' [-Werror=implicit-function-declaration]

* src/Makefile.am (GENERATED_SYM_FILES): Also generate
libvirt_lxc.def.
* bootstrap.conf (gnulib_modules): Import setenv.
---

Pushing under the build-breaker rule.

 bootstrap.conf  | 1 +
 src/Makefile.am | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/bootstrap.conf b/bootstrap.conf
index 4b45a4f..6e03757 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -92,6 +92,7 @@ regex
 random_r
 sched
 send
+setenv
 setsockopt
 sigaction
 sigpipe
diff --git a/src/Makefile.am b/src/Makefile.am
index 0d2f2f8..780cd52 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1462,7 +1462,8 @@ EXTRA_DIST += \
   libvirt_xenxs.syms	\
   libvirt_libssh2.syms

-GENERATED_SYM_FILES = libvirt.syms libvirt.def libvirt_qemu.def
+GENERATED_SYM_FILES = \
+	libvirt.syms libvirt.def libvirt_qemu.def libvirt_lxc.def

 BUILT_SOURCES += $(GENERATED_SYM_FILES)

-- 
1.8.1.2




More information about the libvir-list mailing list