<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:44 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-515] Undefined reference &quot;bson_atomic_int64_add&quot; on 32bit embed system</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-515</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;(ported from &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/issues/135&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;github&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;I want to port the mongoc_driver to my raspberry pi but there is an issues when I compile the driver under the the raspberry pi with raspbian system.&lt;br/&gt;
The compiler said: Undifined reference &quot;bson_atomic_int64_add&quot;.&lt;br/&gt;
The raspberry pi only support 32 bit system and I have installed a raspbian system with gcc and g++ for it.&lt;/p&gt;

&lt;p&gt;I have tried to use the cross toolchain to build the driver and it has been done without errors.&lt;br/&gt;
But I think there is some difference because the os of the host is a 64bit system and the &apos;bson_atomic_int64_add&apos; was supported.&lt;/p&gt;

&lt;p&gt;I prefer the mongoc driver than mongoc++ driver because I didn&apos;t want to install boost library for raspbian.&lt;/p&gt;

&lt;p&gt;Can any body tell me how to fixed the issue?&lt;br/&gt;
I hope the mongoc driver can be compiled under raspbian system.&lt;/p&gt;</description>
                <environment></environment>
        <key id="180469">CDRIVER-515</key>
            <summary>Undefined reference &quot;bson_atomic_int64_add&quot; on 32bit embed system</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="samantha.ritter@mongodb.com">Samantha Ritter</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Jan 2015 19:08:40 +0000</created>
                <updated>Mon, 8 Jan 2024 15:30:31 +0000</updated>
                            <resolved>Mon, 18 May 2015 14:22:33 +0000</resolved>
                                                    <fixVersion>1.1.5</fixVersion>
                                    <component>Build</component>
                    <component>libbson</component>
                                        <votes>1</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="916652" author="jesse" created="Mon, 18 May 2015 14:22:33 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/mongodb/libbson/commit/d2f337ef14f694d0b35a6ce5a06efa4e299d7d00&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/libbson/commit/d2f337ef14f694d0b35a6ce5a06efa4e299d7d00&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="834129" author="geeksor" created="Sat, 21 Feb 2015 00:49:34 +0000"  >&lt;p&gt;Hi, i have the same problem in my raspberry  : &lt;br/&gt;
Version GCC : gcc (Debian 4.6.3-14+rpi1) 4.6.3&lt;br/&gt;
Version rasp : wheezy armv6l GNU/Linux&lt;/p&gt;

&lt;p&gt;Hope to get solution. Thanks.&lt;/p&gt;

&lt;p&gt;Stack trace :&lt;br/&gt;
  CCLD     mongoc-stat&lt;br/&gt;
  CC       tests/test_load-test-load.o&lt;br/&gt;
  CC       tests/test_load-mongoc-tests.o&lt;br/&gt;
  CCLD     test-load&lt;br/&gt;
./.libs/libmongoc-priv.so: undefined reference to `bson_atomic_int64_add&apos;&lt;br/&gt;
collect2: ld returned 1 exit status&lt;br/&gt;
Makefile:2043: recipe for target &apos;test-load&apos; failed&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;test-load&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Leaving directory &apos;/home/pi/telechargement/mongo-c-driver-1.1.0&apos;&lt;br/&gt;
Makefile:3727: recipe for target &apos;install-recursive&apos; failed&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;install-recursive&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="180468">CDRIVER-514</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|hs5puv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>158461</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>