<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19: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-4020] Build breaks with cmake 3.18.2 (but it worked with 3.11.4)</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4020</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I&apos;m trying to build the driver as described in documentation, basically:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;curl -kOL &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/releases/download/1.17.6/mongo-c-driver-1.17.6.tar.gz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/releases/download/1.17.6/mongo-c-driver-1.17.6.tar.gz&lt;/a&gt;&lt;/tt&gt;&lt;br/&gt;
{{ tar xfvz mongo-c-driver-1.17.6.tar.gz}}&lt;br/&gt;
{{ cd mongo-c-driver-1.17.6}}&lt;br/&gt;
{{ mkdir cmake-build}}&lt;br/&gt;
{{ cd cmake-build}}&lt;br/&gt;
{{ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..}}&lt;br/&gt;
{{ make}}&lt;/p&gt;

&lt;p&gt;However I get this error in the cmake step:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;...&lt;/tt&gt;&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/libbson-1.0.pc.in&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/CMakeLists.txt&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/libbson-static-1.0.pc.in&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/jsonsl/&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/jsonsl/CMakeLists.txt&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/jsonsl/jsonsl.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mongo-c-driver-1.17.6/src/libbson/src/jsonsl/jsonsl.c&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;It seems this has started to fail since I changed in my system from cmake 3.11.4 to cmake 3.18.2.&lt;/p&gt;

&lt;p&gt;I have tested with driver versions 1.17.4 and 1.17.6 and the problem is the same.&lt;/p&gt;

&lt;p&gt;Is there any restriction in the cmake version that has to be used to build the driver? Is there any way to solve this problem?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment></environment>
        <key id="1773985">CDRIVER-4020</key>
            <summary>Build breaks with cmake 3.18.2 (but it worked with 3.11.4)</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="fermin.galanmarquez@telefonica.com">Ferm&#237;n Gal&#225;n</reporter>
                        <labels>
                            <label>bg-rf</label>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 9 Jun 2021 07:48:48 +0000</created>
                <updated>Mon, 5 Feb 2024 17:37:17 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3876592" author="kevin.albertson" created="Mon, 14 Jun 2021 17:46:59 +0000"  >&lt;p&gt;Thank you for the additional information &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fermin.galanmarquez%40telefonica.com&quot; class=&quot;user-hover&quot; rel=&quot;fermin.galanmarquez@telefonica.com&quot;&gt;fermin.galanmarquez@telefonica.com&lt;/a&gt;. Since you have a workaround, we will continue to investigate this after we wrap up some higher priority upcoming server support work.&lt;/p&gt;</comment>
                            <comment id="3869415" author="JIRAUSER1269441" created="Wed, 9 Jun 2021 19:17:39 +0000"  >&lt;p&gt;My platform is centos8.3.2011&lt;/p&gt;

&lt;p&gt;In fact, you can easily reproduce the problem is you build this Dockerfile: &lt;a href=&quot;https://github.com/telefonicaid/fiware-orion/blob/3.0.0/docker/Dockerfile&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/telefonicaid/fiware-orion/blob/3.0.0/docker/Dockerfile&lt;/a&gt; (using the typical command &quot;sudo docker build -t issue4020-test&quot;). The part that installs cmake 3.18.2 (through yum) is line 48 and the part that build mongo c driver is from line 70 to 79.&lt;/p&gt;

&lt;p&gt;You can also check how I solved the problem in this other Dockerfile: &lt;a href=&quot;https://github.com/telefonicaid/fiware-orion/blob/3.1.0/docker/Dockerfile&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/telefonicaid/fiware-orion/blob/3.1.0/docker/Dockerfile&lt;/a&gt;. There is a &quot;hack&quot; to uninstala cmake 3.18.2 and install (from sources!) cmake 3.20.1, in lines 61 to 75.&lt;/p&gt;

&lt;p&gt;(Sorry for the &quot;extra stuff&quot; in these Dockerfiles which has nothing to do with this issue &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;, but note these Dockerfiles are taken from real for the project in which I&apos;m using the driver).&lt;/p&gt;</comment>
                            <comment id="3868715" author="kevin.albertson" created="Wed, 9 Jun 2021 15:21:31 +0000"  >&lt;p&gt;Thank you for the report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fermin.galanmarquez%40telefonica.com&quot; class=&quot;user-hover&quot; rel=&quot;fermin.galanmarquez@telefonica.com&quot;&gt;fermin.galanmarquez@telefonica.com&lt;/a&gt; and the information!&#160;&lt;/p&gt;

&lt;p&gt;The linked cmake bug suggests a simple fix in cmake 2.6.0+:&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;&#160;cmake_policy (SET CMP0012 NEW)&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;I was unable to reproduce the error on an Ubuntu 20.04 machine with cmake 3.18.2.&lt;/p&gt;

&lt;p&gt;What platform did you observe the error on? If you have it handy, can you include the full output of the cmake command?&lt;/p&gt;</comment>
                            <comment id="3868091" author="JIRAUSER1269441" created="Wed, 9 Jun 2021 10:18:59 +0000"  >&lt;p&gt;I have tried with a newer version of cmake (in particular, version 3.20.1) and it works!&lt;/p&gt;

&lt;p&gt;However, not sure if the mongo C driver building stuff should be modified to cope with 3.18.2 (in which case this ticket should be kept) or not (in which case this ticket should be closed).&lt;/p&gt;</comment>
                            <comment id="3867955" author="JIRAUSER1269441" created="Wed, 9 Jun 2021 07:58:49 +0000"  >&lt;p&gt;Maybe there is a bug in cmake 3.18.2? As seen in &lt;a href=&quot;https://gitlab.kitware.com/cmake/cmake/-/issues/21204&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gitlab.kitware.com/cmake/cmake/-/issues/21204&lt;/a&gt;&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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4577</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jj3:</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>