<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:43:16 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>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-17089] file_allocator.cpp compilation fails due to missing posix_fallocate() in uClibc</title>
                <link>https://jira.mongodb.org/browse/SERVER-17089</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;posix_fallocate() is used in file_allocator.cpp but some C library doesn&apos;t provide it (e.g uClibc).&lt;/p&gt;

&lt;p&gt;This seems to be the case even when we change the preprocessor check form &lt;tt&gt;_&lt;em&gt;linux&lt;/em&gt;_&lt;/tt&gt; to the documented &lt;tt&gt;_XOPEN_SOURCE &amp;gt;= 600 || __POSIX_C_SOURCE &amp;gt;= 200112L&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment>MIPS, 32-bit, uClibc</environment>
        <key id="181246">SERVER-17089</key>
            <summary>file_allocator.cpp compilation fails due to missing posix_fallocate() in uClibc</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="2">Won&apos;t Fix</resolution>
                                        <assignee username="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="raffopazzo">Raffaele Rossi</reporter>
                        <labels>
                            <label>32-bit</label>
                    </labels>
                <created>Wed, 28 Jan 2015 15:07:39 +0000</created>
                <updated>Mon, 27 Apr 2015 20:53:01 +0000</updated>
                            <resolved>Thu, 29 Jan 2015 14:50:40 +0000</resolved>
                                    <version>3.0.0-rc6</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="820769" author="benety.goh" created="Wed, 4 Feb 2015 00:08:28 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=raffopazzo&quot; class=&quot;user-hover&quot; rel=&quot;raffopazzo&quot;&gt;raffopazzo&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the update!&lt;/p&gt;</comment>
                            <comment id="819994" author="raffopazzo" created="Tue, 3 Feb 2015 13:15:57 +0000"  >&lt;p&gt;Back again.&lt;br/&gt;
So it seems that uClibc actually supports &lt;tt&gt;posix_fallocate()&lt;/tt&gt; but for strange reason it hasn&apos;t been included as part of the last official release 0.9.33.2, However, it can be enabled if one builds uClibc out of the master branch. So I believe this ticket can be rejected, if not already.&lt;/p&gt;

&lt;p&gt;Apologies for any confusion.&lt;br/&gt;
Thanks.&lt;br/&gt;
Raf.&lt;/p&gt;</comment>
                            <comment id="816532" author="raffopazzo" created="Thu, 29 Jan 2015 16:20:45 +0000"  >&lt;p&gt;I&apos;ll try look deeper into the uClibc side. I thought &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=acm&quot; class=&quot;user-hover&quot; rel=&quot;acm&quot;&gt;acm&lt;/a&gt; agreed that checking for &lt;tt&gt;posix_fallocate()&lt;/tt&gt; was a good thing to do in first place.&lt;/p&gt;</comment>
                            <comment id="816446" author="benety.goh" created="Thu, 29 Jan 2015 14:50:40 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=raffopazzo&quot; class=&quot;user-hover&quot; rel=&quot;raffopazzo&quot;&gt;raffopazzo&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I would suggest revisiting your uClibc configuration to make posix_fallocate visible to your build. If that doesn&apos;t work, it might be best to file a bug report with uClibc.&lt;/p&gt;

&lt;p&gt;We can always reopen this ticket and review the configure check in greater detail once we get more information on the underlying uClibc issue.&lt;/p&gt;</comment>
                            <comment id="815996" author="raffopazzo" created="Wed, 28 Jan 2015 23:15:02 +0000"  >&lt;p&gt;No. It was fine but I just thought that was cleaner to rely on the linker failing rather than dealing with a cloned environment just to switch -Werror on. I remember I did have a look at the other checks and this would&apos;ve been the only one switching -Werror to do so. It seemed that other tests used a link-time check. Which did make sense to me.&lt;/p&gt;

&lt;p&gt;Let me know what&apos;s the best way for you guys. I&apos;ll be happy to change.&lt;/p&gt;</comment>
                            <comment id="815901" author="benety.goh" created="Wed, 28 Jan 2015 21:38:32 +0000"  >&lt;p&gt;Also, I have noticed in your branch that you switched the configure-time check from a compilation check to a link time check:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/raffopazzo/mongo/commit/bba9cbf6029356c055bfc52b77d17934fa606a19&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/raffopazzo/mongo/commit/bba9cbf6029356c055bfc52b77d17934fa606a19&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Was the compile time check insufficient in your environment to detect the availability of posix_fallocate()?&lt;/p&gt;</comment>
                            <comment id="815775" author="raffopazzo" created="Wed, 28 Jan 2015 19:54:41 +0000"  >&lt;p&gt;I did try it when I first came across this issue.&lt;br/&gt;
Unfortunately it didn&apos;t work because uClibc defines both macros but still doesn&apos;t provide posix_fallocate(). The same may then happen for other C libraries &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;So I falled back to the configure-time check.&lt;/p&gt;</comment>
                            <comment id="815751" author="benety.goh" created="Wed, 28 Jan 2015 19:42:31 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=raffopazzo&quot; class=&quot;user-hover&quot; rel=&quot;raffopazzo&quot;&gt;raffopazzo&lt;/a&gt;, could you please try replacing &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9f30e21c627e4c73ab0b44e45b7ce657b3e2619f/src/mongo/util/file_allocator.cpp#L254&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file_allocator.cpp:254&lt;/a&gt;&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#if defined(__linux__)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;with:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;#if _XOPEN_SOURCE &amp;gt;= 600 || _POSIX_C_SOURCE &amp;gt;= 200112L&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="815382" author="raffopazzo" created="Wed, 28 Jan 2015 15:08:59 +0000"  >&lt;p&gt;Related to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16898&quot; title=&quot;Support cross-compilation for MIPS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16898&quot;&gt;&lt;del&gt;SERVER-16898&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;FIX available on fork: &lt;a href=&quot;https://github.com/raffopazzo/mongo/tree/posix_fallocate&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/raffopazzo/mongo/tree/posix_fallocate&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Shall I submit a pull request?&lt;/p&gt;

&lt;p&gt;Cheers.&lt;br/&gt;
Raf.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="179133">SERVER-16898</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 28 Jan 2015 19:42:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 2 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 2 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10249"><![CDATA[Cannot]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>raffopazzo</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrj13z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs5ubr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>159210</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Build for a platform missing posix_fallocate()&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkrrb:</customfieldvalue>

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