<br>
<div class="gmail_quote">
<div><font size="4">Dear all,</font></div>
<div><font size="4"></font> </div>
<div><font size="4">I have recompiled the kernel to 2.6.18, and try to install  OFED-1.5.2 instead. </font></div>
<div><font size="4"></font> </div>
<div><font size="4">Now the kernel version is</font></div>
<div><font size="4"></font> </div>
<div><font size="4">[litan@tera04 OFED-1.5.2]$ uname -a<br>Linux <a href="http://tera04.ultralight.org/" target="_blank">tera04.ultralight.org</a> 2.6.18-prep #1 SMP Tue Feb 22 18:51:00 EST 2011 x86_64 x86_64 x86_64 GNU/Linux</font></div>

<div><font size="4"></font> </div>
<div><font size="4">But I still get lots of redefinition errors as follows:</font></div>
<div><font size="4"></font> </div>
<div><font size="4">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-mlx4_en-mod --with-cxgb3-mod --with-nes-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --with-rds-mod' --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define 'KVERSION 2.6.18-prep' --define 'K_SRC /lib/modules/2.6.18-prep/build' --define 'network_dir /etc/sysconfig/network-scripts' --define '_prefix /usr' --define '__arch_install_post %{nil}' /atlas/data18a/litan/OFED-1.5.3-rc5/SRPMS/ofa_kernel-1.5.3-OFED.1.5.3.rc5.src.rpm 
<div class="im"><br>Failed to build ofa_kernel RPM<br></div>See /tmp/OFED.22046.logs/ofa_kernel.rpmbuild.log<br></font></div>
<div><font size="4"></font> </div>
<div><font size="4">the file /tmp/OFED.22046.logs/ofa_kernel.rpmbuild.log<br>:</font></div>
<div><font size="4"></font> </div>
<div><font size="4">-I/usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.x86_64/arch//include \<br>-include /lib/modules/2.6.18-prep/build/include/linux/autoconf.h \<br>  -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -fwrapv -Os  -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -g  -fno-stack-protector -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.5.2/drivers/infiniband/core/.tmp_addr.o /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c<br>
In file included from include/linux/list.h:6,<br>                 from include/linux/mutex.h:13,<br>                 from /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c:36:<br>/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/stddef.h:9: error: redeclaration of enumerator 'false'<br>
include/linux/stddef.h:16: error: previous definition of 'false' was here<br>/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/stddef.h:11: error: redeclaration of enumerator 'true'<br>
include/linux/stddef.h:18: error: previous definition of 'true' was here<br>In file included from include/linux/prefetch.h:13,<br>                 from include/linux/list.h:8,<br>                 from include/linux/mutex.h:13,<br>
                 from /var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/drivers/infiniband/core/addr.c:36:<br>/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:6: error: redefinition of typedef 'bool'<br>
include/linux/types.h:36: error: previous declaration of 'bool' was here<br>/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:7: error: redefinition of typedef '__sum16'<br>
include/linux/types.h:180: error: previous declaration of '__sum16' was here<br>/var/tmp/OFED_topdir/BUILD/ofa_kernel-1.5.2/kernel_addons/backport/2.6.18/include/linux/types.h:8: error: redefinition of typedef '__wsum'<br>
include/linux/types.h:181: error: previous declaration of '__wsum' was here</font></div>
<div><font size="4"></font> </div>
<div><font size="4"></font> </div>
<div><font size="4">I have the full log file in the attachment. Dose it related to that I try many times to install different version of OFED? Thanks a million!</font></div>
<div>
<div></div>
<div class="h5">
<div> </div>
<div><br><br>-- <br></div>
<div>Best regards,</div>
<div> </div>
<div>-----------------------------------------------------------------------------------------------<br>Li, Tan<br>PhD Candidate & Research Assistant, <br>Electrical Engineering, <br>Stony Brook University, NY<br><br>
Personal Web Site: <a href="https://sites.google.com/site/homepagelitan/Home" target="_blank">https://sites.google.com/site/homepagelitan/Home</a><br><br>Email: <a href="mailto:fanqielee@gmail.com" target="_blank">fanqielee@gmail.com</a></div>
<br></div></div></div><br><br clear="all"><br>-- <br>
<div>Best regards,</div>
<div> </div>
<div>-----------------------------------------------------------------------------------------------<br>Li, Tan<br>PhD Candidate & Research Assistant, <br>Electrical Engineering, <br>Stony Brook University, NY<br><br>
Personal Web Site: <a href="https://sites.google.com/site/homepagelitan/Home" target="_blank">https://sites.google.com/site/homepagelitan/Home</a><br><br>Email: <a href="mailto:fanqielee@gmail.com" target="_blank">fanqielee@gmail.com</a></div>
<br>