<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:48:04 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-5046] build incorrectly requires system installed zfs headers</title>
                <link>https://jira.whamcloud.com/browse/LU-5046</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On b2_3:&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;Making all in utils
mount_utils_zfs.c:33:27: error: libzfs/libzfs.h: No such file or directory
mount_utils_zfs.c:55: error: expected &apos;=&apos;, &apos;,&apos;, &apos;;&apos;, &apos;asm&apos; or &apos;__attribute__&apos; before &apos;*&apos; token
mount_utils_zfs.c:63: error: expected specifier-qualifier-list before &apos;libzfs_handle_t&apos;
mount_utils_zfs.c: In function &apos;zfs_populate_symbols&apos;:
mount_utils_zfs.c:93: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_init&apos;
mount_utils_zfs.c:93: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_init&apos;
cc1: warnings being treated as errors
mount_utils_zfs.c:93: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:95: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_fini&apos;
mount_utils_zfs.c:95: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_fini&apos;
mount_utils_zfs.c:95: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:97: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_load_module&apos;
mount_utils_zfs.c:97: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_load_module&apos;
mount_utils_zfs.c:97: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:99: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:99: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:99: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:101: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_destroy&apos;
mount_utils_zfs.c:101: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_destroy&apos;
mount_utils_zfs.c:101: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:103: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c:103: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c:103: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:105: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_prop_set&apos;
mount_utils_zfs.c:105: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_prop_set&apos;
mount_utils_zfs.c:105: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:107: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_get_user_props&apos;
mount_utils_zfs.c:107: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_get_user_props&apos;
mount_utils_zfs.c:107: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:109: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_name_valid&apos;
mount_utils_zfs.c:109: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_name_valid&apos;
mount_utils_zfs.c:109: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:111: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_open&apos;
mount_utils_zfs.c:111: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_open&apos;
mount_utils_zfs.c:111: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:113: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_close&apos;
mount_utils_zfs.c:113: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_close&apos;
mount_utils_zfs.c:113: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:115: error: &apos;struct zfs_symbols&apos; has no member named &apos;nvlist_lookup_string&apos;
mount_utils_zfs.c:115: error: &apos;struct zfs_symbols&apos; has no member named &apos;nvlist_lookup_string&apos;
mount_utils_zfs.c:115: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c:117: error: &apos;struct zfs_symbols&apos; has no member named &apos;nvlist_lookup_nvlist&apos;
mount_utils_zfs.c:117: error: &apos;struct zfs_symbols&apos; has no member named &apos;nvlist_lookup_nvlist&apos;
mount_utils_zfs.c:117: error: type defaults to &apos;int&apos; in declaration of &apos;type name&apos;
mount_utils_zfs.c: At top level:
mount_utils_zfs.c:129: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c:145: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c:157: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c: In function &apos;zfs_write_ldd&apos;:
mount_utils_zfs.c:188: error: &apos;zfs_handle_t&apos; undeclared (first use in this function)
mount_utils_zfs.c:188: error: (Each undeclared identifier is reported only once
mount_utils_zfs.c:188: error: for each function it appears in.)
mount_utils_zfs.c:188: error: &apos;zhp&apos; undeclared (first use in this function)
mount_utils_zfs.c:194: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:194: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:194: error: &apos;ZFS_TYPE_FILESYSTEM&apos; undeclared (first use in this function)
mount_utils_zfs.c:202: error: implicit declaration of function &apos;zfs_set_prop_int&apos;
mount_utils_zfs.c:214: error: implicit declaration of function &apos;zfs_set_prop_str&apos;
mount_utils_zfs.c:234: error: implicit declaration of function &apos;zfs_set_prop_param&apos;
mount_utils_zfs.c:252: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c: At top level:
mount_utils_zfs.c:257: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c:279: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c:298: error: expected &apos;)&apos; before &apos;*&apos; token
mount_utils_zfs.c: In function &apos;zfs_read_ldd&apos;:
mount_utils_zfs.c:324: error: &apos;zfs_handle_t&apos; undeclared (first use in this function)
mount_utils_zfs.c:324: error: &apos;zhp&apos; undeclared (first use in this function)
mount_utils_zfs.c:330: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:330: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:330: error: &apos;ZFS_TYPE_FILESYSTEM&apos; undeclared (first use in this function)
mount_utils_zfs.c:334: error: implicit declaration of function &apos;zfs_get_prop_int&apos;
mount_utils_zfs.c:346: error: implicit declaration of function &apos;zfs_get_prop_str&apos;
mount_utils_zfs.c:366: error: implicit declaration of function &apos;zfs_get_prop_param&apos;
mount_utils_zfs.c:386: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c: In function &apos;zfs_make_lustre&apos;:
mount_utils_zfs.c:474: error: &apos;zfs_handle_t&apos; undeclared (first use in this function)
mount_utils_zfs.c:474: error: &apos;zhp&apos; undeclared (first use in this function)
mount_utils_zfs.c:475: error: &apos;zpool_handle_t&apos; undeclared (first use in this function)
mount_utils_zfs.c:475: error: &apos;php&apos; undeclared (first use in this function)
mount_utils_zfs.c:514: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:514: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:514: error: &apos;ZFS_TYPE_FILESYSTEM&apos; undeclared (first use in this function)
mount_utils_zfs.c:516: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_destroy&apos;
mount_utils_zfs.c:518: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c:524: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c:533: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_open&apos;
mount_utils_zfs.c:536: error: &apos;struct zfs_symbols&apos; has no member named &apos;zpool_close&apos;
mount_utils_zfs.c: In function &apos;zfs_prepare_lustre&apos;:
mount_utils_zfs.c:609: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_name_valid&apos;
mount_utils_zfs.c:609: error: &apos;ZFS_TYPE_FILESYSTEM&apos; undeclared (first use in this function)
mount_utils_zfs.c: In function &apos;zfs_label_lustre&apos;:
mount_utils_zfs.c:629: error: &apos;zfs_handle_t&apos; undeclared (first use in this function)
mount_utils_zfs.c:629: error: &apos;zhp&apos; undeclared (first use in this function)
mount_utils_zfs.c:635: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_open&apos;
mount_utils_zfs.c:635: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:635: error: &apos;ZFS_TYPE_FILESYSTEM&apos; undeclared (first use in this function)
mount_utils_zfs.c:640: error: &apos;struct zfs_symbols&apos; has no member named &apos;zfs_close&apos;
mount_utils_zfs.c: In function &apos;zfs_init&apos;:
mount_utils_zfs.c:667: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_load_module&apos;
mount_utils_zfs.c:673: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:673: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_init&apos;
mount_utils_zfs.c: In function &apos;zfs_fini&apos;:
mount_utils_zfs.c:687: error: &apos;g_zfs&apos; undeclared (first use in this function)
mount_utils_zfs.c:688: error: &apos;struct zfs_symbols&apos; has no member named &apos;libzfs_fini&apos;
make[4]: *** [mount_lustre-mount_utils_zfs.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is because the compilation of &lt;tt&gt;mount_utils_zfs.c&lt;/tt&gt; is trying to get &lt;tt&gt;libzfs/libzfs.h&lt;/tt&gt; from &lt;tt&gt;/usr/include&lt;/tt&gt; rather than using the zfs-devel that was unpacked by the build, for the build and pointed to configure with:&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;--with-zfs=/var/lib/jenkins/workspace/lustre-b2_3/arch/i686/build_type/server/distro/el6/ib_stack/inkernel/BUILD/usr/src/zfs-0.6.0-rc10/2.6.32-279.5.1.el6_lustre.i686
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Using the pool of sources installed for the build is the right place to get those headers, not the system since the version installed on the system will be unknown whereas the version installed by the build for the build are absolutely known and guaranteed to match the kernel and/or libraries being used by the build which should be out of the same source pool.&lt;/p&gt;</description>
                <environment></environment>
        <key id="24647">LU-5046</key>
            <summary>build incorrectly requires system installed zfs headers</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="brian">Brian Murrell</reporter>
                        <labels>
                    </labels>
                <created>Sat, 10 May 2014 12:06:32 +0000</created>
                <updated>Thu, 27 Aug 2015 14:47:40 +0000</updated>
                            <resolved>Thu, 27 Aug 2015 14:47:40 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="83703" author="brian" created="Sat, 10 May 2014 13:56:38 +0000"  >&lt;p&gt;Looks like this also affects the lustre-daos branch.&lt;/p&gt;</comment>
                            <comment id="83706" author="simmonsja" created="Sat, 10 May 2014 14:35:52 +0000"  >&lt;p&gt;Do you have &lt;a href=&quot;http://review.whamcloud.com/#/c/8261&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8261&lt;/a&gt; from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3497&quot; title=&quot;Lustre build system hardcoded to using ZFS development headers in /usr/include only. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3497&quot;&gt;&lt;del&gt;LU-3497&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="83712" author="brian" created="Sun, 11 May 2014 04:22:26 +0000"  >&lt;p&gt;Probably not, but nice catch &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=simmonsja&quot; class=&quot;user-hover&quot; rel=&quot;simmonsja&quot;&gt;simmonsja&lt;/a&gt;.  So this change probably needs porting to a few branches.  Thanks much for the pointer &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=simmonsja&quot; class=&quot;user-hover&quot; rel=&quot;simmonsja&quot;&gt;simmonsja&lt;/a&gt;!&lt;/p&gt;</comment>
                            <comment id="83791" author="bzzz" created="Sun, 11 May 2014 15:41:26 +0000"  >&lt;p&gt;try with --with-zfs-include-prefix= ?&lt;/p&gt;</comment>
                            <comment id="83792" author="simmonsja" created="Sun, 11 May 2014 16:44:53 +0000"  >&lt;p&gt;With the patch it will first try to see if ZFS headers are installed (/usr/include/...). If it doesn&apos;t find them then with will use the headers in the zfs source tree. If that doesn&apos;t work then you can use --with-zfs-devel=path_to_headers&lt;/p&gt;</comment>
                            <comment id="84305" author="simmonsja" created="Fri, 16 May 2014 20:33:32 +0000"  >&lt;p&gt;Does that patch help?&lt;/p&gt;</comment>
                            <comment id="84324" author="brian" created="Fri, 16 May 2014 21:40:42 +0000"  >&lt;p&gt;It looks like it should/would.  I have asked the branch owners of branches that it has not yet landed on to try to get it landed.&lt;/p&gt;

&lt;p&gt;As I noted in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3497&quot; title=&quot;Lustre build system hardcoded to using ZFS development headers in /usr/include only. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3497&quot;&gt;&lt;del&gt;LU-3497&lt;/del&gt;&lt;/a&gt; however, it looks like that patch only deals with getting the headers that might be needed from an unpacked zfs-devel but does not do likewise for  libraries though.  It seems to me that the build of any userspace tool that needs, for example, libzfs, ought to get it from that unpacked zfs-devel (and an accompanying zfs RPM which would be needed to give the zfs-devel unversioned library symlinks somewhere to point to).  What are your thoughts?&lt;/p&gt;</comment>
                            <comment id="125360" author="simmonsja" created="Thu, 27 Aug 2015 14:19:50 +0000"  >&lt;p&gt;Since this is for 2.3 we can close this ticket now.&lt;/p&gt;</comment>
                            <comment id="125362" author="pjones" created="Thu, 27 Aug 2015 14:31:33 +0000"  >&lt;p&gt;Is it no longer an issue on current master then?&lt;/p&gt;</comment>
                            <comment id="125364" author="simmonsja" created="Thu, 27 Aug 2015 14:35:15 +0000"  >&lt;p&gt;I always build against the source tree on our build box since I don&apos;t have permission to install ZFS headers there. The problem here is that the reporter didn&apos;t have patch 8261 in the 2.3 tree. Patch 8261 has landed to master long ago.&lt;/p&gt;</comment>
                            <comment id="125372" author="pjones" created="Thu, 27 Aug 2015 14:47:40 +0000"  >&lt;p&gt;Ah yes. So let&apos;s close it as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3497&quot; title=&quot;Lustre build system hardcoded to using ZFS development headers in /usr/include only. &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3497&quot;&gt;&lt;del&gt;LU-3497&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <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|hzwm9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13939</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>