|
Daniel P. Berrange |
5ed697 |
From c308a9ae153db619fc0366bad9fd8f6c49cfac58 Mon Sep 17 00:00:00 2001
|
|
Daniel P. Berrange |
5ed697 |
From: Eric Blake <eblake@redhat.com>
|
|
Daniel P. Berrange |
5ed697 |
Date: Mon, 14 Jan 2013 09:54:25 -0700
|
|
Daniel P. Berrange |
5ed697 |
Subject: [PATCH] build: work around broken kernel header
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
I got this scary warning during ./configure on rawhide:
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
checking linux/if_bridge.h usability... no
|
|
Daniel P. Berrange |
5ed697 |
checking linux/if_bridge.h presence... yes
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: linux/if_bridge.h: present but cannot be compiled
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: linux/if_bridge.h: check for missing prerequisite headers?
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: linux/if_bridge.h: see the Autoconf documentation
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: linux/if_bridge.h: section "Present But Cannot Be Compiled"
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: linux/if_bridge.h: proceeding with the compiler's result
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: ## ------------------------------------- ##
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: ## Report this to libvir-list@redhat.com ##
|
|
Daniel P. Berrange |
5ed697 |
configure: WARNING: ## ------------------------------------- ##
|
|
Daniel P. Berrange |
5ed697 |
checking for linux/if_bridge.h... no
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
* configure.ac (AC_CHECK_HEADERS): Provide struct in6_addr, since
|
|
Daniel P. Berrange |
5ed697 |
linux/if_bridge.h uses it without declaring it.
|
|
Daniel P. Berrange |
5ed697 |
---
|
|
Daniel P. Berrange |
5ed697 |
configure.ac | 4 +++-
|
|
Daniel P. Berrange |
5ed697 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
diff --git a/configure.ac b/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
index 8a424e7..1d0add5 100644
|
|
Daniel P. Berrange |
5ed697 |
--- a/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
+++ b/configure.ac
|
|
Daniel P. Berrange |
5ed697 |
@@ -978,7 +978,9 @@ dnl
|
|
Daniel P. Berrange |
5ed697 |
if test "$with_linux" = "yes"; then
|
|
Daniel P. Berrange |
5ed697 |
if test "$with_qemu" = "yes" || test "$with_lxc" = "yes" ; then
|
|
Daniel P. Berrange |
5ed697 |
AC_CHECK_HEADERS([linux/param.h linux/sockios.h linux/if_bridge.h linux/if_tun.h],,
|
|
Daniel P. Berrange |
5ed697 |
- AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support]))
|
|
Daniel P. Berrange |
5ed697 |
+ [AC_MSG_ERROR([You must install kernel-headers in order to compile libvirt with QEMU or LXC support])],
|
|
Daniel P. Berrange |
5ed697 |
+ [[#include <netinet/ip6.h>
|
|
Daniel P. Berrange |
5ed697 |
+ ]])
|
|
Daniel P. Berrange |
5ed697 |
fi
|
|
Daniel P. Berrange |
5ed697 |
fi
|
|
Daniel P. Berrange |
5ed697 |
|
|
Daniel P. Berrange |
5ed697 |
--
|
|
Daniel P. Berrange |
5ed697 |
1.8.0.2
|
|
Daniel P. Berrange |
5ed697 |
|