<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:09:16 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-367] Solaris bson.c does not compile / Warnings</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-367</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;problems with Solaris CC compiler (x86):&lt;/p&gt;

&lt;p&gt;&amp;lt;&lt;a href=&quot;https://github.com/mongodb/mongo-perl-driver/commit/16c440d9209b3f7eb5a42078b183419677878a18&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-perl-driver/commit/16c440d9209b3f7eb5a42078b183419677878a18&lt;/a&gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;does still not completely fix bson-context.c, see Perl driver &lt;br/&gt;
#324 and #345 comments:  &lt;/p&gt;

&lt;p&gt;&amp;lt;&lt;a href=&quot;https://jira.mongodb.org/browse/PERL-324?focusedCommentId=588896&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-588896&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/PERL-324?focusedCommentId=588896&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-588896&lt;/a&gt;&amp;gt;&lt;/p&gt;

&lt;p&gt;&quot;bson/bson.c&quot;, line 1267: left operand must be modifiable lvalue: op &quot;=&quot; is not fixed by this commit.&lt;/p&gt;

&lt;p&gt;Additionally, the current head of libbson cannot be exported by&lt;br/&gt;
zip (broken archive), see Perl driver #324 comment:&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://jira.mongodb.org/browse/PERL-324?focusedCommentId=588890&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-588890&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/PERL-324?focusedCommentId=588890&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-588890&lt;/a&gt;&amp;gt;&lt;/p&gt;</description>
                <environment>See Perl Driver #345 comment:&lt;br/&gt;
&amp;lt;&lt;a href=&quot;https://jira.mongodb.org/browse/PERL-345&quot;&gt;https://jira.mongodb.org/browse/PERL-345&lt;/a&gt;&amp;gt;&lt;br/&gt;
libbson version as used in Perl driver 0.703.4 .</environment>
        <key id="137151">CDRIVER-367</key>
            <summary>Solaris bson.c does not compile / Warnings</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="brightstar">Udo Grabowski</reporter>
                        <labels>
                            <label>bson</label>
                    </labels>
                <created>Mon, 19 May 2014 15:19:26 +0000</created>
                <updated>Wed, 3 May 2017 22:14:39 +0000</updated>
                            <resolved>Mon, 19 May 2014 19:22:01 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="589560" author="brightstar" created="Mon, 19 May 2014 22:42:44 +0000"  >&lt;p&gt;autoconf (GNU Autoconf) 2.69,  automake (GNU automake) 1.11.6,  libtool (GNU libtool) 2.4.2 (maybe a bit old). &lt;/p&gt;</comment>
                            <comment id="589544" author="christian.hergert@10gen.com" created="Mon, 19 May 2014 22:33:15 +0000"  >&lt;p&gt;Missing valid libtool perhaps? We have a couple of more requirements when building from Git that are not required when building from a release tarball. Namely:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Recent automake&lt;/li&gt;
	&lt;li&gt;Recent autoconf&lt;/li&gt;
	&lt;li&gt;Recent libtool&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="589537" author="brightstar" created="Mon, 19 May 2014 22:26:46 +0000"  >&lt;p&gt;Checked with autogen.sh (which left a spurios LT_PREREQ(2.2)  in configure, which I deleted) and configure, exactly the same result as with &lt;br/&gt;
cmake (that is, it works with just a few workarounds to apply). So the cmake build system works at least on Openindiana as expected.&lt;/p&gt;</comment>
                            <comment id="589429" author="christian.hergert@10gen.com" created="Mon, 19 May 2014 20:55:19 +0000"  >&lt;p&gt;We have gone through &lt;b&gt;considerable&lt;/b&gt; effort to make the configure scripts to check for everything. Duplicating that in CMake is a Sisyphean task, so it really only has the minimum necessary to build Visual Studio project files on Win32.&lt;/p&gt;</comment>
                            <comment id="589420" author="brightstar" created="Mon, 19 May 2014 20:50:24 +0000"  >&lt;p&gt;Indeed, I DID use cmake, that usually works ok on OpenIndiana  (has cmake 2.8.11).&lt;/p&gt;</comment>
                            <comment id="589416" author="christian.hergert@10gen.com" created="Mon, 19 May 2014 20:46:10 +0000"  >&lt;p&gt;I just want to double check that you are not using CMake. CMake is our build system for Win32 and should not be used on *nix&apos;s. (Use ./autogen.sh or ./configure if a release tarball, make, make check).&lt;/p&gt;</comment>
                            <comment id="589402" author="brightstar" created="Mon, 19 May 2014 20:38:29 +0000"  >&lt;p&gt;I&apos;ve &quot;stealed&quot; mbarrier.h and sys/mbarrier.h from the Update 2 distribution, and that compiled with Update 1. One error remained, &lt;br/&gt;
which I fixed by eliminating the alternative SunOS path in bson-clock.h, the struct timezone *tz works with Solaris x86 (openindiana-a9).&lt;br/&gt;
After that, everything compiled and passed the test-libbson !&lt;/p&gt;

&lt;p&gt;&quot;/tmp/libbson-e0af62fbe02ff07e0498814d1dfdba07644687c7/src/bson/bson-clock.c&quot;, line 55: identifier redeclared: bson_gettimeofday&lt;br/&gt;
	current : function(pointer to struct timeval &lt;/p&gt;
{long tv_sec, long tv_usec}, pointer to struct timezone {int tz_minuteswest, int tz_dsttime}) returning int&lt;br/&gt;
	previous: function(pointer to struct timeval {long tv_sec, long tv_usec}
&lt;p&gt;, pointer to void) returning int : &quot;/tmp/libbson-e0af62fbe02ff07e0498814d1dfdba07644687c7/src/bson/bson-clock.h&quot;, line 36&lt;br/&gt;
cc: acomp failed for /tmp/libbson-e0af62fbe02ff07e0498814d1dfdba07644687c7/src/bson/bson-clock.c&lt;br/&gt;
gmake&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;CMakeFiles/bson_shared.dir/src/bson/bson-clock.c.o&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
gmake&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;CMakeFiles/bson_shared.dir/all&amp;#93;&lt;/span&gt; Error 2&lt;/p&gt;</comment>
                            <comment id="589390" author="christian.hergert@10gen.com" created="Mon, 19 May 2014 20:34:31 +0000"  >&lt;p&gt;Thanks for the update Udo, I was just about to suggest using the tar.gz export version from github. I imagine they are building the exported zip&apos;s with GNU zip, which might not be compatible with Solaris zip. (I know the default gtar, not using ustar format has similar issues). Our release tarballs do explicitly work around this by using ustar format.&lt;/p&gt;

&lt;p&gt;I&apos;ll look into adding a configure.ac check for mbarrier.h and fallback to an alternate means. If you are using Solaris Studio, however, this will probably be a lock/unlock and very much not optimal. (Otherwise I&apos;ll have to hand write assembler for SPARC/x86 which I&apos;d like to avoid). Although, do you happen to know of an alternate memory barrier intrinsic for older Solaris Studio?&lt;/p&gt;

&lt;p&gt;In terms of format support, however, we will be supporting the newest Solaris Studio only. That said, I&apos;d certainly like to see it support as much as possible.&lt;/p&gt;</comment>
                            <comment id="589357" author="brightstar" created="Mon, 19 May 2014 20:11:59 +0000"  >&lt;p&gt;I could finally unzip it with 7z, but not unzip.  Probably the 2.32 zip version is not compatible with the newer zip archive.&lt;/p&gt;

&lt;p&gt;The latest libbson-e0af62fbe02ff07e0498814d1dfdba07644687c7 cannot be compiled with Sun Studio 12 Update 1, because it needs &lt;br/&gt;
mbarrier.h, which is only provided by Update &amp;gt;= 2. But  Sun Studio &amp;gt; Update 1 is not free software anymore, you need a license to use it.&lt;br/&gt;
So all open-source Opensolaris variants like openindiana, smartos, etc.. cannot compile this version anymore (and the old Perl driver with&lt;br/&gt;
the older libbson leaks memory like hell...).&lt;/p&gt;</comment>
                            <comment id="589287" author="christian.hergert@10gen.com" created="Mon, 19 May 2014 19:21:44 +0000"  >&lt;p&gt;Libbson works and is supported on Solaris with Solaris CC compiler. The version bundled in the Perl driver is behind the version of Libbson that added support for Solaris. I verified on Linux the exported zip from github which also works just fine.&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|hryxo7:</customfieldvalue>

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