我最近安装了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 ?
显然构建失败是由头文件/usr/include/linux/if_bridge.h
引起的。幸运的是,修复很容易(只要你知道怎么做)。
- 在文本编辑器中打开
/usr/include/linux/if_bridge.h
- 添加包含行,
#include <netinet/ip6.h>
每次启动到不同的内核版本时,您将不得不重新应用此修复,因为/usr/include/linux/
头文件被清除。