<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:14 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>[CDRIVER-1343] Incorrect pkgconfig files produced when linking with static OpenSSL library</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1343</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;When building against a static OpenSSL library, the &lt;tt&gt;lib/pkgconfig/libmongoc-{1.0,priv}.pc&lt;/tt&gt; files produced by the &lt;tt&gt;make install&lt;/tt&gt; command contain the incorrect order for the libraries specified by the linker flags.&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;Libs&lt;/tt&gt; line of those files looks like this:&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;-L/usr/local/dy/openssl/lib -lssl -lcrypto -ldl   -lrt -L${libdir} -lmongoc-1.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;However, that link order is incorrect because `mongoc-1.0` requires symbols from the OpenSSL libraries, so the current ordering of the mongoDB library and the OpenSSL libraries is backwards. Therefore, the `Libs` line should look like this instead:&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;Libs: -L${libdir} -lmongoc-1.0 -L/usr/local/dy/openssl/lib -lssl -lcrypto -ldl -lrt&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment>Linux, clang</environment>
        <key id="296278">CDRIVER-1343</key>
            <summary>Incorrect pkgconfig files produced when linking with static OpenSSL library</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="3">Duplicate</resolution>
                                        <assignee username="bjori">Hannes Magnusson</assignee>
                                    <reporter username="jwang">Jonathan Wang</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Thu, 23 Jun 2016 20:20:51 +0000</created>
                <updated>Wed, 13 Jul 2016 22:07:26 +0000</updated>
                            <resolved>Wed, 13 Jul 2016 22:07:26 +0000</resolved>
                                    <version>1.3.5</version>
                                    <fixVersion>1.4.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1323370" author="bjori" created="Wed, 13 Jul 2016 22:07:26 +0000"  >&lt;p&gt;This is actually a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1171&quot; title=&quot;pkgconfig libmongoc-1.0.pc: fix order of of libraries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1171&quot;&gt;&lt;del&gt;CDRIVER-1171&lt;/del&gt;&lt;/a&gt; which is already fixed in master.&lt;/p&gt;</comment>
                            <comment id="1308173" author="jwang" created="Mon, 27 Jun 2016 23:35:32 +0000"  >&lt;p&gt;When I tried to build the new C++ driver, it used those flags from the pkgconfig. That caused the C++ driver build to break on the linking steps.&lt;/p&gt;</comment>
                            <comment id="1308169" author="bjori" created="Mon, 27 Jun 2016 23:28:20 +0000"  >&lt;p&gt;Out of curiosity, how did you discover this? Did it break something?&lt;/p&gt;</comment>
                            <comment id="1304969" author="jesse" created="Thu, 23 Jun 2016 22:37:25 +0000"  >&lt;p&gt;Thanks for the report; we&apos;ll fix in the next release.&lt;/p&gt;</comment>
                            <comment id="1304750" author="jwang" created="Thu, 23 Jun 2016 20:28:35 +0000"  >&lt;p&gt;Description with the correct formatting:&lt;/p&gt;

&lt;p&gt;When building against a static OpenSSL library, the &lt;tt&gt;lib/pkgconfig/libmongoc-1.0.pc&lt;/tt&gt; &amp;amp; &lt;tt&gt;lib/pkgconfig/libmongoc-priv.pc&lt;/tt&gt; files produced by the &lt;tt&gt;make install&lt;/tt&gt; command contain the incorrect order for the libraries specified by the linker flags.&lt;/p&gt;

&lt;p&gt;The &lt;tt&gt;Libs&lt;/tt&gt; line of the &lt;tt&gt;lib/pkgconfig/libmongoc-1.0.pc&lt;/tt&gt; file looks like this:&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;Libs: -L/usr/local/dy/openssl/lib -lssl -lcrypto -ldl -lrt -L${libdir} -lmongoc-1.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;However, that link order is incorrect because &lt;tt&gt;mongoc-1.0&lt;/tt&gt; requires symbols from the OpenSSL libraries, so the current ordering of the mongoDB library and the OpenSSL libraries is backwards. Therefore, the &lt;tt&gt;Libs&lt;/tt&gt; line should look like this instead:&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;Libs: -L${libdir} -lmongoc-1.0 -L/usr/local/dy/openssl/lib -lssl -lcrypto -ldl -lrt&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;The same goes for the &lt;tt&gt;lib/pkgconfig/libmongoc-priv.pc&lt;/tt&gt; file as well, except with &lt;tt&gt;mongoc-priv&lt;/tt&gt; instead of &lt;tt&gt;mongoc-1.0&lt;/tt&gt; in the &lt;tt&gt;Libs&lt;/tt&gt; line.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="274537">CDRIVER-1171</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hsmu2v:</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>