This post is more than 5 years old

2 Posts

9636

May 6th, 2012 03:00

compiling netxtreme2-6.2.23 on 5.5 linux box poweredge-1950

Hello ,

I am trying to compile the netxtreme2-6.2.23 driver on { {Svc Tag Removed By Moderator}}machine .

In order to upgrade my network driver card driver .

This is the error I am getting :

[root@hadoop1-s10 netxtreme2-6.2.23]# make
make -C bnx2/src  KVER=2.6.18-308.4.1.el5 PREFIX=
make[1]: Entering directory `/opt/netxtreme2-6.2.23/bnx2-2.0.23b/src'
make -C /lib/modules/2.6.18-308.4.1.el5/build SUBDIRS=/opt/netxtreme2-6.2.23/bnx2-2.0.23b/src modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-308.4.1.el5-x86_64'
  CC   /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/bnx2.o
/opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/bnx2.c: In function גbnx2_gunzipג:
/opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/bnx2.c:4265: warning: assignment discards qualifiers from pointer target type
  CC   /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/cnic.o
  Building modules, stage 2.
  MODPOST
  CC      /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/bnx2.mod.o
  LD   /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/bnx2.ko
  CC      /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/cnic.mod.o
  LD   /opt/netxtreme2-6.2.23/bnx2-2.0.23b/src/cnic.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.18-308.4.1.el5-x86_64'
make[1]: Leaving directory `/opt/netxtreme2-6.2.23/bnx2-2.0.23b/src'
make -C bnx2x/src KVER=2.6.18-308.4.1.el5 PREFIX=
make[1]: Entering directory `/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src'
make -C /lib/modules/2.6.18-308.4.1.el5/build M=`pwd` modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-308.4.1.el5-x86_64'
  CC   /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.o
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:995: error: redefinition of גskb_checksum_none_assertג
include/linux/skbuff.h:1827: error: previous definition of גskb_checksum_none_assertג was here
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1009:1: error: "PCI_VPD_LRDT_ID_STRING" redefined
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1041:1: error: this is the location of the previous definition
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1011:1: error: "PCI_VPD_LRDT_RO_DATA" redefined
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1042:1: error: this is the location of the previous definition
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1013:1: error: "PCI_VPD_LRDT_RW_DATA" redefined
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1043:1: error: this is the location of the previous definition
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x.h:68,
                 from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:80:
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1019:1: error: "PCI_VPD_SRDT_END" redefined
In file included from /opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.c:34:
include/linux/pci.h:1048:1: error: this is the location of the previous definition
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1033: error: conflicting types for גpci_vpd_lrdt_sizeג
include/linux/pci.h:1070: error: previous definition of גpci_vpd_lrdt_sizeג was here
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1038: error: conflicting types for גpci_vpd_srdt_sizeג
include/linux/pci.h:1081: error: previous definition of גpci_vpd_srdt_sizeג was here
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1044: error: conflicting types for גpci_vpd_find_tagג
include/linux/pci.h:1106: error: previous declaration of גpci_vpd_find_tagג was here
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1078: error: conflicting types for גpci_vpd_info_field_sizeג
include/linux/pci.h:1092: error: previous definition of גpci_vpd_info_field_sizeג was here
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1086: error: conflicting types for גpci_vpd_find_info_keywordג
include/linux/pci.h:1119: error: previous declaration of גpci_vpd_find_info_keywordג was here
/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_compat.h:1125: error: redefinition of גvlan_get_protocolג
include/linux/if_vlan.h:425: error: previous definition of גvlan_get_protocolג was here
make[3]: *** [/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src/bnx2x_main.o] Error 1
make[2]: *** [_module_/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-308.4.1.el5-x86_64'
make[1]: *** [bnx2x.o] Error 2
make[1]: Leaving directory `/opt/netxtreme2-6.2.23/bnx2x-1.62.15/src'
make: *** [l2build] Error 2

May 8th, 2012 07:00

I attempted to reproduce this on a new RHEL 5.5 i686 install, however I was able to successfully compile the driver. The kernel was 2.6.18-194.el5. I then installed CentOS 5.8 and did a yum update, which got me up to the same kernel you appear to be running, 2.6.18-308.4.1.el5. In that compile attempt I observed the same output you pasted. So I looked at the existing driver versions:

[js@rhel55 ~]$ /sbin/modinfo -F version bnx2

2.0.2

[js@cent58 ~]$ /sbin/modinfo -F version bnx2

2.1.11

The bnx2 driver version in the netxtreme2-6.2.23 package is 2.0.23b, so it is newer than 5.5, but older than 5.8, and may be considered updated already. Do you have a specific need for 2.0.23b?

2 Posts

May 8th, 2012 13:00

Thanks for the update ,how come that the latest driver that dell provide in there web site is much old then the driver broadcome provide in there .

I notice as well that the driver which was updated in the kernel is much newer then we try to install from Dell site .

Thank you for your update .

May 9th, 2012 15:00

Since we support the integrated Broadcom NIC on our servers, this driver is provided as a means to update NIC driver only, without the requirement of updating the whole OS, since some in some environments that is impossible for various reasons. I am not sure of the specific reasons why this update should be so interesting as to merit independent packaging but I suspect it may have to do with the items mentioned in the download site under Fixes & Enhancements (www.dell.com/.../DriverFileFormats):

- Added support for the BCM57712 NetXtreme II Gigabit Ethernet Adapter

- Management traffic stops when Linux kernel crashes.

- Significantly lower iSCSI offload performance when connecting to a target without flow control enabled.

- Incorrect flow control counter reported in BACS for 10G mezz card connected at 1G speed.

There is also Changelog in the bnx2-2.0.23b directory you ran make from first, which may have more info. I hope that provides some insight if you are still curious.

No Events found!

Top