[ofa-general] [PATCH] LNXI Fixed ofed_scripts configure to select sp4 patches for SLES9 kernel with minor versions equal or greater than 305

Moshe Kazir moshek at voltaire.com
Sat Dec 15 23:12:24 PST 2007


 See patches in the attached message.

It was applied by Vlad.

Moshe

____________________________________________________________
Moshe Katzir   |  +972-9971-8639 (o)   |   +972-52-860-6042  (m)
 
Voltaire - The Grid Backbone
 
 www.voltaire.com

  


-----Original Message-----
From: general-bounces at lists.openfabrics.org
[mailto:general-bounces at lists.openfabrics.org] On Behalf Of David B.
Anderson
Sent: Saturday, December 15, 2007 3:31 AM
To: general at lists.openfabrics.org; vlad at mellanox.co.il
Subject: [ofa-general] [PATCH] LNXI Fixed ofed_scripts configure to
select sp4 patches for SLES9 kernel with minor versions equal or greater
than 305


Hi,

I've created the following patch for OFED 1.2.5.4 to have the kernel for

SLES9 SP4 recognized (2.6.5-7.308).

Even with the patch I then had two back port patches not apply cleanly 
(cxg3_to_2_6_20.patch, rds_to_2_6_9.patch). I hand patched them but now 
I'm getting the following compiler errors:

In file included from
/usr/src/linux-2.6.5-7.308/include/linux/module.h:10,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/module.h:4,
                 from
/usr/src/linux-2.6.5-7.308/include/linux/device.h:21,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/device.h:4,
                 from 
/usr/src/linux-2.6.5-7.308/include/linux/netdevice.h:38,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/netdevice.h:4,
                 from 
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c:32:
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/sched.h:8: 
warning: static declaration for `wait_for_completion_timeout' follows 
non-static
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c:67: 
warning: initialization from incompatible pointer type
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c: 
In function `addr_resolve_remote':
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c:192: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c:193: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c:197: 
error: structure has no member named `idev'
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniband
/core/addr.c: 
At top level:
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/device.h:48: 
warning: `class_create' defined but not used
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/device.h:82: 
warning: `class_destroy' defined but not used
/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/kernel_addons/back
port/2.6.5_sles9_sp4/include/linux/device.h:108: 
warning: `class_device_create' defined but not used
make[6]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniban
d/core/addr.o] 
Error 1
make[5]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniban
d/core] 
Error 2
make[4]: *** 
[/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default/drivers/infiniban
d] 
Error 2
make[3]: *** 
[_module_/home/danderson/rpmbuild/BUILD/ofa_kernel/obj/default] Error 2
make[2]: *** [modules] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.6.5-7.308-obj/x86_64/default'
make: *** [kernel] Error 2

Does anyone have OFED 1.2.5.4 building for SLES 9 SP4?

Thanks

-- 
David B. Anderson 
Linux Networx
Sr. Software Engineer
Email: danderson at lnxi.com
Phone: (801) 649-1311

-------------- next part --------------
An embedded message was scrubbed...
From: "Moshe Kazir" <moshek at voltaire.com>
Subject: [ofa-general] OFED-1.2.5 backport patches for SLES9 SP4 
Date: Sun, 25 Nov 2007 09:59:26 +0200
Size: 370044
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071216/33f1d5e6/attachment.mht>


More information about the general mailing list