<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:19 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-139] Legacy driver compile error</title>
                <link>https://jira.mongodb.org/browse/CXX-139</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;boots extrapath is ignored at building time - as follow:&lt;/p&gt;

&lt;p&gt;scons --prefix=/opt/local/mongodb/mongo-client-install --full --extrapath=/opt/local/include/boost --use-system-boost install-mongoclient&lt;br/&gt;
scons: Reading SConscript files ...&lt;br/&gt;
scons version: 2.3.0&lt;br/&gt;
python version: 2 7 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... no&lt;br/&gt;
Checking if C++ compiler &quot;g++&quot; is clang... yes&lt;br/&gt;
Checking if C compiler &quot;gcc&quot; is clang... 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... yes&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... yes&lt;br/&gt;
Checking if C compiler supports -Wno-unused-const-variable... yes&lt;br/&gt;
Checking if C compiler supports -mmacosx-version-min=10.6... yes&lt;br/&gt;
Checking for __thread... no&lt;br/&gt;
Checking for C++ header file boost/filesystem/operations.hpp... no&lt;br/&gt;
can&apos;t find boost headers&lt;/p&gt;

&lt;p&gt;Where the &quot;missing&quot; boost/filesystem/operations.hpp file does exist: it&apos;s actually located @ /opt/local/include/boost/filesystem/operations.hpp&lt;/p&gt;

&lt;p&gt;Looks like the build script is not taking notice of my extrapath...&lt;/p&gt;

&lt;p&gt;When I am trying without --use-system-boost the extrapath is used but  then the script is blocked later on because  --use-system-boost was required by C++ compiler...&lt;/p&gt;
</description>
                <environment>sources: &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver.git&quot;&gt;https://github.com/mongodb/mongo-cxx-driver.git&lt;/a&gt;&lt;br/&gt;
env: macosx 10.9.2 with xcode 5.1 w/ latest command line tools + boots library installed from macports.org&lt;br/&gt;
</environment>
        <key id="120524">CXX-139</key>
            <summary>Legacy driver compile error</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="tyler@10gen.com">Tyler Brock</assignee>
                                    <reporter username="nodeleaf">Patrick Perroud</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Fri, 14 Mar 2014 08:46:49 +0000</created>
                <updated>Thu, 10 Apr 2014 18:05:13 +0000</updated>
                            <resolved>Fri, 14 Mar 2014 14:17:28 +0000</resolved>
                                    <version>legacy-0.0-26compat-2.6.0-rc1</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="516121" author="milkie" created="Fri, 14 Mar 2014 14:17:07 +0000"  >&lt;p&gt;Indeed, most boost distributions do not have an &apos;include&apos; directory within the &apos;boost&apos; directory, so using --extrapath doesn&apos;t work.&lt;br/&gt;
Good to hear it&apos;s working for you.&lt;/p&gt;</comment>
                            <comment id="516112" author="nodeleaf" created="Fri, 14 Mar 2014 14:12:34 +0000"  >&lt;p&gt;@Eric Milkie&lt;/p&gt;

&lt;p&gt;In my case there is no &apos;include&apos; directory within the &apos;boost&apos; directory but a buch of *.hpp files and more directories w/ more *.hpp files.&lt;/p&gt;

&lt;p&gt;Anyways - following your latter advice I set it like this:&lt;/p&gt;

&lt;p&gt;scons --prefix=/opt/local/mongodb/mongo-client-install --full --extrapath=/opt/local --cpppath=/opt/local/include/boost --use-system-boost install-mongoclient  &lt;/p&gt;

&lt;p&gt;And got it built! Thank you...&lt;/p&gt;</comment>
                            <comment id="516040" author="milkie" created="Fri, 14 Mar 2014 12:25:05 +0000"  >&lt;p&gt;The &quot;extrapath&quot; option is used to make both an include search path for the compiler and a library search path for the linker.  It appends &quot;include/&quot; to the path you provide and uses that for the include path.  So in your case, the include path will be &quot;/opt/local/include/boost/include/&quot;.&lt;br/&gt;
&quot;boost/filesystem/operations.hpp&quot; definitely does not exist in &quot;/opt/local/include/boost/include/&quot;.&lt;/p&gt;

&lt;p&gt;Your options are either to use &quot;/opt/local&quot; for --extrapath (not sure if that will link properly though), or else use --cpppath which allows you to specify an exact include path.&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|hrwqwf:</customfieldvalue>

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