<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:00 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-4465] Cannot build libmongoc with SRV support on FreeBSD</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4465</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;
&lt;p&gt;User in &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/issues/1343&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/mongo-php-driver#1343&lt;/a&gt; reported that they cannot compile libmongoc (either PHPC&apos;s bundled copy using Autotools or as a separate system library using CMake) with support for SRV resolution.&lt;/p&gt;

&lt;p&gt;Support for &lt;tt&gt;mongodb+srv&lt;/tt&gt; URIs was introduced in 1.9 with &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2257&quot; title=&quot;Initial DNS Seedlist discovery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2257&quot;&gt;&lt;del&gt;CDRIVER-2257&lt;/del&gt;&lt;/a&gt;. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=roberto.sanchez%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;roberto.sanchez@mongodb.com&quot;&gt;roberto.sanchez@mongodb.com&lt;/a&gt; pointed out that FreeBSD ports has a package for &lt;a href=&quot;https://cgit.freebsd.org/ports/tree/devel/mongo-c-driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;libmongoc 1.8.1&lt;/a&gt;, which would predate that. Additionally, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.albertson%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kevin.albertson@mongodb.com&quot;&gt;kevin.albertson@mongodb.com&lt;/a&gt; noted that libmongoc does not explicitly support FreeBSD, nor is it tested on Evergreen.&lt;/p&gt;

&lt;p&gt;I&apos;ve cross-referenced this issue with another FreeBSD compat issue the same user reported in libmongocrypt, although that&apos;s not related to SRV resolution.&lt;/p&gt;

&lt;h4&gt;&lt;a name=&quot;Environment&quot;&gt;&lt;/a&gt;Environment&lt;/h4&gt;
&lt;p&gt;User compiled libmongoc 1.22.0 through PHPC and libmongoc 1.22.1 as a separate system library. Both failed to properly detect necessary resolution functions (i.e. &lt;tt&gt;MONGOC_HAVE_RES_SEARCH&lt;/tt&gt; and &lt;tt&gt;MONGOC_HAVE_RES_NSEARCH&lt;/tt&gt; were both 0).&lt;/p&gt;

&lt;p&gt;FreeBSD version in use is 12.3.&lt;/p&gt;

&lt;p&gt;Additionally &lt;tt&gt;configure&lt;/tt&gt; output (from PHPC&apos;s build process) is available in the linked GitHub issue above. The relevant Autotools checks for that output comes from &lt;a href=&quot;https://github.com/mongodb/mongo-php-driver/blob/1.14.0/scripts/autotools/libmongoc/CheckResolv.m4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;CheckResolv.m4&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2125846">CDRIVER-4465</key>
            <summary>Cannot build libmongoc with SRV support on FreeBSD</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="9">Done</resolution>
                                        <assignee username="kyle.kloberdanz@mongodb.com">Kyle Kloberdanz</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Aug 2022 17:07:29 +0000</created>
                <updated>Fri, 28 Apr 2023 13:36:46 +0000</updated>
                            <resolved>Fri, 28 Apr 2023 13:36:46 +0000</resolved>
                                    <version>1.22.1</version>
                                    <fixVersion>1.24.0</fixVersion>
                                    <component>Initial DNS Seedlist Discovery</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="5384497" author="xgen-internal-githook" created="Fri, 28 Apr 2023 13:32:27 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kyle Kloberdanz&apos;, &apos;email&apos;: &apos;kyle.kloberdanz@mongodb.com&apos;, &apos;username&apos;: &apos;kkloberdanz&apos;}
&lt;p&gt;Message: Fix build for FreeBSD (#625)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4465&quot; title=&quot;Cannot build libmongoc with SRV support on FreeBSD&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4465&quot;&gt;&lt;del&gt;CDRIVER-4465&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Missing math library for trig functions&lt;/li&gt;
	&lt;li&gt;Patch IntelDFP to correctly identify x86_64&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/libmongocrypt/commit/5c5347803b48ff475dc48a3bdfed6c788eb46a9a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libmongocrypt/commit/5c5347803b48ff475dc48a3bdfed6c788eb46a9a&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5380865" author="xgen-internal-githook" created="Thu, 27 Apr 2023 13:17:30 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kyle Kloberdanz&apos;, &apos;email&apos;: &apos;kyle.kloberdanz@mongodb.com&apos;, &apos;username&apos;: &apos;kkloberdanz&apos;}
&lt;p&gt;Message: Fix build for FreeBSD (#1243)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4465&quot; title=&quot;Cannot build libmongoc with SRV support on FreeBSD&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4465&quot;&gt;&lt;del&gt;CDRIVER-4465&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Some standard library features need __BSD_VISIBLE set to 1 to be enabled on FreeBSD&lt;/li&gt;
	&lt;li&gt;Cmake does not properly detect res_search on FreeBSD. Since res_search has existed since 4.3 BSD (which is the predecessor of FreeBSD), it is safe to assume that this function will exist in libc on any version of FreeBSD.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Kevin Albertson &amp;lt;kevin.albertson@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/4a0e816e637cda37925c32db15b78b7cdf1c87b1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/4a0e816e637cda37925c32db15b78b7cdf1c87b1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4827178" author="kevin.albertson" created="Wed, 14 Sep 2022 19:21:20 +0000"  >&lt;p&gt;The suggested change to add &lt;tt&gt;#include &amp;lt;netinet/in.h&amp;gt;&lt;/tt&gt; seems OK to me.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2125848">PHPC-2133</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2109547">MONGOCRYPT-470</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="420554">CDRIVER-2257</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4551</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6i7r:f0why</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>