<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Mary,<br>
    <br>
    This fix worked! Woo hoo!<br>
    <br>
    After I implemented your suggested changes, the build was still
    choking on unresolved references to "flush" and "abort," so I added
    a couple libraries to CtoFLibraries:<br>
    #define CtoFLibraries&nbsp;&nbsp; -lm -lifcore -lsvml -limf -lirc -lifport<br>
    <br>
    I _think_ that the ifport library did the trick , but I'm not
    exactly sure.<br>
    <br>
    Thanks a bunch!<br>
    Dave<br>
    <br>
    <br>
    On 6/30/11 1:49 PM, Mary Haley wrote:
    <blockquote cite="mid:A6087E35-0277-4200-A606-30B7B3F4004E@ucar.edu"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>Hi David,</div>
      <div><br>
      </div>
      <div>Wei Huang, one of our developers, said that there are only a
        few places where "compound" appears as a variable name, so if
        you could try changing these by hand to "nclcompound" and
        recompiling, it might work.</div>
      <div><br>
      </div>
      <div>Here's Wei's email that includes the location of the changes
        and which files to change. Please let us know if you have any
        success with this.</div>
      <div><br>
      </div>
      <div>--Mary</div>
      <div><br>
        <blockquote type="cite">
          <div style="word-wrap: break-word;">
            <div>
              <div><br class="Apple-interchange-newline">
              </div>
              <div>
                <div>holywell:/Users/huangwei/ncl/src/trunk/ni/src/ncl
                  720 &gt; svn diff NclDataDefs.h</div>
                <div>Index: NclDataDefs.h</div>
                <div>===================================================================</div>
                <div>--- NclDataDefs.h &nbsp; &nbsp; &nbsp; (revision 12429)</div>
                <div>+++ NclDataDefs.h &nbsp; &nbsp; &nbsp; (working copy)</div>
                <div>@@ -119,7 +119,7 @@</div>
                <div>&nbsp;typedef int obj;</div>
                <div>&nbsp;typedef int list;</div>
                <div>&nbsp;typedef int group;</div>
                <div>-typedef int compound;</div>
                <div>+typedef int nclcompound;</div>
                <div>&nbsp;</div>
                <div>&nbsp;typedef union _NclScalar {</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;double &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; doubleval;</div>
                <div>@@ -140,7 +140,7 @@</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;logical &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;logicalval;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;obj &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;objval;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;group &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;groupval;</div>
                <div>- &nbsp; &nbsp; &nbsp; compound &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; compoundval;</div>
                <div>+ &nbsp; &nbsp; &nbsp; nclcompound &nbsp; &nbsp; &nbsp; &nbsp;compoundval;</div>
                <div>&nbsp;}NclScalar;</div>
                <div>&nbsp;</div>
                <div>&nbsp;typedef struct _NclRefList{</div>
                <div>holywell:/Users/huangwei/ncl/src/trunk/ni/src/ncl
                  721 &gt; svn diff DataSupport.c</div>
                <div>Index: DataSupport.c</div>
                <div>===================================================================</div>
                <div>--- DataSupport.c &nbsp; &nbsp; &nbsp; (revision 12429)</div>
                <div>+++ DataSupport.c &nbsp; &nbsp; &nbsp; (working copy)</div>
                <div>@@ -820,7 +820,7 @@</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case NCL_group:</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return(sizeof(group)); &nbsp;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case NCL_compound:</div>
                <div>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return(sizeof(compound));</div>
                <div>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                  return(sizeof(nclcompound));</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case NCL_logical:</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return(sizeof(int)); &nbsp; &nbsp;</div>
                <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case NCL_list:</div>
              </div>
              <div><br>
              </div>
              <br>
              <div>
                <blockquote type="cite">
                  <div style="word-wrap: break-word;">
                    <div>
                      <div>
                        <blockquote type="cite">
                          <div style="word-wrap: break-word;">
                            <div><br>
                              <div><br>
                                <div>Begin forwarded message:</div>
                                <br class="Apple-interchange-newline">
                                <blockquote type="cite">
                                  <div style="margin: 0px;"><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium; color: rgb(0,
                                      0, 0);"><b>From: </b></span><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium;">David Mechem
                                      &lt;<a moz-do-not-send="true"
                                        href="mailto:dmechem@ku.edu">dmechem@ku.edu</a>&gt;<br>
                                    </span></div>
                                  <div style="margin: 0px;"><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium; color: rgb(0,
                                      0, 0);"><b>Date: </b></span><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium;">June 27, 2011
                                      9:50:32 AM MDT<br>
                                    </span></div>
                                  <div style="margin: 0px;"><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium; color: rgb(0,
                                      0, 0);"><b>To: </b></span><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium;">&lt;<a
                                        moz-do-not-send="true"
                                        href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a>&gt;<br>
                                    </span></div>
                                  <div style="margin: 0px;"><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium; color: rgb(0,
                                      0, 0);"><b>Subject: </b></span><span
                                      style="font-family: 'Helvetica';
                                      font-size: medium;"><b>[ncl-install]
                                        Problems with building NCL using
                                        the Intel compiler suite</b><br>
                                    </span></div>
                                  <br>
                                  <div>Greetings,<br>
                                    <br>
                                    I'm having issues building NCL from
                                    source using the Intel compiler <br>
                                    suite. I'm building a vanilla
                                    version without OPeNDAP and netCDF-4
                                    <br>
                                    support. The NCARGraphics libraries
                                    and many of the utilities seem to be
                                    <br>
                                    building OK, but NCL does not. I'm
                                    using version 11.0 of ifort and icc,
                                    <br>
                                    64-bit CENTos kernel
                                    2.6.18-194.17.1.el5.<br>
                                    <br>
                                    I'm getting compilation errors on
                                    three files. The errors are all of a
                                    <br>
                                    similar type and appear to be
                                    related to the variable "compound"
                                    being <br>
                                    multiply defined.<br>
                                    <br>
                                    1.<br>
                                    -----------------<br>
                                    make[5]: Entering directory
                                    `/usr/local/ncl_ncarg-6.0.0/ni/src/lib/nfp'<br>
                                    icc -ansi &nbsp;-O2 -I../../ncl
                                    -I../../../.././include <br>
                                    -I/usr/include/X11 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-DSYS<br>
                                    V -D_POSIX_SOURCE -D_XOPEN_SOURCE
                                    -DByteSwapped -DNeedFuncProto &nbsp;<br>
                                    -DNDEBUG &nbsp;-c -o<br>
                                    &nbsp;areavolW.o areavolW.c<br>
                                    ../../ncl/NclDataDefs.h(122): error:
                                    "compound" has already been <br>
                                    declared in the<br>
                                    &nbsp;current scope<br>
                                    &nbsp;&nbsp;typedef int compound;<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(258): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(447): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(636): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(903): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(1141): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(1379): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(1643): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(1927): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    areavolW.c(2262): warning #188:
                                    enumerated type mixed with another
                                    type<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;return(ret);<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    compilation aborted for areavolW.c
                                    (code 2)<br>
                                    make[5]: *** [areavolW.o] Error 2<br>
                                    -------------------------------<br>
                                    <br>
                                    2.<br>
                                    ------------------------------<br>
                                    make[5]: Entering directory
                                    `/usr/local/ncl_ncarg-6.0.0/ni/src/lib/nio'<br>
                                    icc -ansi -D_FILE_OFFSET_BITS=64
                                    -D_LARGEFILE_SOURCE -O2 &nbsp;<br>
                                    -I../../../.././include
                                    -I/usr/include/X11 &nbsp;-DLinux
                                    -DMAJOR=2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
                                    -DNIO_LIB_ONLY &nbsp;&nbsp;-DSYSV
                                    -D_POSIX_SOURCE -D_XOPEN_SOURCE
                                    -DByteSwapped <br>
                                    -DNeedFuncProto &nbsp;-DNDEBUG &nbsp;-c -o
                                    NclTypedouble.o NclTypedouble.c<br>
                                    /usr/local/intel/11.0/084/include/math.h(796):
                                    error: "compound" has <br>
                                    already been declared in the current
                                    scope<br>
                                    &nbsp;&nbsp;_LIBIMF_EXT _LIBIMF_DOUBLE
                                    &nbsp;&nbsp;_LIBIMF_PUBAPI compound(
                                    _LIBIMF_DOUBLE <br>
                                    __x, _LIBIMF_DOUBLE __y );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    compilation aborted for
                                    NclTypedouble.c (code 2)<br>
                                    make[5]: *** [NclTypedouble.o] Error
                                    2<br>
                                    ---------------------------------<br>
                                    <br>
                                    3.<br>
                                    -----------------------------<br>
                                    icc -ansi -D_FILE_OFFSET_BITS=64
                                    -D_LARGEFILE_SOURCE <br>
                                    -I/usr/local/include -O2
                                    &nbsp;-I../../.././include
                                    -I/usr/include/X11 &nbsp;<br>
                                    -DLinux -DMAJOR=2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-DSYSV
                                    -D_POSIX_SOURCE -D_XOPEN_SOURCE <br>
                                    -DByteSwapped -DNeedFuncProto
                                    &nbsp;-DNDEBUG &nbsp;-c -o MathFuncs.o
                                    MathFuncs.c<br>
                                    NclDataDefs.h(122): error:
                                    "compound" has already been declared
                                    in the <br>
                                    current scope<br>
                                    &nbsp;&nbsp;typedef int compound;<br>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>
                                    <br>
                                    compilation aborted for MathFuncs.c
                                    (code 2)<br>
                                    make[4]: *** [MathFuncs.o] Error 2<br>
                                    -----------------------------<br>
                                    <br>
                                    <br>
                                    Any advice will be appreciated!<br>
                                    <br>
                                    Dave<br>
                                    <br>
                                    -- <br>
--------------------------------------<br>
                                    David B. Mechem &nbsp;&nbsp;<a
                                      moz-do-not-send="true"
                                      href="mailto:dmechem@ku.edu">dmechem@ku.edu</a><br>
                                    Assistant Professor<br>
                                    Atmospheric Science Program<br>
                                    Department of Geography<br>
                                    University of Kansas<br>
                                    ph: (785) 864-5707 fax: (785)
                                    864-5378<br>
--------------------------------------<br>
                                    <br>
                                    <br>
_______________________________________________<br>
                                    ncl-install mailing list<br>
                                    List instructions, subscriber
                                    options, unsubscribe:<br>
                                    <a moz-do-not-send="true"
                                      href="http://mailman.ucar.edu/mailman/listinfo/ncl-install">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                  </div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>