我最近安装了Fedora 17的更新,其中包括从Linux Kernel 3.7.x升级到3.8.x.现在我无法建立Libvirt!它给了我这个错误:
checking linux/if_bridge.h usability... no
checking linux/if_bridge.h presence... yes
configure: WARNING: linux/if_bridge.h: present but cannot be compiled
configure: WARNING: linux/if_bridge.h: check for missing prerequisite headers?
configure: WARNING: linux/if_bridge.h: see the Autoconf documentation
configure: WARNING: linux/if_bridge.h: section "Present But Cannot Be Compiled"
configure: WARNING: linux/if_bridge.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to libvir-list redhat com ##
configure: WARNING: ## ------------------------------------- ##
checking for linux/if_bridge.h... no
如何解决此问题,以便我可以再次构建Libvirt?
答案 0 :(得分:2)
显然,构建失败是由头文件/usr/include/linux/if_bridge.h
引起的。幸运的是,修复非常简单(一旦你知道该怎么做)。
/usr/include/linux/if_bridge.h
#include <netinet/ip6.h>
每次启动到不同的内核版本时,您必须重新应用此修补程序,因为/usr/include/linux/
头文件已被清除。