<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:59:51 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-645] Attempting to build c++ driver on windows with SASL</title>
                <link>https://jira.mongodb.org/browse/CXX-645</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Trying to build mongo c++ driver on window with the --ssl and the --use_sasl_client.   I have got the --ssl to build without the sasl however whenever I attempt to add the use_sasl_client option it stalls out checking the sasl2 library.   &lt;/p&gt;

&lt;p&gt;Is there clear instructions on how to build this on Windows.  &lt;/p&gt;</description>
                <environment></environment>
        <key id="223704">CXX-645</key>
            <summary>Attempting to build c++ driver on windows with SASL</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="thomas.gibson">Thomas Gibson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Jul 2015 22:57:54 +0000</created>
                <updated>Wed, 11 Sep 2019 19:05:49 +0000</updated>
                            <resolved>Sun, 10 Jan 2016 17:41:40 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="997365" author="thomas.gibson" created="Wed, 5 Aug 2015 17:31:40 +0000"  >&lt;p&gt;Never mind it all works, was building from wrong VS command prompt.  Thanks for the help.&lt;/p&gt;</comment>
                            <comment id="997259" author="thomas.gibson" created="Wed, 5 Aug 2015 16:43:36 +0000"  >&lt;p&gt;Thank you Andrew,  I am making a lot of progress.  I was able to build the 32 bit version of the driver in both debug and release.  I am still running into a problem with the 64 bit driver. I get an unresolved external Link error.  I believe I am not properly building the sasl libraries in 64 bit.   Any suggestions.&lt;/p&gt;</comment>
                            <comment id="996655" author="acm" created="Tue, 4 Aug 2015 23:52:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=thomas.gibson&quot; class=&quot;user-hover&quot; rel=&quot;thomas.gibson&quot;&gt;thomas.gibson&lt;/a&gt; - When the configure phase of SCons runs, it logs all test results to the file build/scons/config.log. You should be able to review that file to better understand what went wrong with the test for sasl_version_info. Please note that you might want to add the flag --config=force to your SCons invocation to inhibit configuration test result caching. Otherwise, the log file may not be very revealing.&lt;/p&gt;</comment>
                            <comment id="996517" author="thomas.gibson" created="Tue, 4 Aug 2015 20:37:41 +0000"  >&lt;p&gt;I followed your directions to build the sasl Libraries.  I however am still running into a problem.   Also, I wanted to know if I needed to do anything different to build the 64bit sasl than the 32?&lt;/p&gt;

&lt;p&gt;Input&lt;/p&gt;

&lt;p&gt;scons-2.3.0 --prefix=&quot;D:\MONGO\build\client\x86\debug\&quot; --32 --sharedclient --dynamic-windows --dbg=on  --opt=on --dynamic-boost=off --cpppath=&quot;E:\boost&quot; --libpath=&quot;E:\boost\lib32-msvc-12.0&quot; --ssl --extrapath=C:\OpenSSL-Win32 --use-sasl-client --extrapath=E:\sasl install&lt;/p&gt;


&lt;p&gt;output&lt;/p&gt;

&lt;p&gt;scons: Reading SConscript files ...&lt;br/&gt;
scons version: 2.3.0&lt;br/&gt;
python version: 2 7 3 &apos;final&apos; 0&lt;br/&gt;
Checking whether the C++ compiler works(cached) yes&lt;br/&gt;
Checking whether the C compiler works(cached) yes&lt;br/&gt;
Checking if C++ compiler &quot;$CC&quot; is MSVC... (cached) yes&lt;br/&gt;
Checking if C compiler &quot;cl&quot; is MSVC... (cached) yes&lt;br/&gt;
Checking if we are using libstdc++... (cached) no&lt;br/&gt;
WARNING: Cannot disable C++11 features when using MSVC&lt;br/&gt;
Checking if we are on a POSIX system... (cached) no&lt;br/&gt;
Checking for VS 2013 Update 2 or Later... (cached) yes&lt;br/&gt;
Checking for __declspec(thread)... no&lt;br/&gt;
Checking for C++11 &amp;lt;atomic&amp;gt; support... no&lt;br/&gt;
Checking for C++ header file boost/version.hpp... yes&lt;br/&gt;
Checking for C header file unistd.h... no&lt;br/&gt;
Checking for sasl_version_info(0, 0, 0, 0, 0, 0) in C library sasl2... no&lt;/p&gt;</comment>
                            <comment id="996338" author="jonathan.reams@10gen.com" created="Tue, 4 Aug 2015 18:26:00 +0000"  >&lt;p&gt;Thomas, we don&apos;t have public instructions on how to build the sasl library on windows. Our internal process mostly follows the instructions from here &lt;a href=&quot;https://cyrusimap.org/docs/cyrus-sasl/2.1.25/windows.php&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://cyrusimap.org/docs/cyrus-sasl/2.1.25/windows.php&lt;/a&gt;. The following instructions install to c:\sasl. If want to build to an alternate directory, change c:\sasl to an appropriate directory.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;To build the library, obtain and the cyrus sasl sources from &lt;a href=&quot;https://cyrusimap.org/index.php&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://cyrusimap.org/index.php&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Copy plugins\cram.c, plugins\plain.c to lib\cram.c, lib\plain.c&lt;/li&gt;
	&lt;li&gt;Change four functions in the copied files to be exported into the DLL (prefix with LIBSASL_API to look as below):&lt;br/&gt;
     In lib\plain.c:
     &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;LIBSASL_API int plain_server_plug_init(sasl_utils_t *utils, ...&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;LIBSASL_API int plain_client_plug_init(sasl_utils_t *utils, ...&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;     In lib\cram.c:&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;LIBSASL_API int crammd5_server_plug_init(sasl_utils_t *utils, ...&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;LIBSASL_API int crammd5_client_plug_init(sasl_utils_t *utils, ...&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;/li&gt;
	&lt;li&gt;Add both files to NTMakefile in lib\
      &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;libsasl_sources = cram.c plain.c auxprop.c &amp;lt;etc&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;   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;libsasl_objs = cram.obj plain.obj auxprop.obj &amp;lt;etc&amp;gt;&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;/li&gt;
	&lt;li&gt;in cyrus-sasl-2.1.26\lib, using a VS command prompt, run &lt;tt&gt;nmake /f ntmakefile STATIC=no prefix=c:\sasl&lt;/tt&gt;. Note this uses /MD.&lt;/li&gt;
	&lt;li&gt;run &lt;tt&gt;nmake /f ntmakefile prefix=c:\sasl STATIC=no install&lt;/tt&gt; in the same directory (lib), which will create a c:\sasl and put some files in it&lt;/li&gt;
	&lt;li&gt;run &lt;tt&gt;nmake /f ntmakefile prefix=c:\sasl STATIC=no install&lt;/tt&gt; in cyrus-sasl-2.1.26\include, to install the headers into the include directory&lt;/li&gt;
	&lt;li&gt;run &lt;tt&gt;nmake /f ntmakefile prefix=c:\sasl STATIC=no install&lt;/tt&gt; in cyrus-sasl-2.1.26\win32\include, to install more headers into the include directory&lt;/li&gt;
	&lt;li&gt;Rename the installed &lt;tt&gt;c:\sasl\lib\libsasl.lib&lt;/tt&gt; to &lt;tt&gt;c:\sasl\lib\sasl2.lib&lt;/tt&gt; (this is what SCons looks for)&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;You&apos;ll need to run scons with &lt;tt&gt;&amp;#45;&amp;#45;extrapath&lt;/tt&gt; to specify the location of the \include and \lib directories for headers and library (e.g. &lt;tt&gt;--extrapath=c:\sasl&lt;/tt&gt;). Let me know if you have any more questions.&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|hrejsv:</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="625">Build 7 08/10/15</customfieldvalue>

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