linux - rpmbuild hp-be2net emulex 驱动程序

标签 linux driver

我正在尝试在 centos 6.3 上为 HP DL360 G7 Emulex 驱动程序进行 rpmbuild

但它因此错误而失败......有什么想法吗?

+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd hp-be2net-4.1.402.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ export 'EXTRA_CFLAGS=-DVERSION=\"4.1.402.6\"'
+ EXTRA_CFLAGS='-DVERSION=\"4.1.402.6\"'
+ for flavor in default
+ rm -rf obj/default
+ cp -r source obj/default
+ export SRC=/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default
+ SRC=/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default
++ '[' default = default ']'
+ make -C /usr/src/kernels/2.6.32-279.1.1.el6.centos.plus.x86_64 modules M=/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default CONFIG_BE2NET=m
make: Entering directory `/usr/src/kernels/2.6.32-279.1.1.el6.centos.plus.x86_64'
  CC [M]  /root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.o
/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.c: In function 'get_rx_page_info':
/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.c:1279: error: 'struct be_rx_page_info' has no member named 'bus'
/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.c: In function 'be_post_rx_frags':
/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.c:1679: error: 'struct be_rx_page_info' has no member named 'bus'
make[1]: *** [/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default/be_main.o] Error 1
make: *** [_module_/root/rpmbuild/BUILD/hp-be2net-4.1.402.6/obj/default] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32-279.1.1.el6.centos.plus.x86_64'
error: Bad exit status from /var/tmp/rpm-tmp.R3DzsV (%build)

最佳答案

我也遇到了同样的问题。惠普尚未向我提供解决方案,因此我开始寻找其他可能的解决方案。我发现 Emulex(该卡的制造商)提供了一个与 RHEL 6.2 兼容的二进制驱动程序,该驱动程序似乎可以在 RHEL 6.3 中正常加载。

查找 UCNA 以太网驱动程序 - 二进制驱动程序 RPM 套件 http://www.emulex.com/downloads/emulex/linux/rhel6x/drivers.html

关于linux - rpmbuild hp-be2net emulex 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11577747/

相关文章:

java - IntelliJ 数据源 - 可以切换 "Driver"而不重新创建它吗?

c - Windows 内核驱动程序 : ZwAllocateVirtualMemory causing thread to terminate

linux - 执行命令行并返回命令输出

spring - 找不到 maven 依赖项的 Postgresql 驱动程序

android - 替换 Android 设备上的默认 GPS 信号提供商

linux - 如何在 linux 中比较两个 ls 的输出

linux-kernel - 实现 mmap() 的内核驱动程序是否必须创建字符设备?

linux - 您如何获得隐藏设备的所有权?

linux - 从 git pull 时无法识别符号链接(symbolic link)

linux - 从跨目录的对象构建 .ko 时在 Makefile 中使用通配符的问题