我正在尝试为Intel X710-da2构buildnetworking驱动程序,可以在这里下载FreeBSD 9.3。
我跟着英特尔自述文件,但是我运行make命令后检索以下编译错误:
Warning: Object directory not changed from original /usr/home/miadmin/ix-2.8.2/src cc -O2 -pipe -DSMP -DIXGBE_FDIR -DINET -DINET6 -DIXGBE_STANDALONE_BUILD -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c if_ix.c cc1: warnings being treated as errors if_ix.c:208: warning: redundant redeclaration of 'ixgbe_stop_mac_link_on_d3_82599' [-Wredundant-decls] ixgbe_common.h:168: warning: previous declaration of 'ixgbe_stop_mac_link_on_d3_82599' was here if_ix.c: In function 'ixgbe_setup_interface': if_ix.c:2560: warning: integer overflow in expression [-Woverflow] if_ix.c:2560: warning: overflow in implicit constant conversion [-Woverflow] if_ix.c:2600: error: 'IFCAP_HWSTATS' undeclared (first use in this function) if_ix.c:2600: error: (Each undeclared identifier is reported only once if_ix.c:2600: error: for each function it appears in.) *** [if_ix.o] Error code 1
这些错误可能是什么问题?
我的最终目标是编译驱动程序,以便在FreeNAS 9.3环境中整合(稍后介绍),因为集成驱动程序在X710-da2网卡上存在问题( Bug#9117 )。
提前感谢任何帮助。
在不同版本的FreeBSD中检查if.h文件的版本9.x时,“IFCAP_HWSTATS”丢失。 在版本10中又出现了,也许FreeBSD的开发者已经在9.x版本中改变了或者破坏了这个呢? 由于英特尔在2.8.2版中的最新驱动程序需要这个声明,编译中断了 – 可悲的是。
由于这个原因,你应该尝试驱动版本2.5.25 ,作为驱动描述在https://downloadcenter.intel.com/product/83949/Intel-Ethernet-Converged-Network-Adapter-X710-Series状态:
该驱动程序是为FreeBSD 7.2或更高版本而devise的
相比之下,驱动程序2.8.2的驱动程序似乎是为FreeBSD 10.x和更高版本编写的。
希望这可以帮助。