<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:56 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-3022] mongo-c-driver-1.14.0: wrong version in pkg-config files</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3022</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;PHP&apos;s pecl-mongodb fails to build with libbson 1.14.0:&lt;br/&gt;
checking for pkg-config... /usr/bin/pkg-config&lt;br/&gt;
checking for libbson... configure: error: system libbson must be upgraded to version &amp;gt;= 1.13.0&lt;/p&gt;

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

&lt;p&gt;It&apos;s because the pkg-config files of libbson report version 0.0.0 being installed.&lt;/p&gt;

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

&lt;p&gt;&amp;#8212; mongo-c-driver-1.13.1/src/libbson/libbson-1.0-config.cmake 2019-03-18 08:13:11.245695549 +0100&lt;br/&gt;
+++ mongo-c-driver-1.14.0/src/libbson/libbson-1.0-config.cmake 2019-03-18 08:35:53.204418839 +0100&lt;br/&gt;
-set (BSON_MAJOR_VERSION 1)&lt;br/&gt;
-set (BSON_MINOR_VERSION 13)&lt;br/&gt;
-set (BSON_MICRO_VERSION 1)&lt;br/&gt;
-set (BSON_VERSION 1.13.1)&lt;br/&gt;
+set (BSON_MAJOR_VERSION 0)&lt;br/&gt;
+set (BSON_MINOR_VERSION 0)&lt;br/&gt;
+set (BSON_MICRO_VERSION 0)&lt;br/&gt;
+set (BSON_VERSION 0.0.0)&lt;/p&gt;

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

&lt;p&gt;Also tried the master branch, same version 0.0.0.&lt;/p&gt;</description>
                <environment>Linux Gentoo</environment>
        <key id="718547">CDRIVER-3022</key>
            <summary>mongo-c-driver-1.14.0: wrong version in pkg-config files</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="hydrapolic">hydrapolic</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Mar 2019 07:56:55 +0000</created>
                <updated>Fri, 27 Oct 2023 13:14:12 +0000</updated>
                            <resolved>Mon, 20 May 2019 14:42:20 +0000</resolved>
                                    <version>1.14.0</version>
                                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2252576" author="kevin.albertson" created="Mon, 20 May 2019 14:41:26 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=roberto.sanchez&quot; class=&quot;user-hover&quot; rel=&quot;roberto.sanchez&quot;&gt;roberto.sanchez&lt;/a&gt; I&apos;m closing this ticket and will make a new one for the TODO item mentioned in your last comment.&lt;/p&gt;</comment>
                            <comment id="2187589" author="roberto.sanchez" created="Thu, 21 Mar 2019 16:56:24 +0000"  >&lt;p&gt;The issue identified here is that even if the build version is not specified in one of the three available ways (from the VERSION_CURRENT file, as is shipped with a release tarball, from the GIt history, as is done when building from a fresh clone of the repository, or by setting the BUILD_VERSION variable on the CMake command line), the build sets the version to 0.0.0 and continues.  This is sometimes OK (like when developing on the C driver itself without any intent of using the build output for anything), but causes problems.&lt;/p&gt;

&lt;p&gt;The solution is to abort the build if the version is not set by one of the three available mechanisms.  However, before that change can made &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2968&quot; title=&quot;Remove GitPython from calc_release_version.py&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2968&quot;&gt;&lt;del&gt;CDRIVER-2968&lt;/del&gt;&lt;/a&gt; must be fixed so that GItPython is no longer a dependency of the version calculation script used when building from Git.&lt;/p&gt;</comment>
                            <comment id="2187103" author="hydrapolic" created="Thu, 21 Mar 2019 09:17:04 +0000"  >&lt;p&gt;Ok, that works. Thanks, will adjust the link.&lt;/p&gt;</comment>
                            <comment id="2185124" author="kevin.albertson" created="Tue, 19 Mar 2019 17:32:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=hydrapolic&quot; class=&quot;user-hover&quot; rel=&quot;hydrapolic&quot;&gt;hydrapolic&lt;/a&gt; Use the tarball attached to the GitHub release (instead of the one GitHub produces):&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/releases/download/1.14.0/mongo-c-driver-1.14.0.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.14.0/mongo-c-driver-1.14.0.tar.gz&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The tarball that GitHub produces does not contain the version information needed to build the repository. That should produce the correct version in the pkg-config file.&lt;/p&gt;</comment>
                            <comment id="2185119" author="hydrapolic" created="Tue, 19 Mar 2019 17:28:59 +0000"  >&lt;p&gt;Seems like the 1.13.1 tarball contains VERSION_CURRENT and VERSION_RELEASED - both statically contain the string 1.13.1. Version 1.14.0 does not contain those files and the python script build/calc_release_version.py fails to run.&lt;/p&gt;

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

&lt;p&gt;mongo-c-driver-1.13.1 $ cmake .&lt;br/&gt;
&amp;#8211; The C compiler identification is ;GNU 8.3.0&lt;br/&gt;
&amp;#8211; Check for working C compiler: /usr/bin/cc&lt;br/&gt;
&amp;#8211; Check for working C compiler: /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.1&lt;/p&gt;


&lt;p&gt;mongo-c-driver-1.14.0 $ cmake .&lt;br/&gt;
&amp;#8211; The C compiler identification is ;GNU 8.3.0&lt;br/&gt;
&amp;#8211; Check for working C compiler: /usr/bin/cc&lt;br/&gt;
&amp;#8211; Check for working C compiler: /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; Found PythonInterp: /usr/bin/python (found version &quot;2.7.16&quot;) &lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
 File &quot;build/calc_release_version.py&quot;, line 182, in &amp;lt;module&amp;gt;&lt;br/&gt;
 RELEASE_VER = previous(main()) if PREVIOUS else main()&lt;br/&gt;
 File &quot;build/calc_release_version.py&quot;, line 91, in main&lt;br/&gt;
 repo = Repo(&apos;.&apos;)&lt;br/&gt;
 File &quot;/usr/lib64/python2.7/site-packages/git/repo/base.py&quot;, line 168, in _&lt;em&gt;init&lt;/em&gt;_&lt;br/&gt;
 raise InvalidGitRepositoryError(epath)&lt;br/&gt;
git.exc.InvalidGitRepositoryError: mongo-c-driver-1.14.0&lt;br/&gt;
CMake Warning at CMakeLists.txt:10 (_message):&lt;br/&gt;
 BUILD_VERSION not specified and could not be calculated (script invocation&lt;br/&gt;
 failed); setting library version to 0.0.0&lt;br/&gt;
Call Stack (most recent call first):&lt;br/&gt;
 CMakeLists.txt:97 (message)&lt;/p&gt;


&lt;p&gt;storing BUILD_VERSION 0.0.0 in file VERSION_CURRENT for later use&lt;br/&gt;
 &amp;#8211; Using bundled libbson&lt;br/&gt;
libbson version (from VERSION_CURRENT file): 0.0.0&lt;/p&gt;</comment>
                            <comment id="2185095" author="hydrapolic" created="Tue, 19 Mar 2019 17:13:53 +0000"  >&lt;p&gt;It was all compiled from source by using Gentoo ebuilds. The diff posted above can be obtained by:&lt;/p&gt;

&lt;p&gt;wget &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/archive/1.13.1.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/archive/1.13.1.tar.gz&lt;/a&gt;&lt;br/&gt;
tar xvf 1.13.1.tar.gz&lt;br/&gt;
cd mongo-c-driver-1.13.1&lt;br/&gt;
cmake . &amp;amp;&amp;amp; make -j4&lt;/p&gt;

&lt;p&gt;wget &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/archive/1.14.0.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/archive/1.14.0.tar.gz&lt;/a&gt;&lt;br/&gt;
tar xvf 1.14.0.tar.gz&lt;br/&gt;
cd mongo-c-driver-1.14.0&lt;br/&gt;
cmake . &amp;amp;&amp;amp; make -j4&lt;/p&gt;

&lt;p&gt;diff -u mongo-c-driver-1.13.1/src/libbson/libbson-1.0-config.cmake mongo-c-driver-1.14.0/src/libbson/libbson-1.0-config.cmake&lt;/p&gt;

&lt;p&gt;We try to unbundle dependencies and we compile pecl-mongodb from source using system libraries. That&apos;s when it tries&lt;br/&gt;
to read pkgconfig of libbson and reads version 0.0.0 and fails.&lt;/p&gt;

&lt;p&gt;Libbson and mongo-c-driver are kept as shared libraries in the system and other consumers like pecl-mongodb use them when&lt;br/&gt;
we compile/install them.&lt;/p&gt;</comment>
                            <comment id="2183845" author="jmikola@gmail.com" created="Mon, 18 Mar 2019 15:18:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=hydrapolic&quot; class=&quot;user-hover&quot; rel=&quot;hydrapolic&quot;&gt;hydrapolic&lt;/a&gt;: Can you clarify how you&apos;re installing both the PHP driver and libmongoc/libbson libraries? You refer to the PECL package, but the the &lt;a href=&quot;http://php.net/manual/en/mongodb.installation.pecl.php&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PECL install process&lt;/a&gt; for the driver uses bundled versions of libmongoc/libbson. Do I assume correctly that you&apos;re downloading the &lt;a href=&quot;https://pecl.php.net/package/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;PECL package&lt;/a&gt; simply as a means of obtaining the driver&apos;s source?&lt;/p&gt;

&lt;p&gt;I also want to confirm where you&apos;re getting the sources for libmongoc and libbson. The bundled versions included in the PECL package are merely git submodules. Your issue refers to &quot;mongo-c-driver-1.13.1&quot; and &quot;mongo-c-driver-1.14.0&quot; directories, which don&apos;t exist in the PECL package, so I assume you&apos;ve downloaded those separately. Note that libmongoc/libbson have separate installation processes for &lt;a href=&quot;http://mongoc.org/libmongoc/current/installing.html#building-from-a-release-tarball&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;installing from a release tarball&lt;/a&gt; or &lt;a href=&quot;http://mongoc.org/libmongoc/current/installing.html#building-from-git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;building from git&lt;/a&gt;. The release tarballs should already have their version files in order, so I believe you may have manually compiled libmongoc from a git checkout without running the &lt;tt&gt;calc_release_version.py&lt;/tt&gt; script to generate &lt;tt&gt;VERSION_CURRENT&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;If you&apos;re using the PHP driver and do not need libmongoc/libbson system libraries installed for other applications, I think your best option is to install the PHP driver through &lt;tt&gt;pecl install mongodb&lt;/tt&gt; and use the bundled verisons of libbmongoc/libbson. Otherwise, if you&apos;re set on compiling the PHP driver manually and using libmongoc/libbson system libraries, please double check that you&apos;re following one of the documented install procedures for those libraries to ensure that the version information is properly generated.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="700676">CDRIVER-2968</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="720647">CDRIVER-3034</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="772178">CDRIVER-3137</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="788166">CXX-1781</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hugpsf:</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>