<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Need help--Failed to build ofa-kernel.rpm while installing OFED1.3 on RHEL5.1 with Kernel 2.6.25-rc3/rc8</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Hello everyone,<BR>
<BR>
I am a newbie to openfabric and I have an issue here which needs your help. When trying to install OFED1.3 on kernel 2.6.25-rc3 or kernel 2.6.25-rc8, I get an ofa-kernel rpm build error:<BR>
"Running rpm -e --allmatches libibverbs libibcommon libibumad librdmacm opensm-libs ibutils openib opensm-libs dapl libibcommon libibumad libibverbs librdmacm ibutils ibutils-libs<BR>
Build ofa_kernel RPM<BR>
Running rpmbuild --rebuild --define '_topdir /var/tmp/OFED_topdir' --define 'configure_options --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-cxgb3-mod --with-nes-mod --with-ipath_inf-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --with-srp-target-mod --with-rds-mod' --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define 'KVERSION 2.6.25-rc3' --define 'K_SRC /lib/modules/2.6.25-rc3/build' --define 'network_dir /etc/sysconfig/network-scripts' --define '_prefix /usr' /ofed1.3/OFED-1.3/SRPMS/ofa_kernel-1.3-ofed1.3.src.rpm<BR>
Failed to build ofa_kernel RPM<BR>
See /tmp/OFED.6361.logs/ofa_kernel.rpmbuild.log"<BR>
<BR>
In the ofa_kernel.rpmbuild.log file, it says:<BR>
gcc -Wp,-MD,/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/.addr.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.1.2/include -D__KERNEL__ \<BR>
-include include/linux/autoconf.h \<BR>
-include /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/include/linux/autoconf.h \<BR>
\<BR>
\<BR>
\<BR>
-I/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/include \<BR>
-I/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/debug \<BR>
-I/usr/local/include/scst \<BR>
-I/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/ulp/srpt \<BR>
-I/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/net/cxgb3 \<BR>
-Iinclude \<BR>
\<BR>
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(addr)" -D"KBUILD_MODNAME=KBUILD_STR(ib_addr)" -c -o /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/.tmp_addr.o /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c: In function 'rdma_translate_ip':<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:113: warning: passing argument 1 of 'ip_dev_find' makes pointer from integer without a cast<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:113: error: too few arguments to function 'ip_dev_find'<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c: In function 'addr_send_arp':<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:161: warning: passing argument 1 of 'ip_route_output_key' from incompatible pointer type<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:161: warning: passing argument 2 of 'ip_route_output_key' from incompatible pointer type<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:161: error: too few arguments to function 'ip_route_output_key'<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c: In function 'addr_resolve_remote':<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:182: warning: passing argument 1 of 'ip_route_output_key' from incompatible pointer type<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:182: warning: passing argument 2 of 'ip_route_output_key' from incompatible pointer type<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:182: error: too few arguments to function 'ip_route_output_key'<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c: In function 'addr_resolve_local':<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:264: warning: passing argument 1 of 'ip_dev_find' makes pointer from integer without a cast<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:264: error: too few arguments to function 'ip_dev_find'<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:268: error: implicit declaration of function 'ZERONET'<BR>
/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.c:272: error: implicit declaration of function 'LOOPBACK'<BR>
make[4]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core/addr.o] Error 1<BR>
make[3]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband/core] Error 2<BR>
make[2]: *** [/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3/drivers/infiniband] Error 2<BR>
make[1]: *** [_module_/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.3] Error 2<BR>
make[1]: Leaving directory `/usr/src/linux-2.6.25-rc3'<BR>
make: *** [kernel] Error 2<BR>
error: Bad exit status from /var/tmp/rpm-tmp.67082 (%build)<BR>
<BR>
<BR>
RPM build errors:<BR>
user vlad does not exist - using root<BR>
group vlad does not exist - using root<BR>
user vlad does not exist - using root<BR>
group vlad does not exist - using root<BR>
Bad exit status from /var/tmp/rpm-tmp.67082 (%build)<BR>
<BR>
Can anyone please point out what might be wrong? Thanks in advance.<BR>
<BR>
Regards<BR>
Joe<BR>
</FONT>
</P>
</BODY>
</HTML>