<!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 -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 > svn diff NclDataDefs.h</div>
<div>Index: NclDataDefs.h</div>
<div>===================================================================</div>
<div>--- NclDataDefs.h (revision 12429)</div>
<div>+++ NclDataDefs.h (working copy)</div>
<div>@@ -119,7 +119,7 @@</div>
<div> typedef int obj;</div>
<div> typedef int list;</div>
<div> typedef int group;</div>
<div>-typedef int compound;</div>
<div>+typedef int nclcompound;</div>
<div> </div>
<div> typedef union _NclScalar {</div>
<div> double doubleval;</div>
<div>@@ -140,7 +140,7 @@</div>
<div> logical logicalval;</div>
<div> obj objval;</div>
<div> group groupval;</div>
<div>- compound compoundval;</div>
<div>+ nclcompound compoundval;</div>
<div> }NclScalar;</div>
<div> </div>
<div> typedef struct _NclRefList{</div>
<div>holywell:/Users/huangwei/ncl/src/trunk/ni/src/ncl
721 > svn diff DataSupport.c</div>
<div>Index: DataSupport.c</div>
<div>===================================================================</div>
<div>--- DataSupport.c (revision 12429)</div>
<div>+++ DataSupport.c (working copy)</div>
<div>@@ -820,7 +820,7 @@</div>
<div> case NCL_group:</div>
<div> return(sizeof(group)); </div>
<div> case NCL_compound:</div>
<div>- return(sizeof(compound));</div>
<div>+
return(sizeof(nclcompound));</div>
<div> case NCL_logical:</div>
<div> return(sizeof(int)); </div>
<div> 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
<<a moz-do-not-send="true"
href="mailto:dmechem@ku.edu">dmechem@ku.edu</a>><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;"><<a
moz-do-not-send="true"
href="mailto:ncl-install@ucar.edu">ncl-install@ucar.edu</a>><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 -O2 -I../../ncl
-I../../../.././include <br>
-I/usr/include/X11 -DSYS<br>
V -D_POSIX_SOURCE -D_XOPEN_SOURCE
-DByteSwapped -DNeedFuncProto <br>
-DNDEBUG -c -o<br>
areavolW.o areavolW.c<br>
../../ncl/NclDataDefs.h(122): error:
"compound" has already been <br>
declared in the<br>
current scope<br>
typedef int compound;<br>
^<br>
<br>
areavolW.c(258): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(447): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(636): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(903): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(1141): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(1379): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(1643): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(1927): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<br>
<br>
areavolW.c(2262): warning #188:
enumerated type mixed with another
type<br>
return(ret);<br>
^<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 <br>
-I../../../.././include
-I/usr/include/X11 -DLinux
-DMAJOR=2 <br>
-DNIO_LIB_ONLY -DSYSV
-D_POSIX_SOURCE -D_XOPEN_SOURCE
-DByteSwapped <br>
-DNeedFuncProto -DNDEBUG -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>
_LIBIMF_EXT _LIBIMF_DOUBLE
_LIBIMF_PUBAPI compound(
_LIBIMF_DOUBLE <br>
__x, _LIBIMF_DOUBLE __y );<br>
^<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
-I../../.././include
-I/usr/include/X11 <br>
-DLinux -DMAJOR=2 -DSYSV
-D_POSIX_SOURCE -D_XOPEN_SOURCE <br>
-DByteSwapped -DNeedFuncProto
-DNDEBUG -c -o MathFuncs.o
MathFuncs.c<br>
NclDataDefs.h(122): error:
"compound" has already been declared
in the <br>
current scope<br>
typedef int compound;<br>
^<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 <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>