[ewg] compat-rdma compile problem on OFED-3.5.2-rc3, on SLES11SP2
Jeff Becker
jeffrey.c.becker at nasa.gov
Fri Dec 13 17:25:06 PST 2013
Hi Bill,
On 12/13/2013 04:23 PM, Bill Snapko wrote:
> Hi Jeff,
>
> I had trouble building on something other than the default SLES 11sp2 kernel. I think the default kernel version for 11sp2 is 3.0.13-0.27-default.
>
> I'm just guessing that you are trying to build the package with a kernel version something other than 3.0.13-0.27-default.
>
> I can build rc3 on SLES 11sp2 with the 3.0.13-0.27-default kernel. Using another kernel version like 3.0.80-0.7-default doesn't work. I get the same or similar build errors.
Exactly. I found the problem in compat-rdma-3.5/config.mk. As you can
see below, the build only thinks that it has SP2 if the KERNEL_SUBLEVEL
is 13, otherwise it thinks it has SP3. I'm working on a fix, but the
problem is that according to a Novell wiki page I was looking at, SP3
had an original kernel version of 3.0.76. Hence the valid kernel version
ranges for SP2 and SP3 overlap.
-jeff
/* excerpt from compat-rdma-3.5/config.mk */
...
KLIB_SOURCE := $(subst build,source,$(KLIB_BUILD))
NAME := $(shell grep ^NAME $(KLIB_SOURCE)/Makefile | sed -n 's/.*=
*\(.*\)/\1/p')
ifneq ($(NAME),)
ifeq ("$(strip $(NAME))","Sneaky Weasel")
SLES_MAJOR := "11"
KERNEL_SUBLEVEL := $(shell grep ^SUBLEVEL $(KLIB_SOURCE)/Makefile |
sed -n 's/.*= *\(.*\)/\1/p')
ifeq ($(KERNEL_SUBLEVEL),13) <- this is the problem!!
SLES_MINOR := "2"
CONFIG_COMPAT_SLES_11_2 := y
else
SLES_MINOR := "3"
CONFIG_COMPAT_SLES_11_3 := y
endif
endif
endif
>
> Bill
>
> -----Original Message-----
> From: ewg-bounces at lists.openfabrics.org [mailto:ewg-bounces at lists.openfabrics.org] On Behalf Of Jeff Becker
> Sent: Friday, December 13, 2013 1:38 PM
> To: ewg at lists.openfabrics.org; Rupert Dance
> Subject: [ewg] compat-rdma compile problem on OFED-3.5.2-rc3, on SLES11SP2
>
> Does this look familiar to anyone? Thanks.
>
> -jeff
>
> /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/drivers/infiniband/core/addr.c:
> In function 'dst_fetch_ha':
> /var/tmp/OFED_topdir/BUILD/compat-rdma-3.5/drivers/infiniband/core/addr.c:197:
> error: implicit declaration of function 'dst_get_neighbour'
>
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ewg/attachments/20131213/27a2a82b/attachment.html>
More information about the ewg
mailing list