[openib-general] OFED 1.0 Install problems - Kernel Compile error - RH 2.6.9-42EL

Snider, Tim Tim.Snider at lsi.com
Mon Jan 29 05:49:10 PST 2007


Trying to install OFED 1.0 on RH EL 2.6.9-42. Recompile of kernel gives
redefinition of gfp_t. Can someone point me to a fix? I suspect there's
a kernel setting I need to tweak.
 
[root at FedoraCore121 ~]# uname -a
Linux FedoraCore121 2.6.9-42.EL_lustre.1.5.95smp #1 SMP Thu Sep 28
06:36:13 MDT 2006 i686 i686 i386 GNU/Linux

[root at FedoraCore121 ~]# vim /tmp/OFED.1479.log
  gcc
-Wp,-MD,/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core
/.index.o.d -nostdinc -iwithprefix include -D__KERNEL__
-I/var/tmp/OFED/tmp/openib/openib/include
-I/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include
-Iinclude  -Iinclude2 -I/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include
-I/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core -Wall
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Os
-fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float
-m32 -fno-builtin-sprintf -fno-builtin-log2 -fno-builtin-puts
-mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mregparm=3
-I/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/asm-i386/mach-generic
-Iinclude/asm-i386/mach-generic
-I/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/asm-i386/mach-default
-Iinclude/asm-i386/mach-default
-I/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include
-I/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/ulp/ipoib
-I/var/tmp/OFED/tmp/openib/openib/drivers/infiniband/debug -D__nocast=
-DMODULE -DKBUILD_BASENAME=index -DKBUILD_MODNAME=findex -c -o
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/.tmp_in
dex.o
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/index.c
In file included from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/slab.h:15,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/slab.h:4,
                 from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/percpu.h:4,
                 from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/sched.h:31,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/sched.h:4,
                 from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/module.h:10,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/index.c
:34:
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/gfp.h:133: error:
redefinition of typedef 'gfp_t'
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/types.h:7: error: previous declaration of 'gfp_t' was here
In file included from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/percpu.h:4,
                 from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/sched.h:31,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/sched.h:4,
                 from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/module.h:10,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/index.c
:34:
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/slab.h:8: error: conflicting types for 'kzalloc'
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/slab.h:101:
error: previous declaration of 'kzalloc' was here
In file included from
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/module.h:10,
                 from
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/index.c
:34:
/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/include/linu
x/sched.h:8: error: static declaration of 'wait_for_completion_timeout'
follows non-static declaration
/usr/src/linux-2.6.9-42.EL_lustre.1.5.95/include/linux/completion.h:32:
error: previous declaration of 'wait_for_completion_timeout' was here
make[5]: ***
[/var/tmp/OFED/tmp/openib/openib/src/linux-kernel/infiniband/core/index.
o] Error 1
    
Timothy Snider 
Storage Architect
Strategic Planning, Technology and Architecture

LSI Logic Corporation
3718 North Rock Road
Wichita, KS 67226
(316) 636-8736 
tim.snider at lsi.com <mailto:tim.snider at lsi.com>  

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070129/1541940f/attachment.html>


More information about the general mailing list