Trouble building Intel IGB for SuperMcro 5018A-TN4 on Red Hat 6.4

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

sungila

New Member
Oct 2, 2013
5
0
0
Hi all,

I'm trying to get the quad ethernet on my SuperMicro 5018A-TN4 (Supermicro | Products | SuperServers | 1U | 5018A-TN4) to work. Drivers are from Intel® Server Adapters — Linux igb* Base Driver overview and installation.

Kernel and headers etc installed are 2.6.32-424.el6.x86_64 (rhel 6.4 latest)

When i do a "make install" it throws this:

Code:
[root@localhost src]# make install
make -C /lib/modules/2.6.32-424.el6.x86_64/build SUBDIRS=/root/igb-5.0.6/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-424.el6.x86_64'
  CC [M]  /root/igb-5.0.6/src/igb_main.o
In file included from /root/igb-5.0.6/src/igb.h:56,
                 from /root/igb-5.0.6/src/igb_main.c:54:
/root/igb-5.0.6/src/kcompat.h:3453: error: conflicting types for ‘netdev_features_t’
include/linux/netdevice.h:854: note: previous declaration of ‘netdev_features_t’ was here
In file included from /root/igb-5.0.6/src/igb.h:56,
                 from /root/igb-5.0.6/src/igb_main.c:54:
/root/igb-5.0.6/src/kcompat.h:3678: error: redefinition of ‘pcie_capability_clear_word’
include/linux/pci.h:830: note: previous definition of ‘pcie_capability_clear_word’ was here
/root/igb-5.0.6/src/kcompat.h:3707: error: redefinition of ‘is_link_local_ether_addr’
include/linux/etherdevice.h:68: note: previous definition of ‘is_link_local_ether_addr’ was here
/root/igb-5.0.6/src/igb_main.c:2273: error: unknown field ‘ndo_fdb_add’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2273: error: ‘igb_ndo_fdb_add’ undeclared here (not in a function)
/root/igb-5.0.6/src/igb_main.c:2275: error: unknown field ‘ndo_fdb_del’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2275: error: ‘igb_ndo_fdb_del’ undeclared here (not in a function)
/root/igb-5.0.6/src/igb_main.c:2276: error: unknown field ‘ndo_fdb_dump’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2276: error: ‘igb_ndo_fdb_dump’ undeclared here (not in a function)
make[2]: *** [/root/igb-5.0.6/src/igb_main.o] Error 1
make[1]: *** [_module_/root/igb-5.0.6/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-424.el6.x86_64'
make: *** [default] Error 2
Is the kernel version an issue? I'm in over my head on this one :) so any help is appreciated.

Thanks!
Sungila
 

sungila

New Member
Oct 2, 2013
5
0
0
And some more verbose output:

Code:
[root@localhost src]# export KBUILD_VERBOSE=1
[root@localhost src]# make install
make -C /lib/modules/2.6.32-424.el6.x86_64/build SUBDIRS=/root/igb-5.0.6/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-424.el6.x86_64'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /root/igb-5.0.6/src/.tmp_versions ; rm -f /root/igb-5.0.6/src/.tmp_versions/*
make -f scripts/Makefile.build obj=/root/igb-5.0.6/src
  gcc -Wp,-MD,/root/igb-5.0.6/src/.igb_main.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include -Iinclude  -I/usr/src/kernels/2.6.32-424.el6.x86_64/include/uapi -I/usr/src/kernels/2.6.32-424.el6.x86_64/arch/x86/include -include /usr/src/kernels/2.6.32-424.el6.x86_64/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -mcmodel=kernel -mno-red-zone -DDRIVER_IGB -DDRIVER_NAME=igb -DDRIVER_NAME_CAPS=IGB -DLINUX -D__KERNEL__ -DMODULE -O2 -pipe -Wall -I/lib/modules/2.6.32-424.el6.x86_64/build/generated/uapi -I/include -I. -D__SMP__  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(igb_main)"  -D"KBUILD_MODNAME=KBUILD_STR(igb)" -D"DEBUG_HASH=6" -D"DEBUG_HASH2=15" -c -o /root/igb-5.0.6/src/.tmp_igb_main.o /root/igb-5.0.6/src/igb_main.c
In file included from /root/igb-5.0.6/src/igb.h:56,
                 from /root/igb-5.0.6/src/igb_main.c:54:
/root/igb-5.0.6/src/kcompat.h:3453: error: conflicting types for ‘netdev_features_t’
include/linux/netdevice.h:854: note: previous declaration of ‘netdev_features_t’ was here
In file included from /root/igb-5.0.6/src/igb.h:56,
                 from /root/igb-5.0.6/src/igb_main.c:54:
/root/igb-5.0.6/src/kcompat.h:3678: error: redefinition of ‘pcie_capability_clear_word’
include/linux/pci.h:830: note: previous definition of ‘pcie_capability_clear_word’ was here
/root/igb-5.0.6/src/kcompat.h:3707: error: redefinition of ‘is_link_local_ether_addr’
include/linux/etherdevice.h:68: note: previous definition of ‘is_link_local_ether_addr’ was here
/root/igb-5.0.6/src/igb_main.c:2273: error: unknown field ‘ndo_fdb_add’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2273: error: ‘igb_ndo_fdb_add’ undeclared here (not in a function)
/root/igb-5.0.6/src/igb_main.c:2275: error: unknown field ‘ndo_fdb_del’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2275: error: ‘igb_ndo_fdb_del’ undeclared here (not in a function)
/root/igb-5.0.6/src/igb_main.c:2276: error: unknown field ‘ndo_fdb_dump’ specified in initializer
/root/igb-5.0.6/src/igb_main.c:2276: error: ‘igb_ndo_fdb_dump’ undeclared here (not in a function)
make[2]: *** [/root/igb-5.0.6/src/igb_main.o] Error 1
make[1]: *** [_module_/root/igb-5.0.6/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-424.el6.x86_64'
make: *** [default] Error 2
 

sungila

New Member
Oct 2, 2013
5
0
0
My bad, looks like RHEL supports this OOTB (eth0 is my pci adapter) ...
Code:
[root@localhost ~]# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:     100       1    0    0    0     0          0         0      100       1    0    0    0     0       0          0
  eth0:43085465   35112    0    0    0     0          0       433  1921725   19259    0    0    0     0       0          0
  eth1:   17398     221    0    0    0     0          0        37    12080     100    0    0    0     0       0          0
  eth2:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth3:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth4:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
The installer didn't find the nics tho. Is that normal?