<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:15 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>[CXX-1595] GNU 4.9.3: &apos;max_align_t&apos; was not declared</title>
                <link>https://jira.mongodb.org/browse/CXX-1595</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Hi all!&lt;/p&gt;

&lt;p&gt;I&apos;m trying to compile the r3.2.0 release of the mongodb C++11 driver using GCC-4.9.3, but I keep getting the following error:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;~/mongo-cxx-driver/src/mongocxx/test/pool.cpp: In lambda function:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;~/mongo-cxx-driver/src/mongocxx/test/pool.cpp:150:16: error: &apos;max_align_t&apos; was not declared in this scope&lt;/tt&gt;&lt;br/&gt;
{{ return max_align_t{};}}&lt;br/&gt;
{{ ^}}&lt;br/&gt;
&lt;tt&gt;~/mongo-cxx-driver/src/mongocxx/test/pool.cpp:150:27: error: expected &apos;;&apos; before &apos;{&apos; token&lt;/tt&gt;&lt;br/&gt;
{{ return max_align_t{};}}&lt;br/&gt;
{{ ^}}&lt;br/&gt;
&lt;tt&gt;~/mongo-cxx-driver/src/mongocxx/test/pool.cpp: In function &apos;void {anonymous}::____C_A_T_C_H____T_E_S_T____6()&apos;:&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;~/mongo-cxx-driver/src/mongocxx/test/pool.cpp:151:7: error: &apos;void dummy_address&apos; has incomplete type&lt;/tt&gt;&lt;br/&gt;
{{ }();}}&lt;/p&gt;

&lt;p&gt;I&apos;ve seen a similar error to this here: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-865&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/CXX-865&lt;/a&gt;, but I am using a different compiler, and the fix to that bug is already implemented in my version.&lt;/p&gt;

&lt;p&gt;I&apos;ve also seen the common issue with the &amp;lt;cstddef&amp;gt; header described here: &lt;a href=&quot;https://gcc.gnu.org/gcc-4.9/porting_to.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gcc.gnu.org/gcc-4.9/porting_to.html&lt;/a&gt;, and I tried moving #include &amp;lt;cstddef&amp;gt; to the very top, and still no luck.&lt;/p&gt;

&lt;p&gt;Any help would be greatly appreciated!&lt;/p&gt;</description>
                <environment>Red Hat Enterprise Linux Server release 6.3 (Santiago) Cluster</environment>
        <key id="555981">CXX-1595</key>
            <summary>GNU 4.9.3: &apos;max_align_t&apos; was not declared</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="knowbodynos">Ross Altman</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jun 2018 05:18:58 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:26 +0000</updated>
                            <resolved>Mon, 17 Sep 2018 16:06:00 +0000</resolved>
                                                    <fixVersion>3.4.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2005111" author="xgen-internal-githook" created="Mon, 17 Sep 2018 16:06:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CXX-1595&quot; title=&quot;GNU 4.9.3: &amp;#39;max_align_t&amp;#39; was not declared&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CXX-1595&quot;&gt;&lt;del&gt;CXX-1595&lt;/del&gt;&lt;/a&gt; Don&apos;t rely on max_align_t in test&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/commit/decf09431fcd912ba3d0ba968ef5d6970aa29263&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/commit/decf09431fcd912ba3d0ba968ef5d6970aa29263&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1966672" author="knowbodynos" created="Fri, 3 Aug 2018 19:50:06 +0000"  >&lt;p&gt;Since the error occurred in one of the tests, I managed to bypass the issue by just commenting out that particular test and got the code to compile. The issue itself is still there though.&lt;/p&gt;</comment>
                            <comment id="1964272" author="jesse" created="Thu, 2 Aug 2018 18:53:28 +0000"  >&lt;p&gt;Thanks for the report, can you please tell me if you&apos;re still having trouble with this issue?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htqyjr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>