<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:03:02 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-6763] redefinition of sk_sleep when using external OFED and CentOS 6.5</title>
                <link>https://jira.whamcloud.com/browse/LU-6763</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While building Lustre master on CentOS 6.5 with 2.6.32-431.el6 kernel and OFED 3.12-1 we get a build error:&lt;/p&gt;

&lt;p&gt;[  212s] In file included from /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/klnds/o2iblnd/o2iblnd.h:82,&lt;br/&gt;
[  212s]                  from /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/klnds/o2iblnd/o2iblnd.c:42:&lt;br/&gt;
[  212s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/include/lnet/lib-lnet.h:708: error: redefinition of &apos;sk_sleep&apos;&lt;br/&gt;
[  212s] /usr/src/kernel-modules-ofed/x86_64/cray_ari_s_cos/include/linux/compat-2.6.35.h:41: note: previous definition of &apos;sk_sleep&apos; was here&lt;/p&gt;

&lt;p&gt;The kernel is not providing sk_sleep:&lt;br/&gt;
[  146s] checking if Linux kernel has &apos;sk_sleep&apos;... no&lt;/p&gt;

&lt;p&gt;So it appears that the compat header from OFED defines sk_sleep, then later lnet/include/lnet/lib-lnet.h checks if the kernel provides sk_sleep and defines sk_sleep again if the kernel doesn&apos;t.&lt;/p&gt;</description>
                <environment>Lustre master on CentOS 6.5 with 2.6.32-431.el6 kernel and OFED 3.12-1</environment>
        <key id="30807">LU-6763</key>
            <summary>redefinition of sk_sleep when using external OFED and CentOS 6.5</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="jmiller">Justin Miller</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 24 Jun 2015 17:45:52 +0000</created>
                <updated>Mon, 18 Jul 2016 12:49:53 +0000</updated>
                            <resolved>Fri, 10 Jul 2015 12:15:02 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="119491" author="simmonsja" created="Wed, 24 Jun 2015 17:56:08 +0000"  >&lt;p&gt;One of those funny corner cases. The solution is to move the sk_sleep test out of libcfs to lustre-lnet.m4. There we can use HAVE_COMPACT to include compact-2.6.h which will contain the OFED version of sk_sleep.&lt;/p&gt;</comment>
                            <comment id="119508" author="gerrit" created="Wed, 24 Jun 2015 18:47:04 +0000"  >&lt;p&gt;James Simmons (uja.ornl@yahoo.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15386&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15386&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6763&quot; title=&quot;redefinition of sk_sleep when using external OFED and CentOS 6.5&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6763&quot;&gt;&lt;del&gt;LU-6763&lt;/del&gt;&lt;/a&gt; lnet: test for sk_sleep presence in compact-2.6.h&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7f8c7d7904ebad8afbcbd64fc147f7ea7abe23da&lt;/p&gt;</comment>
                            <comment id="119509" author="simmonsja" created="Wed, 24 Jun 2015 18:49:44 +0000"  >&lt;p&gt;Justin can you try the patch at &lt;a href=&quot;http://review.whamcloud.com/#/c/15386&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/15386&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="119516" author="hornc" created="Wed, 24 Jun 2015 19:30:18 +0000"  >&lt;p&gt;Hi James,&lt;/p&gt;

&lt;p&gt;I tried the patch and got this:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[  116s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.c: In function &apos;lnet_sock_accept&apos;:
[  116s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.c:575: error: implicit declaration of function &apos;sk_sleep&apos;
[  116s] cc1: warnings being treated as errors
[  116s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.c:575: error: passing argument 1 of &apos;add_wait_queue&apos; makes pointer from integer without a cast
[  116s] /usr/src/linux-2.6.32-431.el6_1.0000.8785/include/linux/wait.h:122: note: expected &apos;struct wait_queue_head_t *&apos; but argument is of type &apos;int&apos;
[  116s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.c:584: error: passing argument 1 of &apos;remove_wait_queue&apos; makes pointer from integer without a cast
[  116s] /usr/src/linux-2.6.32-431.el6_1.0000.8785/include/linux/wait.h:124: note: expected &apos;struct wait_queue_head_t *&apos; but argument is of type &apos;int&apos;
[  116s] make[8]: *** [/home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.o] Error 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="119517" author="hornc" created="Wed, 24 Jun 2015 19:32:04 +0000"  >&lt;p&gt;FWIW, we&apos;re trying to build commit 0b868add80281c085ce1b297d1cb078deaab802a + your patch from this ticket. I&apos;ll try a later master commit.&lt;/p&gt;</comment>
                            <comment id="119521" author="simmonsja" created="Wed, 24 Jun 2015 19:45:33 +0000"  >&lt;p&gt;Ah I see what I missed. lib-socket.c needs to include compact-2.6.h as well.&lt;/p&gt;</comment>
                            <comment id="119525" author="simmonsja" created="Wed, 24 Jun 2015 20:05:53 +0000"  >&lt;p&gt;Give it try now.&lt;/p&gt;</comment>
                            <comment id="119527" author="hornc" created="Wed, 24 Jun 2015 21:06:09 +0000"  >&lt;p&gt;One thing after another. I&apos;m not sure why o2iblnd is able to compile (o2iblnd.h also includes compat-2.6.h) but not lib-socket.c...&lt;/p&gt;

&lt;p&gt;[  223s] /home/abuild/rpmbuild/BUILD/cray-lustre/lnet/lnet/lib-socket.c:46:30: error: linux/compat-2.6.h: No such file or directory&lt;/p&gt;</comment>
                            <comment id="119530" author="hornc" created="Wed, 24 Jun 2015 21:18:14 +0000"  >&lt;p&gt;I think the answer lies in the Makefile.in&apos;s. lnet/klnds/o2iblnd/Makefile.in has:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;# Need to make sure that an external OFED source pool overrides
# any in-kernel OFED sources
NOSTDINC_FLAGS += @EXTRA_OFED_INCLUDE@
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think we&apos;d need something similar in the lnet/lnet/Makefile.in&lt;/p&gt;

&lt;p&gt;Edit - I&apos;ll add that automake and friends are sort of black magic to me, so there might be a different or better way of fixing this.&lt;/p&gt;</comment>
                            <comment id="119539" author="simmonsja" created="Wed, 24 Jun 2015 22:34:50 +0000"  >&lt;p&gt;Added automagic stuff. Try it again.&lt;/p&gt;</comment>
                            <comment id="119609" author="simmonsja" created="Thu, 25 Jun 2015 16:29:49 +0000"  >&lt;p&gt;Sorry I needed to update the patch. I discovered the Mellanox doesn&apos;t just provide a compatibility layer but it actually replaces core linux network headers. To handle this you need to have compact-2.6.h first in every file that has sock.h. I found just placing compact-2.6.h in lib-types.h caused other nightmares so the best solution was to remove sock.h in lib-types.h and place compact-2.6 at the top of every file that uses sock.h.&lt;/p&gt;</comment>
                            <comment id="120298" author="pjones" created="Fri, 3 Jul 2015 17:55:44 +0000"  >&lt;p&gt;Amir&lt;/p&gt;

&lt;p&gt;Could you please take care of this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="120926" author="gerrit" created="Fri, 10 Jul 2015 03:12:43 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/15386/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15386/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6763&quot; title=&quot;redefinition of sk_sleep when using external OFED and CentOS 6.5&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6763&quot;&gt;&lt;del&gt;LU-6763&lt;/del&gt;&lt;/a&gt; lnet: test for sk_sleep presence in compact-2.6.h&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 87fe2c045ff07cadb3c2034618254a6acfe53180&lt;/p&gt;</comment>
                            <comment id="120956" author="pjones" created="Fri, 10 Jul 2015 12:15:02 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="30839">LU-6769</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="38182">LU-8401</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzxgjj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>