<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:11 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-2428] importable use of macro</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2428</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;we support MongoDB in rsyslog via plugins. It is our policy to do clean compiles at high warning level. Unfortunately, libbson seems to have some portability issues. This is part of the build log:&lt;/p&gt;

&lt;p&gt;In file included from /usr/include/libbson-1.0/bson-compat.h:38:0,&lt;br/&gt;
                 from /usr/include/libbson-1.0/bson.h:23,&lt;br/&gt;
                 from /usr/include/libmongoc-1.0/mongoc.h:22,&lt;br/&gt;
                 from logctl.c:48:&lt;br/&gt;
/usr/include/libbson-1.0/bson-macros.h:185:33: error: this use of &quot;defined&quot; may not be portable &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=expansion-to-defined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 #if BSON_GNUC_CHECK_VERSION(4, 0) &amp;amp;&amp;amp; !defined(_WIN32)&lt;br/&gt;
                                 ^&lt;br/&gt;
/usr/include/libbson-1.0/bson-macros.h:205:35: error: this use of &quot;defined&quot; may not be portable &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=expansion-to-defined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 #elif BSON_GNUC_CHECK_VERSION(4, 4)&lt;br/&gt;
                                   ^&lt;br/&gt;
/usr/include/libbson-1.0/bson-macros.h:235:33: error: this use of &quot;defined&quot; may not be portable &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=expansion-to-defined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 #if BSON_GNUC_CHECK_VERSION(3, 1)&lt;br/&gt;
                                 ^&lt;br/&gt;
/usr/include/libbson-1.0/bson-macros.h:242:33: error: this use of &quot;defined&quot; may not be portable &lt;span class=&quot;error&quot;&gt;&amp;#91;-Werror=expansion-to-defined&amp;#93;&lt;/span&gt;&lt;br/&gt;
 #if BSON_GNUC_CHECK_VERSION(4, 5)&lt;/p&gt;</description>
                <environment>Fedora 26 and others</environment>
        <key id="471607">CDRIVER-2428</key>
            <summary>importable use of macro</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="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="rgerhards">Rainer Gerhards</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Dec 2017 12:34:10 +0000</created>
                <updated>Thu, 14 Dec 2017 16:36:08 +0000</updated>
                            <resolved>Thu, 14 Dec 2017 16:35:47 +0000</resolved>
                                                    <fixVersion>1.8.0</fixVersion>
                                    <component>libbson</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1752052" author="jesse" created="Thu, 14 Dec 2017 16:35:47 +0000"  >&lt;p&gt;Thanks for the info! Yes, now that I think of it, we detected and fixed this problem in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2197&quot; title=&quot;Add -Wexpansion-to-defined to maintainer flags&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2197&quot;&gt;&lt;del&gt;CDRIVER-2197&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1751953" author="rgerhards" created="Thu, 14 Dec 2017 16:03:21 +0000"  >&lt;p&gt;I do not find a way to close this issue (maybe overlooking the obvious). Please close as invalid.&lt;/p&gt;</comment>
                            <comment id="1751952" author="rgerhards" created="Thu, 14 Dec 2017 16:02:50 +0000"  >&lt;p&gt;sorry for the noise &amp;#8212; it turns out that I used a too-old (packaged) version. After update to current stable, everything works.&lt;/p&gt;

&lt;p&gt;Rainer&lt;/p&gt;</comment>
                            <comment id="1751811" author="jesse" created="Thu, 14 Dec 2017 14:02:29 +0000"  >&lt;p&gt;Using GCC 7.2.1 on Arch Linux I haven&apos;t been able to reproduce 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;   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;&amp;gt; ./configure --enable-maintainer-flags&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;...&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;checking whether C compiler accepts -Wexpansion-to-defined... yes&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;...&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;I&apos;m able to compile libmongoc there without warnings.&lt;/p&gt;</comment>
                            <comment id="1751200" author="jesse" created="Wed, 13 Dec 2017 19:07:45 +0000"  >&lt;p&gt;Thanks. We test that we libbson compiles without warnings in a couple GCC and Clang configurations. Could you tell us what compiler and flags you use please?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="398205">CDRIVER-2197</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|htdq73:</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>