<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:07 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>[CDRIVER-633] Undefined RTL_RUN_ONCE and suseconds_t with mingw</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-633</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Compiling libbson on Windows with mingw64:&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;   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;$ make&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;Scanning dependencies of target bson_shared&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;[  1%] Building C object CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;In file included from C:/Users/vagrant/gittmp/libbson/src/bson/bson.h:23:0,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                 from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.h:24,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                 from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.c:24:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;C:/Users/vagrant/gittmp/libbson/src/bson/bson-compat.h:110:9: error: unknown type name &apos;RTL_RUN_ONCE&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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; typedef RTL_RUN_ONCE INIT_ONCE;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;         ^&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;In file included from C:/Users/vagrant/gittmp/libbson/src/bson/bson.h:34:0,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                 from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.h:24,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                 from C:/Users/vagrant/gittmp/libbson/src/bson/bcon.c:24:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h: In function &apos;bson_iter_timeval_unsafe&apos;:&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h:394:18: error: &apos;suseconds_t&apos; undeclared (first use in this function)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;    tv-&amp;gt;tv_sec = (suseconds_t) (value / 1000);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                  ^&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;C:/Users/vagrant/gittmp/libbson/src/bson/bson-iter.h:394:18: note: each undeclared identifier is reported only once for each function it appears in&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;CMakeFiles/bson_shared.dir/build.make:54: recipe for target &apos;CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj&apos; failed&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;make[2]: *** [CMakeFiles/bson_shared.dir/src/bson/bcon.c.obj] Error 1&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="202134">CDRIVER-633</key>
            <summary>Undefined RTL_RUN_ONCE and suseconds_t with mingw</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="9">Done</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 May 2015 15:51:50 +0000</created>
                <updated>Wed, 18 Jan 2017 17:05:54 +0000</updated>
                            <resolved>Wed, 18 Jan 2017 17:04:14 +0000</resolved>
                                    <version>1.1.4</version>
                                    <fixVersion>1.6.0</fixVersion>
                                    <component>Build</component>
                    <component>libbson</component>
                    <component>mingw</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1479457" author="xgen-internal-githook" created="Wed, 18 Jan 2017 17:05:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-633&quot; title=&quot;Undefined RTL_RUN_ONCE and suseconds_t with mingw&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-633&quot;&gt;&lt;del&gt;CDRIVER-633&lt;/del&gt;&lt;/a&gt; fix MinGW-W64 undefined symbols&lt;/p&gt;

&lt;p&gt;RTL_RUN_ONCE and suseconds_t were undefined when building with CMake and&lt;br/&gt;
MinGW-W64. We conditionally define those if build with MS Visual Studio,&lt;br/&gt;
but we should conditionally define them if building on MS Windows, no&lt;br/&gt;
matter which compiler.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libbson/commit/d5dc180cf5c044515afba28390ef4dc78040b0ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/d5dc180cf5c044515afba28390ef4dc78040b0ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1461904" author="virgile.devaux" created="Tue, 20 Dec 2016 08:20:30 +0000"  >&lt;p&gt;ok, tx.&lt;br/&gt;
I will keep an eye on that, and compile with the msbuild tools while waiting.&lt;/p&gt;</comment>
                            <comment id="1459595" author="jesse" created="Fri, 16 Dec 2016 02:08:00 +0000"  >&lt;p&gt;Thanks Virgile, if you&apos;re not a CMake expert, don&apos;t concern yourself with this. We&apos;ll fix it in the next couple months. I&apos;ve moved it to the top of our backlog. We&apos;ve recently added MinGW toolchains to our build farm, so we can finally test our fixes. We&apos;ll add configure checks to the CMake and Autotools build systems.&lt;/p&gt;</comment>
                            <comment id="1458838" author="virgile.devaux" created="Thu, 15 Dec 2016 13:55:48 +0000"  >&lt;p&gt;unfortunatly no, I&apos;m not very experienced with cmake.&lt;br/&gt;
but still, I can try &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
First quesiton, if I use CheckCSourceCompiles to check for missing type/decl, I will have to #include the same headers that those used in the libbson code right? Got hints for the headers to include to be as close as possible to the original source code?&lt;br/&gt;
Then, I might be wrong but the link you gave for RTL_RUN_ONCE shows the declaration of INIT_ONCE &lt;em&gt;from&lt;/em&gt; RTL_RUN_ONCE that is not known. It&apos;s the same code as in bson-compat.h.&lt;br/&gt;
The only reference I can find about RTL_RUN_ONCE is in the Ntddk.h header. I can imagine that when compiling with VS the file is included from another header somewhere?&lt;/p&gt;</comment>
                            <comment id="1457381" author="jesse" created="Wed, 14 Dec 2016 14:33:44 +0000"  >&lt;p&gt;Thanks Virgile. If you&apos;re familiar with CMake, it&apos;d be nice to use two CMake CheckCSourceCompiles tests, one for RTL_RUN_ONCE and one suseconds_t. For each, set a CMake variable like BSON_HAS_RTL_RUN_ONCE and BSON_HAS_SUSECONDS_T. Then add those variables to bson-config.h.in, then in bson-compat.h use those variables to define RTL_RUN_ONCE and suseconds_t if necessary.&lt;/p&gt;

&lt;p&gt;RTL_RUN_ONCE is typedef&apos;ed here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-perl-driver/commit/7f49bfbb4e2003fc3080da9d523721decf1fcb68#commitcomment-8188246&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-perl-driver/commit/7f49bfbb4e2003fc3080da9d523721decf1fcb68#commitcomment-8188246&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can use that code in bson-compat.h if necessary.&lt;/p&gt;

&lt;p&gt;We also need a test for these two symbols in libbson&apos;s Autoconf build system, you can leave that work to us if you want.&lt;/p&gt;</comment>
                            <comment id="1457295" author="virgile.devaux" created="Wed, 14 Dec 2016 12:52:38 +0000"  >&lt;p&gt;As far as I am concerned, for the 1.5.0 release and the git master, the problem still arises. It looks like The problem is in libbson.&lt;br/&gt;
So this is not fixed. If you indeed have seen someone successfully compiling it under mingw64 on windows, could you please ask him to take a look?&lt;br/&gt;
First I try with the release mongo-c-driver-1.5.0.tar.gz, then with the git master &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver.git&lt;/a&gt;. &lt;br/&gt;
As the problem occurs during the libbson complation, I tried to install that separatly:&lt;br/&gt;
************************************************************************************************************************************&lt;br/&gt;
************************************************************************************************************************************&lt;br/&gt;
$ git clone &lt;a href=&quot;https://github.com/mongodb/libbson.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson.git&lt;/a&gt;&lt;br/&gt;
Clonage dans &apos;libbson&apos;...&lt;br/&gt;
remote: Counting objects: 10445, done.&lt;br/&gt;
remote: Compressing objects: 100% (165/165), done.&lt;br/&gt;
remote: Total 10445 (delta 69), reused 0 (delta 0), pack-reused 10280&lt;br/&gt;
R&#233;ception d&apos;objets: 100% (10445/10445), 6.98 MiB | 1.16 MiB/s, fait.&lt;br/&gt;
R&#233;solution des deltas: 100% (7229/7229), fait.&lt;br/&gt;
V&#233;rification de la connectivit&#233;... fait.&lt;/p&gt;

&lt;p&gt;$ cd libbson/&lt;br/&gt;
$ cd build/&lt;br/&gt;
$ cmake ..&lt;br/&gt;
&amp;#8211; The C compiler identification is GNU 6.2.0&lt;br/&gt;
&amp;#8211; The CXX compiler identification is GNU 6.2.0&lt;br/&gt;
CMake Warning at /usr/share/cmake-3.6.2/Modules/Platform/MSYS.cmake:15 (message):&lt;br/&gt;
  CMake no longer defines WIN32 on MSYS!&lt;/p&gt;

&lt;p&gt;  (1) If you are just trying to build this project, ignore this warning or&lt;br/&gt;
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in&lt;br/&gt;
  the CMake cache.  If later configuration or build errors occur then this&lt;br/&gt;
  project may have been written under the assumption that MSYS is WIN32.  In&lt;br/&gt;
  that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.&lt;/p&gt;

&lt;p&gt;  (2) If you are developing this project, add the line&lt;/p&gt;

&lt;p&gt;    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake &amp;gt;= 2.8.4 is required&lt;/p&gt;

&lt;p&gt;  at the top of your top-level CMakeLists.txt file or set the minimum&lt;br/&gt;
  required version of CMake to 2.8.4 or higher.  Then teach your project to&lt;br/&gt;
  build on Cygwin without WIN32.&lt;br/&gt;
Call Stack (most recent call first):&lt;br/&gt;
  /usr/share/cmake-3.6.2/Modules/CMakeSystemSpecificInformation.cmake:37 (include)&lt;br/&gt;
  CMakeLists.txt:3 (project)&lt;/p&gt;


&lt;p&gt;&amp;#8211; Check for working C compiler: /mingw64/bin/cc.exe&lt;br/&gt;
&amp;#8211; Check for working C compiler: /mingw64/bin/cc.exe &amp;#8211; works&lt;br/&gt;
&amp;#8211; Detecting C compiler ABI info&lt;br/&gt;
&amp;#8211; Detecting C compiler ABI info - done&lt;br/&gt;
&amp;#8211; Detecting C compile features&lt;br/&gt;
&amp;#8211; Detecting C compile features - done&lt;br/&gt;
&amp;#8211; Check for working CXX compiler: /mingw64/bin/c++.exe&lt;br/&gt;
&amp;#8211; Check for working CXX compiler: /mingw64/bin/c++.exe &amp;#8211; works&lt;br/&gt;
&amp;#8211; Detecting CXX compiler ABI info&lt;br/&gt;
&amp;#8211; Detecting CXX compiler ABI info - done&lt;br/&gt;
&amp;#8211; Detecting CXX compile features&lt;br/&gt;
&amp;#8211; Detecting CXX compile features - done&lt;br/&gt;
Current version (from VERSION_CURRENT file): 1.5.0-dev&lt;br/&gt;
Previous release (from VERSION_RELEASED file): 1.4.1&lt;br/&gt;
&amp;#8211; Check if the system is big endian&lt;br/&gt;
&amp;#8211; Searching 16 bit integer&lt;br/&gt;
&amp;#8211; Looking for sys/types.h&lt;br/&gt;
&amp;#8211; Looking for sys/types.h - found&lt;br/&gt;
&amp;#8211; Looking for stdint.h&lt;br/&gt;
&amp;#8211; Looking for stdint.h - found&lt;br/&gt;
&amp;#8211; Looking for stddef.h&lt;br/&gt;
&amp;#8211; Looking for stddef.h - found&lt;br/&gt;
&amp;#8211; Check size of unsigned short&lt;br/&gt;
&amp;#8211; Check size of unsigned short - done&lt;br/&gt;
&amp;#8211; Using unsigned short&lt;br/&gt;
&amp;#8211; Check if the system is big endian - little endian&lt;br/&gt;
&amp;#8211; Looking for snprintf&lt;br/&gt;
&amp;#8211; Looking for snprintf - found&lt;br/&gt;
&amp;#8211; Looking for _set_output_format&lt;br/&gt;
&amp;#8211; Looking for _set_output_format - found&lt;br/&gt;
&amp;#8211; Looking for reallocf&lt;br/&gt;
&amp;#8211; Looking for reallocf - not found&lt;br/&gt;
&amp;#8211; Performing Test BSON_HAVE_TIMESPEC&lt;br/&gt;
&amp;#8211; Performing Test BSON_HAVE_TIMESPEC - Success&lt;br/&gt;
&amp;#8211;     struct timespec found&lt;br/&gt;
&amp;#8211; Looking for pthread.h&lt;br/&gt;
&amp;#8211; Looking for pthread.h - found&lt;br/&gt;
&amp;#8211; Looking for pthread_create&lt;br/&gt;
&amp;#8211; Looking for pthread_create - found&lt;br/&gt;
&amp;#8211; Found Threads: TRUE&lt;br/&gt;
&amp;#8211; Looking for clock_gettime&lt;br/&gt;
&amp;#8211; Looking for clock_gettime - found&lt;br/&gt;
&amp;#8211; Looking for strnlen&lt;br/&gt;
&amp;#8211; Looking for strnlen - found&lt;br/&gt;
&amp;#8211; Looking for stdbool.h&lt;br/&gt;
&amp;#8211; Looking for stdbool.h - found&lt;br/&gt;
&amp;#8211; Looking for syscall&lt;br/&gt;
&amp;#8211; Looking for syscall - not found&lt;br/&gt;
&amp;#8211; Looking for strings.h&lt;br/&gt;
&amp;#8211; Looking for strings.h - found&lt;br/&gt;
&amp;#8211; Configuring done&lt;br/&gt;
&amp;#8211; Generating done&lt;br/&gt;
&amp;#8211; Build files have been written to: /c/Utilisateurs/A134883/Workspace/libbson/build&lt;/p&gt;

&lt;p&gt;$ make&lt;br/&gt;
Scanning dependencies of target bson_shared&lt;br/&gt;
[  1%] Building C object CMakeFiles/bson_shared.dir/src/bson/bcon.c.o&lt;br/&gt;
In file included from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson-compat.h:37:0,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson.h:23,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.h:24,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.c:24:&lt;br/&gt;
C:/Utilisateurs/A134883/Workspace/libbson/build/src/bson/bson-config.h:121:27: error: operator &apos;!=&apos; has no left operand&lt;br/&gt;
 #if BSON_HAVE_SYSCALL_TID != 1&lt;br/&gt;
                           ^~&lt;br/&gt;
In file included from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson.h:23:0,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.h:24,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.c:24:&lt;br/&gt;
C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson-compat.h:123:9: error: unknown type name &apos;RTL_RUN_ONCE&apos;&lt;br/&gt;
 typedef RTL_RUN_ONCE INIT_ONCE;&lt;br/&gt;
         ^~~~~~~~~~~~&lt;br/&gt;
In file included from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson.h:35:0,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.h:24,&lt;br/&gt;
                 from C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bcon.c:24:&lt;br/&gt;
C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson-iter.h: In function &apos;bson_iter_timeval_unsafe&apos;:&lt;br/&gt;
C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson-iter.h:402:18: error: &apos;suseconds_t&apos; undeclared (first use in this function)&lt;br/&gt;
    tv-&amp;gt;tv_sec = (suseconds_t) (value / 1000);&lt;br/&gt;
                  ^~~~~~~~~~~&lt;br/&gt;
C:/Utilisateurs/A134883/Workspace/libbson/src/bson/bson-iter.h:402:18: note: each undeclared identifier is reported only once for each function it appears in&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;CMakeFiles/bson_shared.dir/build.make:63: CMakeFiles/bson_shared.dir/src/bson/bcon.c.o&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;CMakeFiles/Makefile2:143: CMakeFiles/bson_shared.dir/all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;Makefile:161: all&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
************************************************************************************************************************************&lt;br/&gt;
************************************************************************************************************************************&lt;br/&gt;
This is the same error when trying to compile the mongo-c-driver bundled version.&lt;br/&gt;
If you can give me a hint to start, I&apos;m ready to work to make things going forward.&lt;/p&gt;

&lt;p&gt;If you need any information, from my configuration, running tests, anything, just drop a comment.&lt;br/&gt;
tx&lt;/p&gt;</comment>
                            <comment id="1411819" author="bjori" created="Tue, 18 Oct 2016 18:41:15 +0000"  >&lt;p&gt;I&apos;ve seen other successfully compiling under mingw64 on Windows, so this might be fixed already.&lt;/p&gt;

&lt;p&gt;Marking this as improvement as we don&apos;t have a mingw64 builder in evergreen to be able to properly support it&lt;/p&gt;</comment>
                            <comment id="905747" author="jesse" created="Tue, 5 May 2015 19:22:28 +0000"  >&lt;p&gt;Caused by a commit to fix &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-441&quot; title=&quot;Add missing declarations for libbson for older MinGW&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-441&quot;&gt;&lt;del&gt;CDRIVER-441&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="905473" author="jesse" created="Tue, 5 May 2015 16:01:49 +0000"  >&lt;p&gt;To make a repro environment on a Mac, install VirtualBox and install Windows 8.1 from an ISO:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Install msys2, the 64-bit version &quot;msys2-x86_64-20150202.exe&quot;:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msys2.github.io/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://msys2.github.io/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then start &lt;tt&gt;C:\msys64\mingw64&amp;#95;shell.bat&lt;/tt&gt; (irritatingly, msys2&amp;#95;shell.bat is just a distractor, run mingw64&amp;#95;shell.bat to get an actual build environment). In the window mingw64&amp;#95;shell.bat opens:&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;   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;$ git clone https://github.com/mongodb/libbson.git&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;$ cd libbson&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;$  cmake -G &quot;MSYS Makefiles&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;... ./configure-type output ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;$ make&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;This produces the error output above.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="235989">CDRIVER-959</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="163959">CDRIVER-441</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="204822">CDRIVER-663</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hrbso7:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="532">C Driver 2015Q2 sprint 1</customfieldvalue>
    <customfieldvalue id="557">C Driver 2015Q2 sprint 2</customfieldvalue>
    <customfieldvalue id="865">C Driver 2016 sprint 1</customfieldvalue>
    <customfieldvalue id="894">C Driver 2016 sprint 2</customfieldvalue>
    <customfieldvalue id="918">C Driver 2016 sprint 3</customfieldvalue>
    <customfieldvalue id="959">C Driver 2016 sprint 4</customfieldvalue>
    <customfieldvalue id="1481">C Driver 2017 1 - Jan 20, 2017</customfieldvalue>

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