<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:31 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-210] Linking issue with libssh: multiple definition of `md5_init&apos;</title>
                <link>https://jira.mongodb.org/browse/CXX-210</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;I have a project which links to the libmongoclient and also to the libssh library.&lt;/p&gt;

&lt;p&gt;I either need to modify the libssh or the libmongoclient sources to get my project working, or it is going to crash like:&lt;/p&gt;

&lt;p&gt;MD5 (&quot;&quot;) = adb82c4fe4a8d1b59c67f4b1ad76421f&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;
			&lt;ul&gt;
				&lt;li&gt;ERROR, should be: d41d8cd98f00b204e9800998ecf8427e&lt;br/&gt;
MD5 (&quot;a&quot;) = 11282f436d90590eaf271e0d3caeb674&lt;/li&gt;
				&lt;li&gt;ERROR, should be: 0cc175b9c0f1b6a831c399e269772661&lt;br/&gt;
MD5 (&quot;abc&quot;) = 0e4175f2c3092db94d9a9a3eb8957e86&lt;/li&gt;
				&lt;li&gt;ERROR, should be: 900150983cd24fb0d6963f7d28e17f72&lt;br/&gt;
MD5 (&quot;message digest&quot;) = 2d40a812b33624ada656771ddfb256b4&lt;/li&gt;
				&lt;li&gt;ERROR, should be: f96b697d7cb7938d525a2f31aaf161d0&lt;br/&gt;
MD5 (&quot;abcdefghijklmnopqrstuvwxyz&quot;) = 94cd6bc9e2dbfe855b9f6174304aebb2&lt;/li&gt;
				&lt;li&gt;ERROR, should be: c3fcd3d76192e4007dfb496cca67e13b&lt;br/&gt;
MD5 (&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789&quot;) = fd45297f8251ded620a6ef5ef71465b2&lt;/li&gt;
				&lt;li&gt;ERROR, should be: d174ab98d277d9f5a5611c2c9f419d9f&lt;br/&gt;
MD5 (&quot;12345678901234567890123456789012345678901234567890123456789012345678901234567890&quot;) = 72a81a34d0319a4df6bbd1932657a007&lt;/li&gt;
				&lt;li&gt;ERROR, should be: 57edf4a22be3c955ac49da2e2107b67a&lt;br/&gt;
terminate called after throwing an instance of &apos;mongo::MsgAssertionException&apos;&lt;br/&gt;
  what():  md5 unit test fails&lt;br/&gt;
Aborted (core dumped)&lt;/li&gt;
			&lt;/ul&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This happens if i link dynamically to libssh, currently it is not possible to link both libraries statically because of the following error:&lt;/p&gt;

&lt;p&gt;/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libmongoclient.a(md5.o): In function `md5_init&apos;:&lt;br/&gt;
(.text+0xc40): multiple definition of `md5_init&apos;&lt;br/&gt;
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libssh.a(libcrypto.c.o)&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.text+0x730): first defined here&lt;br/&gt;
collect2: error: ld returned 1 exit status&lt;/p&gt;


&lt;p&gt;Package versions:&lt;br/&gt;
$ dpkg -l | grep libssh-dev&lt;br/&gt;
ii  libssh-dev                                                  0.6.1-0ubuntu3                                      amd64        tiny C SSH library. Development files&lt;br/&gt;
ii  mongodb-dev                                                 1:2.4.9-1ubuntu2                                    amd64        object/document-oriented database (development)&lt;/p&gt;


&lt;p&gt;The problem seems to be still exists in the current git version, I am going to create a pull request with a small possibly fix for the issue...&lt;/p&gt;</description>
                <environment>Ubuntu 14.04 LTS</environment>
        <key id="133040">CXX-210</key>
            <summary>Linking issue with libssh: multiple definition of `md5_init&apos;</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="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="kedazo">David Kedves</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Thu, 24 Apr 2014 09:16:58 +0000</created>
                <updated>Thu, 3 Jul 2014 16:08:36 +0000</updated>
                            <resolved>Mon, 5 May 2014 17:22:07 +0000</resolved>
                                                    <fixVersion>legacy-0.9.0</fixVersion>
                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="569939" author="acm" created="Thu, 1 May 2014 21:48:25 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/69&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/69&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And see also: &lt;a href=&quot;https://github.com/mongodb/mongo-cxx-driver/pull/64&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-cxx-driver/pull/64&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="561382" author="kedazo" created="Thu, 24 Apr 2014 09:18:45 +0000"  >&lt;p&gt;A possibly fix could be this:&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/pull/668&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/668&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(or really rename those methods to be &apos;mongo&apos; specific... it is always bad idea to have too generic names in libraries, even if it is a static one...)&lt;/p&gt;

&lt;p&gt;Br,&lt;br/&gt;
David&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="23543">CXX-248</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hribvb:</customfieldvalue>

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