<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:42 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-2916] make fails on macOS Mojave</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2916</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am trying to build the driver but I get these errors when I run `make`.&lt;/p&gt;

&lt;p&gt;In file included from /Users/demir/Downloads/mongo-c-driver-1.13.0/src/libmongoc/src/mongoc/mongoc-client.c:30:&lt;br/&gt;
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/resolv.h:81:&lt;br/&gt;
/usr/local/include/nameser.h:22:14: error: redefinition of &apos;__ns_class&apos;&lt;br/&gt;
typedef enum __ns_class {&lt;br/&gt;
 ^&lt;br/&gt;
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/arpa/nameser.h:337:14: note: previous definition is here&lt;br/&gt;
typedef enum __ns_class {&lt;br/&gt;
 ^&lt;br/&gt;
In file included from /Users/demir/Downloads/mongo-c-driver-1.13.0/src/libmongoc/src/mongoc/mongoc-client.c:30:&lt;br/&gt;
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/resolv.h:81:&lt;br/&gt;
/usr/local/include/nameser.h:23:5: error: redefinition of enumerator &apos;ns_c_invalid&apos;&lt;br/&gt;
 ns_c_invalid = 0, /* Cookie. */&lt;br/&gt;
 ^&lt;br/&gt;
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/arpa/nameser.h:338:2: note: previous definition is here&lt;br/&gt;
 ns_c_invalid = 0, /* Cookie. */&lt;br/&gt;
 ^&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I&apos;ve added the screenshot of all error logs. It&apos;d be great if someone can help me with this.&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;</description>
                <environment>macOS Mojave 10.14.2&lt;br/&gt;
XCode 10.1 (10B61)&lt;br/&gt;
cmake 3.13.2&lt;br/&gt;
make 4.2.1&lt;br/&gt;
</environment>
        <key id="664951">CDRIVER-2916</key>
            <summary>make fails on macOS Mojave</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="5">Cannot Reproduce</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="demircancelebi">Demircan Celebi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Jan 2019 17:44:17 +0000</created>
                <updated>Mon, 28 Jan 2019 21:11:49 +0000</updated>
                            <resolved>Mon, 28 Jan 2019 21:11:49 +0000</resolved>
                                    <version>1.13.0</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2129855" author="kevin.albertson" created="Mon, 28 Jan 2019 21:11:49 +0000"  >&lt;p&gt;Hi Demirican,&lt;/p&gt;

&lt;p&gt;I could not reproduce this with the same version of macOS (10.14.2), XCode 10.1 (10B61), and latest cmake.&lt;/p&gt;

&lt;p&gt;Inspecting both:&lt;br/&gt;
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/arpa/nameser.h&lt;/p&gt;

&lt;p&gt;And&lt;br/&gt;
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/nameser.h&lt;/p&gt;

&lt;p&gt;They have the same ifdef guard. Even if both were included for me, I would not get a redefinition error. I&apos;m unsure what differs with your setup, but seeing that you have a workaround for this, I&apos;m closing as &quot;Cannot Reproduce&quot;. But feel free to re-open if this is still an issue for you.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                            <comment id="2104691" author="kevin.albertson" created="Thu, 3 Jan 2019 19:56:23 +0000"  >&lt;p&gt;Hi Demirican,&lt;/p&gt;

&lt;p&gt;Thanks for including the cmake output. I haven&apos;t been able to reproduce on my machine with macOS Mojave, but I&apos;ll continue to investigate. By chance, were you able to build the C driver before, and this error only occurred after upgrading to Mojave? And in case you haven&apos;t, can you try deleting the cmake-build directory (/Users/demir/Downloads/mongo-c-driver-1.13.0/cmake-build) and rebuilding, in case something is outdated in the cmake cache?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                            <comment id="2104544" author="demircancelebi" created="Thu, 3 Jan 2019 18:13:29 +0000"  >&lt;p&gt;Yes, I&apos;m using the latest version of XCode (10.1).&#160;I was able to run make after running cmake with -DENABLE_SRV=OFF, thank you for your quick response!&lt;/p&gt;

&lt;p&gt;The cmake.png contains the output for `cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..`&lt;/p&gt;

&lt;p&gt;Here is also the latest output for cmake:&lt;/p&gt;

&lt;p&gt;~/D/m/cmake-build &#10095;&#10095;&#10095; cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF -DENABLE_SRV=OFF ..&lt;br/&gt;
&amp;#8211; The C compiler identification is ;AppleClang 10.0.0.10001145&lt;br/&gt;
&amp;#8211; Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc&lt;br/&gt;
&amp;#8211; Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc &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; No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo&lt;br/&gt;
 &amp;#8211; Using bundled libbson&lt;br/&gt;
libbson version (from VERSION_CURRENT file): 1.13.0&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 reallocf&lt;br/&gt;
&amp;#8211; Looking for reallocf - 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 gmtime_r&lt;br/&gt;
&amp;#8211; Looking for gmtime_r - found&lt;br/&gt;
&amp;#8211; Looking for rand_r&lt;br/&gt;
&amp;#8211; Looking for rand_r - 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; 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 SYS_gettid&lt;br/&gt;
&amp;#8211; Looking for SYS_gettid - found&lt;br/&gt;
&amp;#8211; Looking for syscall&lt;br/&gt;
&amp;#8211; Looking for syscall - found&lt;br/&gt;
&amp;#8211; Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH&lt;br/&gt;
&amp;#8211; Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH - Success&lt;br/&gt;
&amp;#8211; Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH&lt;br/&gt;
&amp;#8211; Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH - Success&lt;br/&gt;
CMake Deprecation Warning at src/libbson/CMakeLists.txt:151 (cmake_policy):&lt;br/&gt;
 The OLD behavior for policy CMP0042 will be removed from a future version&lt;br/&gt;
 of CMake.&lt;/p&gt;

&lt;p&gt;The cmake-policies(7) manual explains that the OLD behaviors of all&lt;br/&gt;
 policies are deprecated and that a policy should be set to OLD only under&lt;br/&gt;
 specific short-term circumstances. Projects should be ported to the NEW&lt;br/&gt;
 behavior and not rely on setting a policy to OLD.&lt;/p&gt;


&lt;p&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;
libmongoc version (from VERSION_CURRENT file): 1.13.0&lt;br/&gt;
&amp;#8211; Searching for zlib CMake packages&lt;br/&gt;
&amp;#8211; Found ZLIB: /usr/lib/libz.dylib (found version &quot;1.2.8&quot;)&lt;br/&gt;
&amp;#8211; zlib found version &quot;1.2.8&quot;&lt;br/&gt;
&amp;#8211; zlib include path &quot;/usr/local/include&quot;&lt;br/&gt;
&amp;#8211; zlib libraries &quot;/usr/lib/libz.dylib&quot;&lt;br/&gt;
&amp;#8211; Looking for include file unistd.h&lt;br/&gt;
&amp;#8211; Looking for include file unistd.h - found&lt;br/&gt;
&amp;#8211; Looking for include file stdarg.h&lt;br/&gt;
&amp;#8211; Looking for include file stdarg.h - found&lt;br/&gt;
&amp;#8211; Searching for sasl/sasl.h&lt;br/&gt;
&amp;#8211; Found in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include&lt;br/&gt;
&amp;#8211; Searching for libsasl2&lt;br/&gt;
&amp;#8211; Found /usr/lib/libsasl2.dylib&lt;br/&gt;
&amp;#8211; Check size of socklen_t&lt;br/&gt;
&amp;#8211; Check size of socklen_t - done&lt;br/&gt;
&amp;#8211; Looking for sched_getcpu&lt;br/&gt;
&amp;#8211; Looking for sched_getcpu - not found&lt;br/&gt;
&amp;#8211; Detected parameters: accept (int, struct sockaddr *, socklen_t *)&lt;br/&gt;
&amp;#8211; Searching for compression library header snappy-c.h&lt;br/&gt;
&amp;#8211; Found in /usr/local/include&lt;br/&gt;
&amp;#8211; Searching for libsnappy&lt;br/&gt;
&amp;#8211; Found /usr/local/lib/libsnappy.dylib&lt;br/&gt;
&amp;#8211; No ICU library found, SASLPrep disabled for SCRAM-SHA-256 authentication.&lt;br/&gt;
&amp;#8211; If ICU is installed in a non-standard directory, define ICU_ROOT as the ICU installation path.&lt;br/&gt;
&amp;#8211; Compiling against Secure Transport&lt;br/&gt;
&amp;#8211; Compiling against Cyrus SASL&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: /Users/demir/Downloads/mongo-c-driver-1.13.0/cmake-build&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2104527" author="kevin.albertson" created="Thu, 3 Jan 2019 18:01:55 +0000"  >&lt;p&gt;Hi Demircan,&lt;/p&gt;

&lt;p&gt;Thank you for the detailed bug report. Can you include the cmake command you used and the full output? A copy-paste of the text is fine. And can you confirm that you are using the latest version of XCode (10.1)?&lt;/p&gt;

&lt;p&gt;As a temporary workaround, try configuring the driver without SRV URI support:&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;cmake -DENABLE_SRV=OFF&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 disables support for DNS seedlist URIs, &lt;a href=&quot;https://docs.mongodb.com/manual/reference/connection-string/#dns-seedlist-connection-format&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;explained here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Kevin&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="205304" name="3.png" size="753180" author="demircancelebi" created="Thu, 3 Jan 2019 17:34:03 +0000"/>
                            <attachment id="205303" name="4.png" size="894041" author="demircancelebi" created="Thu, 3 Jan 2019 17:34:06 +0000"/>
                            <attachment id="205302" name="5.png" size="836527" author="demircancelebi" created="Thu, 3 Jan 2019 17:34:08 +0000"/>
                            <attachment id="205301" name="6.png" size="819131" author="demircancelebi" created="Thu, 3 Jan 2019 17:34:10 +0000"/>
                            <attachment id="205300" name="7.png" size="473356" author="demircancelebi" created="Thu, 3 Jan 2019 17:38:47 +0000"/>
                            <attachment id="205307" name="cmake.png" size="538061" author="demircancelebi" created="Thu, 3 Jan 2019 18:03:10 +0000"/>
                    </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|hu8453:</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>