<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><FONT class="Apple-style-span" face="Courier">Dear pnetcdf team,</FONT><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">I was trying to build pnetcdf with OpenMPI using an Apple dual G5 tower running Mac OS X.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Seems that the line </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">#define ptrdiff_t int</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">in ncconfig.h creates havoc whenever source code includes &lt;stddef.h&gt; AFTER ncconfig.h has been included.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Specifically, what happens,in that case, is the command </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">typedef int int;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">is generated by &lt;stddef.h&gt; -- which causes compilation a error.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">uname -a </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">gives this result:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Darwin oblix.tuc.noao.edu 8.1.0 Darwin Kernel Version 8.1.0: Tue May 10 18:16:08 PDT 2005; root:xnu-792.1.5.obj~4/RELEASE_PPC Power Macintosh powerpc</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">mpicc --version </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">gives this result:</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build 4061)</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Copyright (C) 2004 Free Software Foundation, Inc.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">This is free software; see the source for copying conditions.  There is NO</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">The problem apparently can be made to go away by adding the line</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">#include &lt;stddef.h&gt;</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">BEFORE any source code with the line</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">#include "ncconfig.h"</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Does configure need to be made a little smarter?  </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Or should ptrdiff_t be made a typedef instead of a macro within ncconfig.h ?</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Sincerely yours,</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">-Kenneth Mighell</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">======================================</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Kenneth Mighell, Associate Scientist     </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Kitt Peak National Observatory           </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">National Optical Astronomy Observatory   </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">950 North Cherry Avenue</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">Tucson, AZ 85719 U.S.A.</FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">email: <A href="mailto:mighell@noao.edu">mighell@noao.edu</A></FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">voice: (520) 318-8391 </FONT></DIV><DIV><FONT class="Apple-style-span" face="Courier">fax:   (520) 318-8360</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>