<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:03:21 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>[CXX-1625] Android NDK r17 compiler error</title>
                <link>https://jira.mongodb.org/browse/CXX-1625</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;ol&gt;
	&lt;li&gt;libbson Android ndk building success.&lt;/li&gt;
	&lt;li&gt;libmongoc fail with: &lt;b&gt;-lrt&lt;/b&gt; and &lt;b&gt;-lresolv&lt;/b&gt; can not find, &lt;b&gt;shm_open() shm_unlink()&lt;/b&gt; unreferenced function(), &lt;b&gt;rand_r(seed);&lt;/b&gt;&#160;undefined function. rand_r() replaced with &lt;b&gt;srand(seed); rand();&lt;/b&gt; function. in cmake file I remove the &lt;b&gt;${RESOLVE_LIBRARY}&lt;/b&gt;. disable &lt;b&gt;ENABLE_SHM_COUNTERS=OFF,&lt;/b&gt;&#160;if I do these settings i compiling succes&lt;/li&gt;
	&lt;li&gt;bsoncxx: after compilation libbson and libmongoc, I always get error: command line error jpg attached. &lt;b&gt;sometimes it successed sometimes not.&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Before I compiled all library with android ndk r15 and all code working well in Samdung A5 and A3 but at another device like J7 Mi5 or LG g5 console error white building a &lt;b&gt;bsoncxx::Dbuilder::basic::document{};&lt;/b&gt;&#160;libc error invalid address 0x4556...&#160;&lt;/p&gt;

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

&lt;p&gt;Now EP_minimalistic_core give me a error. How can I fix it? or How can Use mongocxx on Android?&#160; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/193052/193052_image-2018-07-31-17-59-51-769.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>Android</environment>
        <key id="580282">CXX-1625</key>
            <summary>Android NDK r17 compiler error</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="13202">Works as Designed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="cmldmr">Cemal DEM?R</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Tue, 31 Jul 2018 15:02:03 +0000</created>
                <updated>Fri, 27 Oct 2023 13:13:40 +0000</updated>
                            <resolved>Thu, 2 Aug 2018 12:35:25 +0000</resolved>
                                    <version>3.3.1</version>
                                    <fixVersion>3.4.0</fixVersion>
                                    <component>Release</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1963828" author="cmldmr" created="Thu, 2 Aug 2018 12:46:37 +0000"  >&lt;p&gt;can you change to topic title &quot;compiler error&quot; to &quot;Android NDK r17 compiler error&quot; or what this topic mean? I can not change the topic&apos;s title.&lt;/p&gt;</comment>
                            <comment id="1963827" author="cmldmr" created="Thu, 2 Aug 2018 12:44:58 +0000"  >&lt;p&gt;yes, i preparing a wrapper that libbsonc and libmongoc. i don&apos;t sure my code is clean or written professional. i will be published it on github and may be you help me where i am wrong. i will be send a pull request if c libraries work a lot of android variant.&lt;/p&gt;

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

&lt;p&gt;Thank you Jesse.&lt;/p&gt;

&lt;p&gt;Good Luck&lt;/p&gt;</comment>
                            <comment id="1963818" author="jesse" created="Thu, 2 Aug 2018 12:35:25 +0000"  >&lt;p&gt;Thanks for your answer. We do not officially support the C++ Driver on Android, and we don&apos;t have the expertise to help you with issues on specific Android variants. If you need to make any small changes to the C++ Driver so it will compile on your systems, please send a pull request. Once you have it working everywhere, please put your build steps into this ticket, or publish them somewhere online, so that future Android developers can benefit from your work. Thank you!&lt;/p&gt;</comment>
                            <comment id="1963708" author="cmldmr" created="Thu, 2 Aug 2018 07:47:38 +0000"  >&lt;p&gt;bsonc and libmongoc working on Samsung Note4 Android 6.0 , Samsung Note5 Android 7.0 Working Well both query and insert.&lt;/p&gt;</comment>
                            <comment id="1963672" author="cmldmr" created="Thu, 2 Aug 2018 05:53:05 +0000"  >&lt;p&gt;auto filter = bsoncxx::builder::basic::document{};&#160;&lt;/p&gt;

&lt;p&gt;try &lt;/p&gt;
{

&#160; &#160; filter.append(bsoncxx::builder::basic::kvp(&quot;test&quot;,&quot;test&quot;));

}
&lt;p&gt; catch (bsoncxx::exception &amp;amp;e) &lt;/p&gt;
{&#160;

}

&lt;p&gt;code above and below compiler error:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;D:\project\Android-NDK-r17b\android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -&lt;del&gt;sysroot=D:\project\Android-NDK-r17b\android-ndk-r17b/platforms/android-16/arch-arm/ -Wl,-soname,libBSONTEST.so -Wl,-rpath=C:/Qt/5.10.0/android_armv7/lib -Wl,&lt;/del&gt;-no-undefined -Wl,-z,noexecstack -shared -o libBSONTEST.so main.obj qrc_qml.obj -LD:\project\Android-NDK-r17b\android-ndk-r17b/sources/cxx-stl/gnu-libstdc+&lt;ins&gt;/4.9/libs/armeabi-v7a -Ld:/project/android-ndk-r17b/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x -LC:/Users/Manager/Documents/AndroidTest/BSONTEST/android/lib/ -LC:/Users/Manager/Documents/AndroidTest/BSONTEST/android/lib -lbsoncxx -lmongocxx -lbson-1.0 -lmongoc-1.0 -LC:/Qt/5.10.0/android_armv7/lib -lQt5Quick -Lc:\utils\android-ndk-r10e/sources/cxx-stl/gnu-libstdc&lt;/ins&gt;+/4.9/libs/armeabi-v7a -Lc:/utils/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.9 -LC:\Qt\5.10.0\android_armv7/lib -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lgnustl_shared -lgcc -llog -lz -lm -ldl -lc&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;main.obj:main.cpp:function main: error: undefined reference to &apos;bsoncxx::v_noabi::builder::core::key_view(std::experimental::basic_string_view&amp;lt;char, std::char_traits&amp;lt;char&amp;gt; &amp;gt;)&apos;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;collect2.exe: error: ld returned 1 exit status&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;libBSONTEST.so&amp;#93;&lt;/span&gt; Error 1&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;08:48:35: The process &quot;D:\project\Android-NDK-r17b\android-ndk-r17b\prebuilt\windows-x86_64\bin\make.exe&quot; exited with code 2.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Error while building/deploying project BSONTEST (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.10.0 (android_armv7)))&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;When executing step &quot;Make&quot;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;before i said bsonc and mongoc working&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1963570" author="jesse" created="Wed, 1 Aug 2018 23:21:44 +0000"  >&lt;p&gt;Thanks for the information. No, there is no precompiled mongocxx driver for Android.&lt;/p&gt;

&lt;p&gt;What is your current status? Does the driver work for you or not?&lt;/p&gt;</comment>
                            <comment id="1963009" author="cmldmr" created="Wed, 1 Aug 2018 16:25:45 +0000"  >&lt;p&gt;libbsonc and libmongoc working well on Android emulator Android version 5.0,&#160; Samsung A5 Android version 6.0.1 And Samsung J5 Android version 7.0.&#160;&lt;/p&gt;

&lt;p&gt;both query and insert bson. I will be tested soon on before crashed device like Samsung J7, MI5 and HTC&lt;/p&gt;</comment>
                            <comment id="1962531" author="cmldmr" created="Wed, 1 Aug 2018 11:42:35 +0000"  >&lt;p&gt;is there precompiled mongocxx driver for adroid?&lt;/p&gt;</comment>
                            <comment id="1962423" author="cmldmr" created="Wed, 1 Aug 2018 07:38:52 +0000"  >&lt;p&gt;cmake -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=ON -DCMAKE_CXX_STANDARD=14 compiling well. thanks for you but previous error. like -&lt;b&gt;lrt&lt;/b&gt; or -&lt;b&gt;lresolv while compiling libmongoc,&lt;/b&gt;&#160;what will do?&lt;/p&gt;</comment>
                            <comment id="1962413" author="cmldmr" created="Wed, 1 Aug 2018 07:07:15 +0000"  >&lt;p&gt;clang version&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/193116/193116_errror.JPG&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;EP Step&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://jira.mongodb.org/images/icons/attach/noimage.png&quot; imagetext=&quot;ep   error.JPG|thumbnail&quot; align=&quot;absmiddle&quot; border=&quot;0&quot; /&gt;&lt;/p&gt;

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

&lt;p&gt;EP_mnmlstc_core-configure-err.log&lt;/p&gt;

&lt;p&gt;/*******************&lt;/p&gt;

&lt;p&gt;CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/CMakeMinGWFindMake.cmake:12 (message):&lt;br/&gt;
 sh.exe was found in your PATH, here:&lt;/p&gt;

&lt;p&gt;C:/Program Files/Git/usr/bin/sh.exe&lt;/p&gt;

&lt;p&gt;For MinGW make to work correctly sh.exe must NOT be in your path.&lt;/p&gt;

&lt;p&gt;Run cmake from a shell that does not have sh.exe in your PATH.&lt;/p&gt;

&lt;p&gt;If you want to use a UNIX shell, then use MSYS Makefiles.&lt;/p&gt;

&lt;p&gt;Call Stack (most recent call first):&lt;br/&gt;
 CMakeLists.txt:2 (project)&lt;/p&gt;

&lt;p&gt;CMake Error: CMake was unable to find a build program corresponding to &quot;MinGW Makefiles&quot;. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.&lt;br/&gt;
 CMake Error: CMake was unable to find a build program corresponding to &quot;MinGW Makefiles&quot;. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.&lt;/p&gt;

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

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

&lt;p&gt;i will try option&#160;&quot;cmake -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=ON -DCMAKE_CXX_STANDARD=14&quot; and post result here&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1962124" author="jesse" created="Tue, 31 Jul 2018 21:18:12 +0000"  >&lt;p&gt;Thanks for the report. A few questions:&lt;/p&gt;

&lt;p&gt;1. What version of clang do you have installed?&lt;/p&gt;

&lt;p&gt;2. The error messages tells you to look for log files in C:/mongoV2/mongocxx/mongo-cxx-driver-r3.3.1/build/src/bsoncxx/third_party/EP_mnmlstc_core-prefix/EPI_mnmlstc_core-stamp/. Are there any log files in that directory? I&apos;m particularly interested in &quot;EP_mnmlstc_core-configure-err.log&quot;.&lt;/p&gt;

&lt;p&gt;3. What if you run &quot;cmake -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=ON -DCMAKE_CXX_STANDARD=14&quot;?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="580281">CXX-1624</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="193053" name="EP error.JPG" size="87899" author="cmldmr" created="Tue, 31 Jul 2018 15:01:38 +0000"/>
                            <attachment id="193117" name="ep++ error.JPG" size="91010" author="cmldmr" created="Wed, 1 Aug 2018 07:04:39 +0000"/>
                            <attachment id="193116" name="errror.JPG" size="35733" author="cmldmr" created="Wed, 1 Aug 2018 06:53:41 +0000"/>
                            <attachment id="193052" name="image-2018-07-31-17-59-51-769.png" size="87899" author="cmldmr" created="Tue, 31 Jul 2018 15:01:45 +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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hturzr:</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>