<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:00:08 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-740] wrong settings in SConstruct for --ssl option</title>
                <link>https://jira.mongodb.org/browse/CXX-740</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I ran into issue when tried to compile driver with -ssl option.&lt;br/&gt;
Test &quot;def CheckLinkSSL(context)&quot; from SConstruct is not passed.&lt;br/&gt;
I checked config.log and it tries to build simple ssl test with gcc (because of *.c extension of generated file), but with boost_regext, boost_thread libraries.&lt;br/&gt;
It can be fixed simply by fixing dependencies for test or renaming that file to have cpp extention - g++ will be picked up.&lt;/p&gt;</description>
                <environment></environment>
        <key id="240246">CXX-740</key>
            <summary>wrong settings in SConstruct for --ssl option</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="4">Incomplete</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="bayda">Vladimir Bayda</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Thu, 19 Nov 2015 17:24:40 +0000</created>
                <updated>Fri, 11 Dec 2015 14:39:46 +0000</updated>
                            <resolved>Fri, 11 Dec 2015 14:39:46 +0000</resolved>
                                    <version>legacy-1.0.5</version>
                    <version>legacy-1.1.0-rc0</version>
                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1112012" author="acm" created="Fri, 11 Dec 2015 14:39:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=bayda&quot; class=&quot;user-hover&quot; rel=&quot;bayda&quot;&gt;bayda&lt;/a&gt; - I&apos;m closing this issue as I haven&apos;t heard back from you with any further details. If you are still having trouble building the driver please feel free to re-open the ticket.&lt;/p&gt;</comment>
                            <comment id="1107403" author="acm" created="Mon, 7 Dec 2015 19:41:32 +0000"  >&lt;p&gt;Why are you using the --runtime-library-search-path option? It should not be necessary if your boost installation is properly done.&lt;/p&gt;</comment>
                            <comment id="1093432" author="bayda" created="Thu, 19 Nov 2015 19:39:53 +0000"  >&lt;p&gt;I use following scons command line&lt;br/&gt;
scons --prefix=${INSTALL_TO} --disable-warnings-as-errors --runtime-library-search-path=${BOOST_LIB} --cc=${CC} --cxx=${CXX} --extrapath=${BOOST},${OPENSSL} --c++11=on --ssl install&lt;br/&gt;
&amp;#8211;&lt;br/&gt;
command lines from scons config.log&lt;br/&gt;
gcc -o build/scons/sconf_temp/conftest_31.o -c -std=c99 -fPIC -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -pipe -O3 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-braces -DMONGO_EXPOSE_MACROS -D_FILE_OFFSET_BITS=64 -DMONGO_HAVE___THREAD -DBOOST_THREAD_USES_DATETIME -DMONGO_HAVE_HEADER_UNISTD_H -DMONGO_HAVE_POSIX_MONOTONIC_CLOCK -I/&lt;b&gt;skipped&lt;/b&gt;/ssl/third_party/gtest-1.7.0/include -I/&lt;b&gt;skipped&lt;/b&gt;/ssl -I/&lt;b&gt;skipped&lt;/b&gt;/ssl/mongo -I/&lt;b&gt;skipped&lt;/b&gt;/boost/include -I/&lt;b&gt;skipped&lt;/b&gt;/openssl-0.9.7g-m64/include build/scons/sconf_temp/conftest_31.c&lt;br/&gt;
gcc -o build/scons/sconf_temp/conftest_31 -fPIC -Wl,-z,now -rdynamic -pthread build/scons/sconf_temp/conftest_31.o -L$ -L/&lt;b&gt;skipped&lt;/b&gt;/openssl-0.9.7g-m64/lib -L/usr/lib64 -L/lib64 -lm -lpthread -lssl -lcrypto -lboost_regex -lboost_thread -lboost_system&lt;/p&gt;

&lt;p&gt;I replaced long parts of pathes on /&lt;b&gt;skipped&lt;/b&gt;/.&lt;/p&gt;</comment>
                            <comment id="1093354" author="acm" created="Thu, 19 Nov 2015 18:51:21 +0000"  >&lt;p&gt;Interestingly, it doesn&apos;t fail for me, either on OS X or on Linux. It is somewhat strange to me that this would fail. The executable itself doesn&apos;t have any dependencies on the C++ runtime symbols. The boost library of course does, but I would expect that libboost_regex.so, for instance, would have a DT_NEEDED entry for libstdc++ and libgcc_s.so. On my system, for instance:&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;$ readelf -a /usr/lib/x86_64-linux-gnu/libboost_regex.so | grep NEEDED&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; 0x0000000000000001 (NEEDED)             Shared library: [libicui18n.so.55]&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; 0x0000000000000001 (NEEDED)             Shared library: [libicuuc.so.55]&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; 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]&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; 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]&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; 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.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;   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; 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]&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;Are you passing any extra flags to the build system? What does your SCons invocation look like? Does your boost_regex have a DT_NEEDED entry for the C++ runtime libraries?&lt;/p&gt;</comment>
                            <comment id="1093270" author="bayda" created="Thu, 19 Nov 2015 17:49:55 +0000"  >&lt;p&gt;libboost_regex.so: undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::overflow_error::~overflow_error()@GLIBCXX_3.4.15&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::_&lt;em&gt;detail::_List_node_base::_M_hook(std::&lt;/em&gt;_detail::_List_node_base*)@GLIBCXX_3.4.15&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::invalid_argument::~invalid_argument()@GLIBCXX_3.4.15&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20&apos;&lt;br/&gt;
libboost_regex.so: undefined reference to `std::_&lt;em&gt;detail::_List_node_base::_M_transfer(std::&lt;/em&gt;&lt;em&gt;detail::_List_node_base*, std::&lt;/em&gt;_detail::_List_node_base*)@GLIBCXX_3.4.15&apos;&lt;/p&gt;

&lt;p&gt;It happens because it compiles file with gcc instead of g++ and links -lboost_regex -lboost_thread -lboost_system&lt;/p&gt;</comment>
                            <comment id="1093249" author="acm" created="Thu, 19 Nov 2015 17:34:50 +0000"  >&lt;p&gt;Thanks for the bug report. What error is emitted in the config.log when linking that way?&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|hrdwmf:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="756">Platform D (12/11/15)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>