<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:35 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-565]  mongo::client::initialize() crashes</title>
                <link>https://jira.mongodb.org/browse/CXX-565</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;mongo::client::initialize() crashes when compiler __cplusplus is 201103.&lt;br/&gt;
temporary workaround is change &lt;br/&gt;
src/mongo/src/stdx/functional.h &lt;br/&gt;
to always use boost::function&lt;/p&gt;</description>
                <environment></environment>
        <key id="190562">CXX-565</key>
            <summary> mongo::client::initialize() crashes</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="9">Done</resolution>
                                        <assignee username="adam.midvidy">Adam Midvidy</assignee>
                                    <reporter username="Judy.Han">Judy Han [X]</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Thu, 19 Mar 2015 03:00:48 +0000</created>
                <updated>Mon, 23 Mar 2015 22:18:17 +0000</updated>
                            <resolved>Mon, 23 Mar 2015 21:52:44 +0000</resolved>
                                    <version>legacy-1.0.0</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="861571" author="judy.han" created="Mon, 23 Mar 2015 22:18:17 +0000"  >&lt;p&gt;Hi Adam,&lt;br/&gt;
Thank for the info! I will keep that in mind.&lt;br/&gt;
Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="861549" author="adam.midvidy" created="Mon, 23 Mar 2015 21:52:24 +0000"  >&lt;p&gt;Hi Judy,&lt;/p&gt;

&lt;p&gt;Glad to hear that worked. Also, if you are already using C+&lt;ins&gt;11 you should take a look at our new C&lt;/ins&gt;+11 driver, which can be found here: &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/tree/master&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/tree/master&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is not completely stable yet, but it offers a much more idiomatic API. You can read more about it here: &lt;a href=&quot;http://www.mongodb.com/blog/post/introducing-new-c-driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.com/blog/post/introducing-new-c-driver&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Adam&lt;/p&gt;</comment>
                            <comment id="861540" author="judy.han" created="Mon, 23 Mar 2015 21:43:44 +0000"  >&lt;p&gt;Hi Adam&lt;br/&gt;
That works! Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="861534" author="adam.midvidy" created="Mon, 23 Mar 2015 21:39:36 +0000"  >&lt;p&gt;Can you try passing the -cc and -cxx options to manually specify the location of gcc 4.8 and g++ 4.8 to SCons?&lt;/p&gt;</comment>
                            <comment id="861528" author="judy.han" created="Mon, 23 Mar 2015 21:36:29 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;I did some experiments, following code compiles and runs successfully with or without -std=c++11 flag&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;   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;#include &amp;lt;vector&amp;gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;#if !defined(_GLIBCXX_BEGIN_NAMESPACE_VERSION)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;#error libstdcxx older than 4.6.0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;#endif&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;int main() { return 0; }&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;It&apos;s almost like something is missing in SConstruct to get the right environment. The reason I say that is it looks like that&apos;s how SConstruct decide if we are using libstdc++4.6.0 or older version.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="861523" author="adam.midvidy" created="Mon, 23 Mar 2015 21:33:42 +0000"  >&lt;p&gt;Hi Judy,&lt;/p&gt;

&lt;p&gt;Unfortunately this does not seem to be a driver issue, but rather a toolchain misconfiguration. We are only able to assist with issues involving the driver itself. I would suggest contacting Red Hat and asking for assistance on properly enabling devtoolset-2.&lt;/p&gt;

&lt;p&gt;Adam&lt;/p&gt;</comment>
                            <comment id="861421" author="judy.han" created="Mon, 23 Mar 2015 20:35:39 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;I did have following for all my tests we discussed:&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;scl enable devtoolset-2 bash&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;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="861407" author="adam.midvidy" created="Mon, 23 Mar 2015 20:28:53 +0000"  >&lt;p&gt;Hi Judy,&lt;/p&gt;

&lt;p&gt;MongoDB C++ driver supports -std=c++11 on RHEL 6.6.&lt;/p&gt;

&lt;p&gt;It looks like you have the devtoolset-2 installed, but you need to enable it.&lt;/p&gt;

&lt;p&gt;Try&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;scl enable devtoolset-2 bash&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;Then recompile the driver with -std=c++11.&lt;/p&gt;

&lt;p&gt;Adam&lt;/p&gt;</comment>
                            <comment id="861404" author="judy.han" created="Mon, 23 Mar 2015 20:25:59 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;Just want to clarify that for Redhat 6.6, mongodb c++ driver does not support -std=c++11?&lt;/p&gt;

&lt;p&gt;What driver do you recommand if performance is our major concern?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="859298" author="judy.han" created="Fri, 20 Mar 2015 16:36:21 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;I see. Thanks for the information.&lt;br/&gt;
We are using Redhat 6.6, it looks like that latest libstdc++.so for Redhat 6.6 is version 4.4.7.&lt;br/&gt;
And we are using -std=c++11 for our projects.&lt;/p&gt;

&lt;p&gt;Do you have any suggestions?&lt;br/&gt;
Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="859214" author="adam.midvidy" created="Fri, 20 Mar 2015 15:07:16 +0000"  >&lt;p&gt;Judy,&lt;/p&gt;

&lt;p&gt;libstdc+&amp;#43;4.6.0 is a requirement for compiling the driver with C+&amp;#43;11 enabled. If you require compiling the driver in C+&amp;#43;11 mode, you should upgrade to a newer libstdc+&amp;#43;.&lt;/p&gt;

&lt;p&gt;Adam&lt;/p&gt;</comment>
                            <comment id="858975" author="judy.han" created="Fri, 20 Mar 2015 06:37:12 +0000"  >&lt;p&gt;ah, thanks!&lt;br/&gt;
here is the output:&lt;/p&gt;

&lt;p&gt;scons --cpppath=/home/jhan/Software/boost/boost_1_55_0 --extrapath=/home/jhan/workspace/MTX/publish_linux/opt/mtx  --c++11=on --config=force --sharedclient install-examples&lt;br/&gt;
scons: Reading SConscript files ...&lt;br/&gt;
scons version: 2.0.1&lt;br/&gt;
python version: 2 6 6 &apos;final&apos; 0&lt;br/&gt;
Checking whether the C++ compiler worksyes&lt;br/&gt;
Checking whether the C compiler worksyes&lt;br/&gt;
Checking if C++ compiler &quot;g++&quot; is GCC... yes&lt;br/&gt;
Checking if C compiler &quot;gcc&quot; is GCC... yes&lt;br/&gt;
Checking if C compiler supports -Wno-unused-local-typedefs... no&lt;br/&gt;
Checking if C compiler supports -Wno-unused-function... yes&lt;br/&gt;
Checking if C compiler supports -Wno-unused-private-field... no&lt;br/&gt;
Checking if C compiler supports -Wno-deprecated-declarations... yes&lt;br/&gt;
Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no&lt;br/&gt;
Checking if C compiler supports -Wno-unused-const-variable... no&lt;br/&gt;
Checking if C compiler supports -Wno-missing-braces... yes&lt;br/&gt;
Checking if we are using libstdc++... yes&lt;br/&gt;
Checking for libstdc++ 4.6.0 or better... no&lt;br/&gt;
Detected libstdc++ is too old to support C++11 mode&lt;/p&gt;

&lt;p&gt;I see, I have:&lt;br/&gt;
%rpm -q libstdc++&lt;br/&gt;
libstdc++-4.4.7-11.el6.x86_64&lt;br/&gt;
libstdc++-4.4.7-11.el6.i686&lt;/p&gt;

&lt;p&gt;Is the requirement for libstdc++4.6.0 or better a mongo client driver requirement?&lt;br/&gt;
In my devtoolset-2 directory I have:&lt;br/&gt;
%cat root/usr/lib/gcc/x86_64-redhat-linux/4.8.2/32/libstdc++.so&lt;br/&gt;
/* GNU ld script&lt;br/&gt;
   Use the shared library, but some functions are only in&lt;br/&gt;
   the static library, so try that secondarily.  */&lt;br/&gt;
OUTPUT_FORMAT(elf32-i386)&lt;br/&gt;
INPUT ( /usr/lib/libstdc+&lt;ins&gt;.so.6 -lstdc&lt;/ins&gt;+_nonshared )&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="858356" author="adam.midvidy" created="Thu, 19 Mar 2015 21:24:53 +0000"  >&lt;p&gt;Ah, you should compile without the -Q flag which suppresses the relevant scons output.&lt;/p&gt;

&lt;p&gt;The configure output will look like this (without -Q flag)&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;   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;scons: Reading SConscript files ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;scons version: 2.3.0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;python version: 2 7 6 &apos;final&apos; 0&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;Checking whether the C++ compiler worksyes&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;Checking whether the C compiler worksyes&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;... more lines ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;scons: done reading SConscript files.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;scons: Building targets ...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="858319" author="judy.han" created="Thu, 19 Mar 2015 21:00:06 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;Here is the full output for the rerun:&lt;br/&gt;
%scons --cpppath=/home/jhan/Software/boost/boost_1_55_0 --extrapath=/home/jhan/workspace/MTX/publish_linux/opt/mtx  --c++11=on --config=force --sharedclient -Q install-examples&lt;br/&gt;
scons version: 2.0.1&lt;br/&gt;
python version: 2 6 6 &apos;final&apos; 0&lt;br/&gt;
Detected libstdc++ is too old to support C++11 mode&lt;/p&gt;

&lt;p&gt;Not sure if that is what your are refering to when you mentioned &quot;full configure output of Scons&quot;, if not please let me know.&lt;/p&gt;

&lt;p&gt;Since I have multiple compilers installed in my machine and to get the c++11, I do following before I compile my programs:&lt;br/&gt;
%scl enable devtoolset-2 &quot;bash&quot;&lt;/p&gt;

&lt;p&gt;%which g++&lt;br/&gt;
/opt/rh/devtoolset-2/root/usr/bin/g++&lt;/p&gt;

&lt;p&gt;%/sbin/ldconfig -p |grep stdc++&lt;br/&gt;
	libstdc+&lt;ins&gt;.so.6 (libc6,x86-64) =&amp;gt; /usr/lib64/libstdc&lt;/ins&gt;+.so.6&lt;br/&gt;
	libstdc+&lt;ins&gt;.so.6 (libc6) =&amp;gt; /usr/lib/libstdc&lt;/ins&gt;+.so.6&lt;/p&gt;

&lt;p&gt;%strings /usr/lib/libstdc++.so.6|grep LIBCXX&lt;br/&gt;
GLIBCXX_3.4&lt;br/&gt;
GLIBCXX_3.4.1&lt;br/&gt;
GLIBCXX_3.4.2&lt;br/&gt;
GLIBCXX_3.4.3&lt;br/&gt;
GLIBCXX_3.4.4&lt;br/&gt;
GLIBCXX_3.4.5&lt;br/&gt;
GLIBCXX_3.4.6&lt;br/&gt;
GLIBCXX_3.4.7&lt;br/&gt;
GLIBCXX_3.4.8&lt;br/&gt;
GLIBCXX_3.4.9&lt;br/&gt;
GLIBCXX_3.4.10&lt;br/&gt;
GLIBCXX_3.4.11&lt;br/&gt;
GLIBCXX_3.4.12&lt;br/&gt;
GLIBCXX_3.4.13&lt;br/&gt;
GLIBCXX_FORCE_NEW&lt;br/&gt;
GLIBCXX_DEBUG_MESSAGE_LENGTH&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;
</comment>
                            <comment id="858234" author="adam.midvidy" created="Thu, 19 Mar 2015 19:47:46 +0000"  >&lt;p&gt;Judy,&lt;/p&gt;

&lt;p&gt;That is an odd error as GCC 4.8.2 is a fairly modern compiler - I build with the same version. Can you rerun scons with the same options (including c++11=on), but add --config=force. Then can you reply with the full configure output of SCons (everything before &quot;scons: building targets...&quot;)&lt;/p&gt;

&lt;p&gt;Additionally can you let me know the version of libstdc++ installed on your machine?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Adam&lt;/p&gt;
</comment>
                            <comment id="858137" author="judy.han" created="Thu, 19 Mar 2015 18:19:41 +0000"  >&lt;p&gt;Hi Adam,&lt;/p&gt;

&lt;p&gt;when I tried --c++11=on option for compiling the driver, I got following error:&lt;/p&gt;

&lt;p&gt;scons version: 2.0.1&lt;br/&gt;
python version: 2 6 6 &apos;final&apos; 0&lt;br/&gt;
Detected libstdc++ is too old to support C++11 mode&lt;/p&gt;

&lt;p&gt;This is my g++ version &lt;br/&gt;
g++ --version&lt;br/&gt;
g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="858108" author="adam.midvidy" created="Thu, 19 Mar 2015 18:02:23 +0000"  >&lt;p&gt;Hi Judy,&lt;/p&gt;

&lt;p&gt;I think the problem is that you are compiling the driver with c+&amp;#43;03, but compiling your application with c+&amp;#43;11. As the ABI of libstdc++ changed with the introduction of c+&amp;#43;11, it is not possible to link a c+&amp;#43;98/03 static library into a c+&amp;#43;11 application.&lt;/p&gt;

&lt;p&gt;Can you try recompiling the driver with the --c+&amp;#43;11=on option, and removing your modification to functional.h?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Adam&lt;/p&gt;</comment>
                            <comment id="858061" author="judy.han" created="Thu, 19 Mar 2015 17:29:27 +0000"  >&lt;p&gt;Hi Adam,&lt;br/&gt;
    Thanks for the quick response.&lt;br/&gt;
    Here is the SCons  command I used to compile the legacy driver:&lt;br/&gt;
    scons --cpppath=/home/jhan/Software/boost/boost_1_55_0 --extrapath=/home/jhan/workspace/nonuniqkeywork/publish_linux/opt/mtx  --sharedclient -Q install-examples&lt;br/&gt;
    btw, I had to modify SConstruct as follows:&lt;br/&gt;
        from: boostLibs = [ &quot;regex&quot;, &quot;thread&quot;, &quot;system&quot;]&lt;br/&gt;
        to:     boostLibs = [ &quot;regex&quot;, &quot;system&quot;, &quot;thread&quot;] &lt;br/&gt;
    otherwise there are compiling errors for library dependancy.&lt;/p&gt;

&lt;p&gt;    The compiling command for my application is:&lt;br/&gt;
     g++ mtx_bulk_pool.cpp -std=c++11 -I/home/jhan/Software/mongo-cxx-driver-legacy-1.0.0/src -I/home/jhan/Software/mongo-cxx-driver-legacy-1.0.0/build/linux2/normal -I/home/jhan/workspace/nonuniqkeywork/tools/boost -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_system -lboost_program_options -L/home/jhan/Software/mongo-cxx-driver-legacy-1.0.0/build/install/lib -L/home/jhan/Software/boost/boost_1_55_0/stage/lib&lt;/p&gt;

&lt;p&gt;    The key flag is -std=c++11, without this flag, it works, but with this flag, it core dumps because it uses std::function instead of boost::function.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
Judy&lt;/p&gt;</comment>
                            <comment id="857649" author="adam.midvidy" created="Thu, 19 Mar 2015 10:30:26 +0000"  >&lt;p&gt;Hi Judy - &lt;/p&gt;

&lt;p&gt;I am sorry to hear you are having trouble compiling the legacy driver.&lt;/p&gt;

&lt;p&gt;Can you tell me the exact SCons invocation you used to compile the legacy driver, as well as the compiler flags used to compile your application?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Adam&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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs79ef:</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>