<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Below patch solved the problem:<br>
      <a class="moz-txt-link-freetext" href="http://review.whamcloud.com/#/c/8451/1">http://review.whamcloud.com/#/c/8451/1</a><br>
      <br>
      Thanks,<br>
      Aayush.<br>
      <br>
      On 9/25/2014 9:49 PM, Parinay Kondekar wrote:<br>
    </div>
    <blockquote
cite="mid:CAGt+9fvBMstq-PPwJQy_tNXaDKbzNRsuPXC3eWhw+sg=+G-J_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:tahoma,sans-serif;font-size:small">- What
          your lnet/autoconf/lustre-lnet.m4 file says, especially about 
          2.6.32-358 and <font face="Courier New">EXTRA_OFED_INCLUDE ?<br>
            <br>
            <br>
          </font></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Sep 25, 2014 at 8:57 PM, aayush
          agrawal <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:aayush.agrawal@calsoftinc.com"
              target="_blank">aayush.agrawal@calsoftinc.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi,<br>
              <br>
              I am trying to build lustre 2.5.0 against OFED but not
              able to compile lustre with OFED.<br>
              My CentOS version is 6.4, So I downloaded
              MLNX_OFED_LINUX-2.2-1.0.1-rhel6.4-x86_64.<br>
              <font face="Courier New"># cat /etc/issue<br>
                CentOS release 6.4 (Final)<br>
                Kernel \r on an \m</font><br>
              <br>
              Then I could run following commands successfully:<br>
              <br>
              ./mlnxofedinstall -vvv --add-kernel-support
              --without-32bit --without-fw-update --hpc<br>
              /etc/init.d/openibd restart<br>
              configure ib0 interface<br>
              <br>
              After this I tried to compile lustre with OFED. <br>
              I could run <font face="Courier New">./configure
                --with-linux=Path_to_linux-2.6.32-358.18.1.el6
                --with-o2ib=/usr/src/ofa_kernel/default/</font> command
              successfully.<br>
              <br>
              But make command gave me below error:<br>
              <br>
              <font face="Courier New">In file included from
                include/trace/ftrace.h:440,<br>
                                 from include/trace/define_trace.h:73,<br>
                                 from
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:904,<br>
                                 from
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/super.c:56:<br>
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:

                In function 'ftrace_profile_enable_ldiskfs_free_inode':<br>
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18:

                error: implicit declaration of function
                'register_trace_ldiskfs_free_inode'<br>
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:

                In function 'ftrace_profile_disable_ldiskfs_free_inode':<br>
                /root/rpmbuild/BUILD/lustre-2.5.0/ldiskfs/trace/events/ldiskfs.h:18:

                error: implicit declaration of function
                'unregister_trace_ldiskfs_free_inode'<br>
                .....<br>
                .....</font><br>
              <br>
              I looked online for this error and found bug registered on
              the same: <a moz-do-not-send="true"
                href="https://jira.hpdd.intel.com/browse/LU-4266"
                target="_blank">https://jira.hpdd.intel.com/browse/LU-4266</a><br>
              I tried below patches suggested in the link<b> one by one</b>:<br>
              1. <a moz-do-not-send="true"
                href="http://review.whamcloud.com/#/c/8451/2"
                target="_blank">http://review.whamcloud.com/#/c/8451/2</a><br>
              2. <a moz-do-not-send="true"
                href="http://review.whamcloud.com/#/c/9109"
                target="_blank">http://review.whamcloud.com/#/c/9109</a><br>
              <br>
              Both patches resolve earlier error but then gives below
              error:<br>
              <font face="Courier New">CC [M] 
/home/calsoft/common/lustre_2.5.0/lustre-2.5.0_InfinibandTrial/fresh/lustre-2.5.0_61/lnet/klnds/o2iblnd/o2iblnd.o<br>
                gcc: @EXTRA_OFED_INCLUDE@: No such file or directory<br>
              </font><br>
              In my understanding this must be due to change in lustre
              version. The patches seems to be for lustre version 2.5.2
              and 2.6.0.<br>
              Could anyone please point me to corresponding patches for
              2.5.0 or suggest if I am missing anything in above
              explained procedure.<br>
              <br>
              Thanks,<br>
              Aayush. </div>
            <br>
            _______________________________________________<br>
            Lustre-discuss mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.lustre.org/mailman/listinfo/lustre-discuss"
              target="_blank">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>