<div class="gmail_quote">On Tue, Jun 29, 2010 at 5:11 PM, Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Friday 05 March 2010, Eric Noulard wrote:<br>
&gt; 2010/3/5 Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;:<br>
&gt; &gt; Eric Noulard wrote:<br>
&gt; &gt;&gt; 2010/3/5 Bill Hoffman &lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;:<br>
&gt; &gt;&gt;&gt; CMake 2.8.1 RC 4 is ready to try:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; <a href="http://www.cmake.org/files/v2.8/?C=M;O=D" target="_blank">http://www.cmake.org/files/v2.8/?C=M;O=D</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Please try your projects with it.   If you find any issues, let me<br>
&gt; &gt;&gt;&gt; know. I think this is about it.  So, if I don&#39;t hear anything by<br>
&gt; &gt;&gt;&gt; Monday, this is<br>
&gt; &gt;&gt;&gt; going to be 2.8.1.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Not really a show-stopper since I have no problem using this RC<br>
&gt; &gt;&gt; but I do have a problem &quot;Building it&quot; on 2 linux boxes<br>
&gt; &gt;&gt; (first is Ubuntu 9.10 and the other is Fedora 11) using gcc 4.4.1:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Same error:<br>
&gt; &gt;&gt; Linking CXX executable cmsysTestsCxx<br>
&gt; &gt;&gt; [ 10%] Built target cmsysTestsCxx<br>
&gt; &gt;&gt; [ 13%] Built target cmzlib<br>
&gt; &gt;&gt; [ 14%] Building C object Utilities/cmcurl/CMakeFiles/cmcurl.dir/base64.o<br>
&gt; &gt;&gt; In file included from /usr/include/stdlib.h:320,<br>
&gt; &gt;&gt;                 from<br>
&gt; &gt;&gt; /home/usdtim/Erk/CMake/CMake-gitted/Utilities/cmcurl/base64.c:37:<br>
&gt; &gt;&gt; /usr/include/sys/types.h:110: error: conflicting types for ‘ssize_t’<br>
&gt; &gt;&gt; /home/usdtim/Erk/CMake/CMake-gitted/build/Utilities/cmcurl/config.h:727:<br>
&gt; &gt;&gt; note: previous declaration of ‘ssize_t’ was here<br>
&gt; &gt;&gt; make[2]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/base64.o] Erreur 1<br>
&gt; &gt;&gt; make[1]: *** [Utilities/cmcurl/CMakeFiles/cmcurl.dir/all] Erreur 2<br>
&gt; &gt;&gt; make: *** [all] Erreur 2<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; If I comment-out the offending (re)define in cmcurl/<a href="http://config.h.in" target="_blank">config.h.in</a><br>
&gt; &gt;&gt; I can compile and use with no noticeable trouble.<br>
&gt; &gt;<br>
&gt; &gt; How are you building it?<br>
&gt;<br>
&gt; Yes I do.<br>
&gt;<br>
&gt; &gt; Do other versions of CMake have this issue? Sounds<br>
&gt; &gt; like a try-compile test failed.<br>
&gt;<br>
&gt; HEAD has the same issue.<br>
&gt; I did not tried previous version [yet]<br>
&gt;<br>
&gt; the culprit seems to be that<br>
&gt; generated (configured)<br>
&gt;<br>
&gt; Utilities/cmcurl/config.h<br>
&gt;<br>
&gt; does the following:<br>
&gt; #ifndef SIZEOF_SSIZE_T<br>
&gt; # if SIZEOF_LONG == SIZEOF_SIZE_T<br>
&gt;    typedef long ssize_t;<br>
&gt; # elif SIZEOF_LONG_LONG == SIZEOF_SIZE_T<br>
&gt;    typedef long long ssize_t;<br>
&gt; # elif SIZEOF___INT64 == SIZEOF_SIZE_T<br>
&gt;    typedef __int64 ssize_t;<br>
&gt; # else<br>
&gt;    typedef int ssize_t;<br>
&gt; # endif<br>
&gt;<br>
&gt; however, in this case CheckTypeSize macro obviously fails to find the<br>
&gt; size of the type &quot;ssize_t&quot;:<br>
&gt;<br>
&gt; /* The size of `size_t&#39;, as computed by sizeof. */<br>
&gt; #define SIZEOF_SIZE_T 4<br>
&gt;<br>
&gt; /* The size of `ssize_t&#39;, as computed by sizeof. */<br>
&gt;<br>
&gt;<br>
&gt; /* The size of `time_t&#39;, as computed by sizeof. */<br>
&gt; #define SIZEOF_TIME_T 4<br>
&gt;<br>
&gt; However &lt;sys/types.h&gt; is defining the type...<br>
&gt;<br>
&gt; I&#39;ll give 2.8.0 and 2.6.4 a compile try and give you feedback.<br>
<br>
I think I just had the same issue on an OpenSUSE 11.2 box, and I think I<br>
committed/pushed a fix to &quot;next&quot;:<br>
<a href="http://cmake.org/gitweb?p=cmake.git;a=log;h=refs/heads/next" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=log;h=refs/heads/next</a><br>
<br>
(is this actually the right thing to do ?)<br>
<br></blockquote><div><br></div><div>Fixing a bug is usually the right thing to do. :-)</div><div><br></div><div>And pushing to &#39;next&#39; is the right way to get your bug fix tested on the dashboards. (The Continuous dashboards track &#39;next&#39; and so do the Nightly and Nightly Expected dashboards. The Nightly 2.8 Release dashboards track &#39;master&#39;.)</div>
<div><br></div><div>Bill, Brad and I consider merging changes from &#39;next&#39; to &#39;master&#39; every Tuesday now. So... as long as your commits that you push to &#39;next&#39; look reasonable to us, then we will merge them next time we meet. And if not, we&#39;ll probably send an email asking a question or two.</div>
<div><br></div><div>I&#39;m pretty sure we&#39;ll accept this one. :-)</div><div><br></div><div><br></div><div>Cheers,</div><div>David</div><div><br></div></div>