Dear experts,<br><br> First I don't know if I am posting in the right mailing list, if not, please apologize and let me know.<br><br><div class="gmail_quote">Here is my problem:<br>I am running a mandriva cluster ( Mandriva 2010.0 kernel 2.6.31.12), with a bunch of mellanox cards. I struggled during one week but finally I was able to install OFED 1.5.1 on my running kernel  2.6.31.12 (linux kernel provided by the mandriva distribution) and now it works very well and fast !<br>

<br>Recently I upgraded a part of my cluster with the latest stable kernel 2.6.32.27 downloaded from <a href="http://www.kernel.org" target="_blank">http://www.kernel.org</a>.<br><br>So far, I am not able to build the ofa_kernel from OFED 1.5.1 package for the kernel 2.6.32.27.<br>

<br>When I tried to rebuild the RPM, it stops with the following message :<br><br>-------------------------------------------------------------------------------------------------------------------------------------------------<br>

rpm -ivh ofa_kernel-1.5.1-OFED.1.5.1..src.rpm<br><br>cd rpmbuild/SPECS<br><br>rpmbuild -vv -bb ofa_kernel.spec --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 ' --define 'build_kernel_ib 1' --define 'build_kernel_ib_devel 1' --define 'KVERSION 2.6.32.27' --define 'K_SRC /net/direct/rhdata/jcl/linux-2.6.32.27' --define 'network_dir /etc/sysconfig/network-scripts' --define '_prefix /usr' --define '__arch_install_post %{nil}'<br>

....<br>....<br>....<br>Installing kernel modules<br>make -C /net/direct/rhdata/jcl/linux-2.6.32.27 SUBDIRS="/root/rpmbuild/BUILD/ofa_kernel-1.5.1" \<br>                INSTALL_MOD_PATH=/root/rpmbuild/BUILD/ofa_kernel-1.5.1 \<br>

                 modules_install;<br>make[1]: Entering directory `/net/direct/rhdata/jcl/linux-2.6.32.27'<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_addr.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_cm.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_core.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_mad.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_sa.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_ucm.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_umad.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/ib_uverbs.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/iw_cm.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/rdma_cm.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/core/rdma_ucm.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/cxgb3/iw_cxgb3.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/mlx4/mlx4_ib.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/mthca/ib_mthca.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/infiniband/hw/nes/iw_nes.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/cxgb3/cxgb3.ko<br>  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/mlx4/mlx4_core.ko<br>

  INSTALL /root/rpmbuild/BUILD/ofa_kernel-1.5.1/drivers/net/mlx4/mlx4_en.ko<br>  DEPMOD  2.6.32.27<br>WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/<a href="http://2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko" target="_blank">2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko</a> needs unknown symbol ipv6_dev_get_saddr<br>

WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/<a href="http://2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko" target="_blank">2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko</a> needs unknown symbol ip6_route_output<br>

WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/<a href="http://2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko" target="_blank">2.6.32.27/extra/drivers/infiniband/core/ib_addr.ko</a> needs unknown symbol ipv6_chk_addr<br>
WARNING: /root/rpmbuild/BUILD/ofa_kernel-1.5.1/lib/modules/<a href="http://2.6.32.27/extra/drivers/infiniband/hw/nes/iw_nes.ko" target="_blank">2.6.32.27/extra/drivers/infiniband/hw/nes/iw_nes.ko</a> needs unknown symbol crc32c<br>

make[1]: *** [_emodinst_post] Error 1<br>make[1]: Leaving directory `/net/direct/rhdata/jcl/linux-2.6.32.27'<br>make: *** [install_modules] Error 2<br>error: Bad exit status from /var/tmp/rpm-tmp.Shec49 (%install)<br>

<br><br>RPM build errors:<br>    Bad exit status from /var/tmp/rpm-tmp.Shec49 (%install)<br><br>-------------------------------------------------------------------------------------------------------------------------------------------------<br>

<br> According to the output, there are some unresolved symbols which I don't understand.... It looks like I get this unresolved symbols, **only** if I am using a linux kernel that I manually compiled. If I used a kernel provided by my distribution, these unresolved symbols vanished.... <br>

What I am doing wrong ? Is there specifics options to set when we compile the linux kernel from sources ?<br><br> Thanks in advance for your help.<br><br>   Jean-Charles.<br><br>
</div><br>