<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:21:36 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-4673] bson-dsl.h needed by mongo-c-driver but not installed by libbson</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4673</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;ProblemStatement%2FRationale&quot;&gt;&lt;/a&gt;&lt;b&gt;Problem Statement/Rationale&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;mongo-c-driver 1.24.1 fails to build because it can&apos;t find bson/bson-dsl.h. libbson 1.24.1 didn&apos;t install it. &lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;StepstoReproduce&quot;&gt;&lt;/a&gt;&lt;b&gt;Steps to Reproduce&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;I&apos;ve installed libbson 1.24.1 built with these cmake flags:&lt;/p&gt;

&lt;p&gt;{{-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF&lt;br/&gt;
-DENABLE_EXAMPLES=OFF&lt;br/&gt;
-DENABLE_TESTS=OFF&lt;br/&gt;
-DENABLE_UNINSTALL=OFF&lt;br/&gt;
-DMONGO_USE_CCACHE=OFF&lt;br/&gt;
-DENABLE_BSON=ON&lt;br/&gt;
-DENABLE_MONGOC=OFF}}&lt;/p&gt;

&lt;p&gt;Then I tried to build mongo-c-driver 1.24.1 with these cmake flags:&lt;/p&gt;

&lt;p&gt;{{{}-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF&lt;br/&gt;
-DENABLE_EXAMPLES=OFF&lt;br/&gt;
{}}}{{{}-DENABLE_TESTS=OFF&lt;br/&gt;
-DENABLE_UNINSTALL=OFF&lt;br/&gt;
-DMONGO_USE_CCACHE=OFF-DENABLE_ICU=ON&lt;br/&gt;
-DENABLE_MONGOC=ON&lt;br/&gt;
-DENABLE_SASL=CYRUS&lt;br/&gt;
-DENABLE_SNAPPY=ON&lt;br/&gt;
-DENABLE_ZLIB=SYSTEM&lt;br/&gt;
-DUSE_SYSTEM_LIBBSON=TRUE{}}}&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ExpectedResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Expected Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Successful build&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;ActualResults&quot;&gt;&lt;/a&gt;&lt;b&gt;Actual Results&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Build failure:&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;&lt;tt&gt;src/libmongoc/src/mongoc/mongoc-aggregate.c:26:10: fatal error: &apos;bson/bson-dsl.h&apos; file not found&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#include &amp;lt;bson/bson-dsl.h&amp;gt;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160; &#160; &#160; &#160; &#160;^~~~~~~~~~~~~~~~~&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;1 error generated.&lt;/tt&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;AdditionalNotes&quot;&gt;&lt;/a&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Another user previously reported the problem here:&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/40a64c2ffd6634021741e5435be15089d1f466f3#commitcomment-119488769&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/40a64c2ffd6634021741e5435be15089d1f466f3#commitcomment-119488769&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;I&apos;m on macOS 12.6.7 installing libbson and mongo-c-driver with MacPorts&#8212;I&apos;m the maintainer of these in MacPorts, currently trying to update them from 1.23.5, which was fine, to 1.24.1.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;For 1.24.1 I&apos;m using&#160;&lt;/font&gt;&lt;tt&gt;-DUSE_SYSTEM_LIBBSON=TRUE&lt;/tt&gt; instead of&#160;&lt;tt&gt;-DENABLE_BSON=SYSTEM&lt;/tt&gt;; I hope I&apos;ve correctly understood from the documentation that this is needed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2383541">CDRIVER-4673</key>
            <summary>bson-dsl.h needed by mongo-c-driver but not installed by libbson</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="13201">Fixed</resolution>
                                        <assignee username="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="ryandesign">Ryan Schmidt</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Jul 2023 00:29:43 +0000</created>
                <updated>Sat, 28 Oct 2023 11:27:48 +0000</updated>
                            <resolved>Thu, 31 Aug 2023 19:52:26 +0000</resolved>
                                    <version>1.24.1</version>
                                    <fixVersion>1.24.4</fixVersion>
                                    <component>BSON</component>
                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5673139" author="xgen-internal-githook" created="Thu, 31 Aug 2023 19:52:14 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4673&quot; title=&quot;bson-dsl.h needed by mongo-c-driver but not installed by libbson&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4673&quot;&gt;&lt;del&gt;CDRIVER-4673&lt;/del&gt;&lt;/a&gt; fix include of bson-dsl.h (#1388)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;move bson-dsl.h to src/common&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;bson-dsl.h is not installed, but shared between libmongoc and libbson.&lt;br/&gt;
Intended to resolve &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4673&quot; title=&quot;bson-dsl.h needed by mongo-c-driver but not installed by libbson&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4673&quot;&gt;&lt;del&gt;CDRIVER-4673&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;format bson-dsl.h&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add bson-dsl.h to dist tarball&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;remove bson-dsl.h from old dist list&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add regression test&lt;br/&gt;
Branch: r1.24&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/cf757ae97011107b2481c46b29de094450d5260a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/cf757ae97011107b2481c46b29de094450d5260a&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5669942" author="xgen-internal-githook" created="Wed, 30 Aug 2023 19:03:15 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4673&quot; title=&quot;bson-dsl.h needed by mongo-c-driver but not installed by libbson&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4673&quot;&gt;&lt;del&gt;CDRIVER-4673&lt;/del&gt;&lt;/a&gt; fix build of libmongoc using system libbson (#1387)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;move bson-dsl.h to src/common&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;bson-dsl.h is not installed, but shared between libmongoc and libbson.&lt;br/&gt;
Intended to resolve &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4673&quot; title=&quot;bson-dsl.h needed by mongo-c-driver but not installed by libbson&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4673&quot;&gt;&lt;del&gt;CDRIVER-4673&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;do not define `mongo::detail::c_platform` if using system libbson&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add regression test&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;fix more includes&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add include of common-prelude.h&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;fix more include paths&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/d7b204a12457bbd379071bad3450234ae043ee8d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/d7b204a12457bbd379071bad3450234ae043ee8d&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5545233" author="ryandesign" created="Wed, 5 Jul 2023 18:04:37 +0000"  >&lt;p&gt;The attached patch works for me. Does that look like the correct solution?&lt;/p&gt;</comment>
                            <comment id="5543253" author="dbeng-pm-bot" created="Wed, 5 Jul 2023 00:29:46 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="460303" name="bson-dsl.patch" size="549" author="ryandesign" created="Wed, 5 Jul 2023 18:04:20 +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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4546</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q2</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jhq:y</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>