Hi
I'm having a very similar problem to the one mentioned in this ticket:
http://sourceforge.net/p/e1000/bugs/415/ <-- this is related to the e1000e
module however.
I'm trying to compile the 5.2.5 igb module on Ubuntu 14.04 with a
3.13.0-30-generic kernel, and I get the following errors:
$sudo make install
make -C /lib/modules/3.13.0-30-generic/build
SUBDIRS=/usr/local/src/igb/igb-5.2.5/src modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-30-generic'
CC [M] /usr/local/src/igb/igb-5.2.5/src/igb_main.o
In file included from /usr/local/src/igb/igb-5.2.5/src/igb.h:55:0,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:53:
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4015:6: error: nested redefinition
of ‘enum pkt_hash_types’
enum pkt_hash_types {
^
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4015:6: error: redeclaration of
‘enum pkt_hash_types’
In file included from include/linux/if_ether.h:23:0,
from include/uapi/linux/ethtool.h:17,
from include/linux/ethtool.h:16,
from include/linux/netdevice.h:42,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:32:
include/linux/skbuff.h:732:6: note: originally defined here
enum pkt_hash_types {
^
In file included from /usr/local/src/igb/igb-5.2.5/src/igb.h:55:0,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:53:
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4016:2: error: redeclaration of
enumerator ‘PKT_HASH_TYPE_NONE’
PKT_HASH_TYPE_NONE,
^
In file included from include/linux/if_ether.h:23:0,
from include/uapi/linux/ethtool.h:17,
from include/linux/ethtool.h:16,
from include/linux/netdevice.h:42,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:32:
include/linux/skbuff.h:733:2: note: previous definition of ‘PKT_HASH_TYPE_NONE’
was here
PKT_HASH_TYPE_NONE, /* Undefined type */
^
In file included from /usr/local/src/igb/igb-5.2.5/src/igb.h:55:0,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:53:
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4017:2: error: redeclaration of
enumerator ‘PKT_HASH_TYPE_L2’
PKT_HASH_TYPE_L2,
^
In file included from include/linux/if_ether.h:23:0,
from include/uapi/linux/ethtool.h:17,
from include/linux/ethtool.h:16,
from include/linux/netdevice.h:42,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:32:
include/linux/skbuff.h:734:2: note: previous definition of ‘PKT_HASH_TYPE_L2’
was here
PKT_HASH_TYPE_L2, /* Input: src_MAC, dest_MAC */
^
In file included from /usr/local/src/igb/igb-5.2.5/src/igb.h:55:0,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:53:
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4018:2: error: redeclaration of
enumerator ‘PKT_HASH_TYPE_L3’
PKT_HASH_TYPE_L3,
^
In file included from include/linux/if_ether.h:23:0,
from include/uapi/linux/ethtool.h:17,
from include/linux/ethtool.h:16,
from include/linux/netdevice.h:42,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:32:
include/linux/skbuff.h:735:2: note: previous definition of ‘PKT_HASH_TYPE_L3’
was here
PKT_HASH_TYPE_L3, /* Input: src_IP, dst_IP */
^
In file included from /usr/local/src/igb/igb-5.2.5/src/igb.h:55:0,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:53:
/usr/local/src/igb/igb-5.2.5/src/kcompat.h:4019:2: error: redeclaration of
enumerator ‘PKT_HASH_TYPE_L4’
PKT_HASH_TYPE_L4,
^
In file included from include/linux/if_ether.h:23:0,
from include/uapi/linux/ethtool.h:17,
from include/linux/ethtool.h:16,
from include/linux/netdevice.h:42,
from /usr/local/src/igb/igb-5.2.5/src/igb_main.c:32:
include/linux/skbuff.h:736:2: note: previous definition of ‘PKT_HASH_TYPE_L4’
was here
PKT_HASH_TYPE_L4, /* Input: src_IP, dst_IP, src_port, dst_port */
^
make[2]: *** [/usr/local/src/igb/igb-5.2.5/src/igb_main.o] Error 1
make[1]: *** [_module_/usr/local/src/igb/igb-5.2.5/src] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-30-generic'
make: *** [default] Error 2
Unfortunately the ticket linked to above does not offer any suggestions that
work for me (making with "make CFLAGS_EXTRA=-Dskb_set_hash" didn't work) and an
updated module was released soon enough that it wasn't a problem.
Currently I am using the 5.1.2 module version which has no problems building.
Thank You, I hope this helps
David
----------------------------------------------------------------------------------------------------------------------------------------
This email message has been delivered safely and archived online by Mimecast.
For more information please visit http://www.mimecast.com
-----------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
E1000-devel mailing list
E1000-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit
http://communities.intel.com/community/wired